Version 1.23.0-dev.8.0
Merge commit '9484ac8bdf80e8ab38d5af56070ebde81befe850' into dev
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 70ee965..b1b1823 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@
* `dart:io`: Added functions `File.lastAccessed`, `File.lastAccessedSync`,
`File.setLastModified`, `File.setLastModifiedSync`, `File.setLastAccessed`,
and `File.setLastAccessedSync`.
+* `dart:io`: Added `Platform.ansiSupported`.
### Dart VM
@@ -28,17 +29,24 @@
* The `dartanalyzer` now follows the same rules as the analysis server to find an analysis options file,
stopping when an analysis options file is found:
* Search up the directory hierarchy looking for an analysis options file.
- * If analyzing a project referencing the [Flutter](https://flutter.io/) package, then use the
+ * If analyzing a project referencing the [Flutter](https://flutter.io/) package, then use the
[default Flutter analysis options](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/analysis_options_user.yaml)
found in `package:flutter`.
* If in a Bazel workspace, then use the analysis options in `package:dart.analysis_options/default.yaml` if it exists.
* Use the default analysis options rules.
* In addition, specific to `dartanalyzer`:
- * an analysis options file can be specified on the command line via `--options`
+ * an analysis options file can be specified on the command line via `--options`
and that file will be used instead of searching for an analysis options file.
- * any analysis option specified on the command line (e.g. `--strong` or `--no-strong`)
+ * any analysis option specified on the command line (e.g. `--strong` or `--no-strong`)
takes precedence over any corresponding value specified in the analysis options file.
+* Dartium, dart2js, and DDC
+
+ * Imports to `dart:io` are allowed, but the imported library is not supported
+ and will likely fail on most APIs at runtime. This change was made as a
+ stopgap measure to make it easier to write libraries that share code between
+ platforms (like package `http`). This might change again when configuration
+ specific imports are supported.
## 1.22.0 - 2017-02-14
diff --git a/DEPS b/DEPS
index b09e671..c8e604c 100644
--- a/DEPS
+++ b/DEPS
@@ -91,11 +91,11 @@
"ply_rev": "@604b32590ffad5cbb82e4afef1d305512d06ae93",
"pool_tag": "@1.3.0",
"protobuf_tag": "@0.5.3",
- "pub_rev": "@53327f4a7ca2ddd20a40f6a94db61ac136371b03",
+ "pub_rev": "@58da7fa8d16af488ae52b89b1d4227064a51a541",
"pub_semver_tag": "@1.3.2",
"quiver_tag": "@0.22.0",
"resource_rev":"@a49101ba2deb29c728acba6fb86000a8f730f4b1",
- "root_certificates_rev": "@0068d8911140e591ebb750af296e81940a9906f5",
+ "root_certificates_rev": "@a4c7c6f23a664a37bc1b6f15a819e3f2a292791a",
"scheduled_test_tag": "@0.12.9",
"shelf_static_tag": "@0.2.4",
"shelf_packages_handler_tag": "@1.0.0",
diff --git a/pkg/analysis_server/lib/src/plugin/plugin_locator.dart b/pkg/analysis_server/lib/src/plugin/plugin_locator.dart
index ac7c1f0..968ee53 100644
--- a/pkg/analysis_server/lib/src/plugin/plugin_locator.dart
+++ b/pkg/analysis_server/lib/src/plugin/plugin_locator.dart
@@ -65,10 +65,12 @@
YamlNode contents = document.contents;
if (contents is YamlMap) {
String pluginPath = contents[analysisPluginKey];
- Folder pluginFolder =
- packageFolder.getChildAssumingFolder(pluginPath);
- if (pluginFolder.exists) {
- return pluginFolder.path;
+ if (pluginPath != null) {
+ Folder pluginFolder =
+ packageFolder.getChildAssumingFolder(pluginPath);
+ if (pluginFolder.exists) {
+ return pluginFolder.path;
+ }
}
}
} catch (exception) {
diff --git a/pkg/analysis_server/lib/src/plugin/plugin_watcher.dart b/pkg/analysis_server/lib/src/plugin/plugin_watcher.dart
new file mode 100644
index 0000000..7275e20
--- /dev/null
+++ b/pkg/analysis_server/lib/src/plugin/plugin_watcher.dart
@@ -0,0 +1,153 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'package:analysis_server/src/plugin/plugin_locator.dart';
+import 'package:analysis_server/src/plugin/plugin_manager.dart';
+import 'package:analyzer/file_system/file_system.dart';
+import 'package:analyzer/source/package_map_resolver.dart';
+import 'package:analyzer/src/dart/analysis/driver.dart';
+import 'package:analyzer/src/dart/analysis/file_state.dart';
+import 'package:analyzer/src/util/absolute_path.dart';
+import 'package:analyzer_plugin/protocol/protocol_generated.dart';
+
+/**
+ * An object that watches the results produced by analysis drivers to identify
+ * references to previously unseen packages and, if those packages have plugins
+ * associated with them, causes the plugin to be associated with the driver's
+ * context root (which in turn might cause the plugin to be started).
+ */
+class PluginWatcher {
+ /**
+ * The resource provider used to access the file system.
+ */
+ final ResourceProvider resourceProvider;
+
+ /**
+ * The object managing the execution of plugins.
+ */
+ final PluginManager manager;
+
+ /**
+ * The object used to locate plugins within packages.
+ */
+ final PluginLocator _locator;
+
+ /**
+ * A table mapping analysis drivers to information related to the driver.
+ */
+ Map<AnalysisDriver, _DriverInfo> _driverInfo =
+ <AnalysisDriver, _DriverInfo>{};
+
+ /**
+ * Initialize a newly created plugin watcher.
+ */
+ PluginWatcher(this.resourceProvider, this.manager)
+ : _locator = new PluginLocator(resourceProvider);
+
+ /**
+ * The context manager has just added the given analysis [driver]. This method
+ * must be called before the driver has been allowed to perform any analysis.
+ */
+ void addedDriver(AnalysisDriver driver, ContextRoot contextRoot) {
+ _driverInfo[driver] = new _DriverInfo(
+ contextRoot, <String>[contextRoot.root, _getSdkPath(driver)]);
+ driver.results.listen((AnalysisResult result) {
+ List<String> addedPluginPaths = _checkPluginsFor(driver);
+ for (String pluginPath in addedPluginPaths) {
+ manager.addPluginToContextRoot(contextRoot, pluginPath);
+ }
+ });
+ }
+
+ /**
+ * The context manager has just removed the given analysis [driver].
+ */
+ void removedDriver(AnalysisDriver driver) {
+ _DriverInfo info = _driverInfo[driver];
+ if (info == null) {
+ throw new StateError('Cannot remove a driver that was not added');
+ }
+ manager.removedContextRoot(info.contextRoot);
+ _driverInfo.remove(driver);
+ }
+
+ /**
+ * Check all of the files that have been analyzed so far by the given [driver]
+ * to see whether any of them are in a package that had not previously been
+ * seen that defines a plugin. Return a list of the roots of all such plugins
+ * that are found.
+ */
+ List<String> _checkPluginsFor(AnalysisDriver driver) {
+ AbsolutePathContext context = resourceProvider.absolutePathContext;
+ List<String> packageRoots = _driverInfo[driver].packageRoots;
+
+ bool isInRoot(String path) {
+ for (String root in packageRoots) {
+ if (context.isWithin(root, path)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ String getPackageRoot(String path, Uri uri) {
+ List<String> segments = uri.pathSegments.toList();
+ segments[0] = 'lib';
+ String suffix = resourceProvider.pathContext.joinAll(segments);
+ return path.substring(0, path.length - suffix.length - 1);
+ }
+
+ List<String> addedPluginPaths = <String>[];
+ for (FileState state in driver.fsState.knownFiles) {
+ String path = state.path;
+ if (!isInRoot(path)) {
+ // Found a file not in a previously known package.
+ Uri uri = state.uri;
+ if (PackageMapUriResolver.isPackageUri(uri)) {
+ String packageRoot = getPackageRoot(path, uri);
+ packageRoots.add(packageRoot);
+ String pluginPath = _locator.findPlugin(packageRoot);
+ if (pluginPath != null) {
+ addedPluginPaths.add(pluginPath);
+ }
+ }
+ }
+ }
+ return addedPluginPaths;
+ }
+
+ /**
+ * Return the path to the root of the SDK being used by the given analysis
+ * [driver].
+ */
+ String _getSdkPath(AnalysisDriver driver) {
+ AbsolutePathContext context = resourceProvider.absolutePathContext;
+ String sdkRoot = driver.sourceFactory.forUri('dart:core').fullName;
+ while (sdkRoot.isNotEmpty && context.basename(sdkRoot) != 'lib') {
+ sdkRoot = context.dirname(sdkRoot);
+ }
+ return sdkRoot;
+ }
+}
+
+/**
+ * Information related to an analysis driver.
+ */
+class _DriverInfo {
+ /**
+ * The context root representing the context being analyzed by the driver.
+ */
+ final ContextRoot contextRoot;
+
+ /**
+ * A list of the absolute paths of directories inside of which we have already
+ * searched for a plugin.
+ */
+ final List<String> packageRoots;
+
+ /**
+ * Initialize a newly created information holder.
+ */
+ _DriverInfo(this.contextRoot, this.packageRoots);
+}
diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
index 9c19900..34bd735 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
@@ -598,7 +598,7 @@
// In the future consider better values than null for specific element types.
sb.append('$paramName: null');
- _insertBuilder(sb, targetElement);
+ _insertBuilder(sb, null);
_addFix(DartFixKind.ADD_MISSING_REQUIRED_ARGUMENT, [paramName]);
}
}
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
index ecbd880..6c41464 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -77,13 +77,19 @@
''');
}
- assertHasFix(FixKind kind, String expected) async {
+ assertHasFix(FixKind kind, String expected, {String target}) async {
AnalysisError error = await _findErrorToFix();
fix = await _assertHasFix(kind, error);
change = fix.change;
+
// apply to "file"
List<SourceFileEdit> fileEdits = change.edits;
expect(fileEdits, hasLength(1));
+
+ if (target != null) {
+ expect(target, fileEdits.first.file);
+ }
+
resultCode = SourceEdit.applySequence(testCode, change.edits[0].edits);
// verify
expect(resultCode, expected);
@@ -429,13 +435,20 @@
test_addMissingRequiredArg_cons_single() async {
_addMetaPackageSource();
-
- await resolveTestUnit('''
+ addSource(
+ '/libA.dart',
+ r'''
+library libA;
import 'package:meta/meta.dart';
class A {
A({@required int a}) {}
}
+''');
+
+ await resolveTestUnit('''
+import 'libA.dart';
+
main() {
A a = new A();
}
@@ -443,15 +456,13 @@
await assertHasFix(
DartFixKind.ADD_MISSING_REQUIRED_ARGUMENT,
'''
-import 'package:meta/meta.dart';
+import 'libA.dart';
-class A {
- A({@required int a}) {}
-}
main() {
A a = new A(a: null);
}
-''');
+''',
+ target: '/test.dart');
}
test_addMissingRequiredArg_multiple() async {
diff --git a/pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart b/pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart
new file mode 100644
index 0000000..27f76c2
--- /dev/null
+++ b/pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart
@@ -0,0 +1,150 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'dart:async';
+import 'dart:typed_data';
+
+import 'package:analysis_server/src/plugin/plugin_manager.dart';
+import 'package:analysis_server/src/plugin/plugin_watcher.dart';
+import 'package:analyzer/file_system/memory_file_system.dart';
+import 'package:analyzer/source/package_map_resolver.dart';
+import 'package:analyzer/src/dart/analysis/byte_store.dart';
+import 'package:analyzer/src/dart/analysis/driver.dart';
+import 'package:analyzer/src/dart/analysis/file_state.dart';
+import 'package:analyzer/src/generated/engine.dart' show AnalysisOptionsImpl;
+import 'package:analyzer/src/generated/source.dart';
+import 'package:analyzer_plugin/protocol/protocol_generated.dart';
+import 'package:path/path.dart' as path;
+import 'package:test/test.dart';
+import 'package:test_reflective_loader/test_reflective_loader.dart';
+
+import '../../mock_sdk.dart';
+
+main() {
+ defineReflectiveSuite(() {
+ defineReflectiveTests(PluginWatcherTest);
+ });
+}
+
+@reflectiveTest
+class PluginWatcherTest {
+ MemoryResourceProvider resourceProvider;
+ TestPluginManager manager;
+ PluginWatcher watcher;
+
+ void setUp() {
+ resourceProvider = new MemoryResourceProvider();
+ manager = new TestPluginManager();
+ watcher = new PluginWatcher(resourceProvider, manager);
+ }
+
+ test_addedDriver() async {
+ String pkg1Path = resourceProvider.convertPath('/pkg1');
+ ContextRoot contextRoot = new ContextRoot(pkg1Path, []);
+ TestDriver driver = new TestDriver(resourceProvider, contextRoot);
+ watcher.addedDriver(driver, contextRoot);
+ expect(manager.addedContextRoots, isEmpty);
+ //
+ // Test to see whether the listener was configured correctly.
+ //
+ // Use a file in the package being analyzed.
+ //
+ resourceProvider.newFile(
+ resourceProvider.convertPath('/pkg1/lib/test1.dart'), '');
+ await driver.computeResult('package:pkg1/test1.dart');
+ expect(manager.addedContextRoots, isEmpty);
+ //
+ // Use a file that imports a package with a plugin.
+ //
+ resourceProvider.newFile(
+ resourceProvider.convertPath('/pkg2/lib/pkg2.dart'), '');
+ resourceProvider.newFile(
+ resourceProvider.convertPath('/pkg2/pubspec.yaml'), 'name: pkg2');
+ resourceProvider.newFile(
+ resourceProvider
+ .convertPath('/pkg2/tools/analysis_plugin/bin/plugin.dart'),
+ '');
+ await driver.computeResult('package:pkg2/pk2.dart');
+ expect(manager.addedContextRoots, hasLength(1));
+ }
+
+ void test_creation() {
+ expect(watcher.resourceProvider, resourceProvider);
+ expect(watcher.manager, manager);
+ }
+
+ test_removedDriver() {
+ String pkg1Path = resourceProvider.convertPath('/pkg1');
+ ContextRoot contextRoot = new ContextRoot(pkg1Path, []);
+ TestDriver driver = new TestDriver(resourceProvider, contextRoot);
+ watcher.addedDriver(driver, contextRoot);
+ watcher.removedDriver(driver);
+ expect(manager.removedContextRoots, equals([contextRoot]));
+ }
+}
+
+class TestDriver implements AnalysisDriver {
+ final MemoryResourceProvider resourceProvider;
+
+ SourceFactory sourceFactory;
+ FileSystemState fsState;
+
+ final _resultController = new StreamController<AnalysisResult>();
+
+ TestDriver(this.resourceProvider, ContextRoot contextRoot) {
+ path.Context pathContext = resourceProvider.pathContext;
+ MockSdk sdk = new MockSdk(resourceProvider: resourceProvider);
+ String packageName = pathContext.basename(contextRoot.root);
+ String libPath = pathContext.join(contextRoot.root, 'lib');
+ sourceFactory = new SourceFactory([
+ new DartUriResolver(sdk),
+ new PackageMapUriResolver(resourceProvider, {
+ packageName: [resourceProvider.getFolder(libPath)],
+ 'pkg2': [
+ resourceProvider.getFolder(resourceProvider.convertPath('/pkg2/lib'))
+ ]
+ })
+ ]);
+ fsState = new FileSystemState(
+ new PerformanceLog(null),
+ new MemoryByteStore(),
+ null,
+ resourceProvider,
+ sourceFactory,
+ new AnalysisOptionsImpl(),
+ new Uint32List(0));
+ }
+
+ Stream<AnalysisResult> get results => _resultController.stream;
+
+ Future<Null> computeResult(String uri) {
+ FileState file = fsState.getFileForUri(Uri.parse(uri));
+ AnalysisResult result = new AnalysisResult(this, null, file.path, null,
+ true, null, null, null, null, null, null, null);
+ _resultController.add(result);
+ return new Future.delayed(new Duration(milliseconds: 1));
+ }
+
+ noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
+}
+
+class TestPluginManager implements PluginManager {
+ List<ContextRoot> addedContextRoots = <ContextRoot>[];
+
+ List<ContextRoot> removedContextRoots = <ContextRoot>[];
+
+ @override
+ Future<Null> addPluginToContextRoot(
+ ContextRoot contextRoot, String path) async {
+ addedContextRoots.add(contextRoot);
+ return null;
+ }
+
+ noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
+
+ @override
+ void removedContextRoot(ContextRoot contextRoot) {
+ removedContextRoots.add(contextRoot);
+ }
+}
diff --git a/pkg/analyzer/lib/src/dart/ast/utilities.dart b/pkg/analyzer/lib/src/dart/ast/utilities.dart
index 8090044..718f943 100644
--- a/pkg/analyzer/lib/src/dart/ast/utilities.dart
+++ b/pkg/analyzer/lib/src/dart/ast/utilities.dart
@@ -7537,7 +7537,7 @@
@override
Object visitGenericFunctionType(GenericFunctionType node) {
_visitNode(node.returnType);
- _writer.print(' Function ');
+ _writer.print(' Function');
_visitNode(node.typeParameters);
_visitNode(node.parameters);
return null;
@@ -7880,7 +7880,10 @@
_visitNodeListWithSeparatorAndSuffix(node.metadata, ' ', ' ');
_visitTokenWithSuffix(node.covariantKeyword, ' ');
_visitTokenWithSuffix(node.keyword, " ");
- _visitNodeWithSuffix(node.type, " ");
+ _visitNode(node.type);
+ if (node.type != null && node.identifier != null) {
+ _writer.print(' ');
+ }
_visitNode(node.identifier);
return null;
}
@@ -8847,7 +8850,7 @@
@override
Object visitGenericFunctionType(GenericFunctionType node) {
safelyVisitNode(node.returnType);
- sink.write(' Function ');
+ sink.write(' Function');
safelyVisitNode(node.typeParameters);
safelyVisitNode(node.parameters);
return null;
@@ -9190,7 +9193,10 @@
safelyVisitNodeListWithSeparatorAndSuffix(node.metadata, ' ', ' ');
safelyVisitTokenWithSuffix(node.covariantKeyword, ' ');
safelyVisitTokenWithSuffix(node.keyword, " ");
- safelyVisitNodeWithSuffix(node.type, " ");
+ safelyVisitNode(node.type);
+ if (node.type != null && node.identifier != null) {
+ sink.write(' ');
+ }
safelyVisitNode(node.identifier);
return null;
}
diff --git a/pkg/analyzer/lib/src/generated/testing/ast_test_factory.dart b/pkg/analyzer/lib/src/generated/testing/ast_test_factory.dart
index 115bad5..b0c28c6 100644
--- a/pkg/analyzer/lib/src/generated/testing/ast_test_factory.dart
+++ b/pkg/analyzer/lib/src/generated/testing/ast_test_factory.dart
@@ -612,6 +612,23 @@
identifier: identifier3(identifier),
parameters: formalParameterList(parameters));
+ static GenericFunctionType genericFunctionType(TypeAnnotation returnType,
+ TypeParameterList typeParameters, FormalParameterList parameters) =>
+ astFactory.genericFunctionType(returnType,
+ TokenFactory.tokenFromString("Function"), typeParameters, parameters);
+
+ static GenericTypeAlias genericTypeAlias(String name,
+ TypeParameterList typeParameters, GenericFunctionType functionType) =>
+ astFactory.genericTypeAlias(
+ null,
+ null,
+ TokenFactory.tokenFromKeyword(Keyword.TYPEDEF),
+ identifier3(name),
+ typeParameters,
+ TokenFactory.tokenFromType(TokenType.EQ),
+ functionType,
+ TokenFactory.tokenFromType(TokenType.SEMICOLON));
+
static HideCombinator hideCombinator(List<SimpleIdentifier> identifiers) =>
astFactory.hideCombinator(
TokenFactory.tokenFromString("hide"), identifiers);
@@ -1069,7 +1086,8 @@
keyword:
keyword == null ? null : TokenFactory.tokenFromKeyword(keyword),
type: type,
- identifier: identifier3(parameterName));
+ identifier:
+ parameterName == null ? null : identifier3(parameterName));
static SimpleFormalParameter simpleFormalParameter3(String parameterName) =>
simpleFormalParameter2(null, null, parameterName);
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
index a3cd302..0945db2 100644
--- a/pkg/analyzer/lib/src/summary/link.dart
+++ b/pkg/analyzer/lib/src/summary/link.dart
@@ -436,6 +436,16 @@
return null;
}
+ @override
+ MethodElement getMethod(String methodName) {
+ for (MethodElement method in methods) {
+ if (method.name == methodName) {
+ return method;
+ }
+ }
+ return null;
+ }
+
/**
* Perform type inference and cycle detection on this class and
* store the resulting information in [compilationUnit].
@@ -644,16 +654,6 @@
}
@override
- MethodElement getMethod(String methodName) {
- for (MethodElement method in methods) {
- if (method.name == methodName) {
- return method;
- }
- }
- return null;
- }
-
- @override
void link(CompilationUnitElementInBuildUnit compilationUnit) {
for (ConstructorElementForLink constructorElement in constructors) {
constructorElement.link(compilationUnit);
diff --git a/pkg/analyzer/test/generated/parser_fasta_test.dart b/pkg/analyzer/test/generated/parser_fasta_test.dart
index a9da17f..6a41a02 100644
--- a/pkg/analyzer/test/generated/parser_fasta_test.dart
+++ b/pkg/analyzer/test/generated/parser_fasta_test.dart
@@ -95,13 +95,6 @@
@override
@failingTest
- void test_parseConstructor_with_pseudo_function_literal() {
- // TODO(paulberry): Expected: an object with length of <1>
- super.test_parseConstructor_with_pseudo_function_literal();
- }
-
- @override
- @failingTest
void test_parseConstructorFieldInitializer_qualified() {
// TODO(paulberry): Unhandled event: ThisExpression
super.test_parseConstructorFieldInitializer_qualified();
@@ -1112,66 +1105,12 @@
@override
@failingTest
- void test_parseForStatement_loop_c() {
- super.test_parseForStatement_loop_c();
- }
-
- @override
- @failingTest
- void test_parseForStatement_loop_cu() {
- super.test_parseForStatement_loop_cu();
- }
-
- @override
- @failingTest
- void test_parseForStatement_loop_ecu() {
- super.test_parseForStatement_loop_ecu();
- }
-
- @override
- @failingTest
- void test_parseForStatement_loop_i() {
- super.test_parseForStatement_loop_i();
- }
-
- @override
- @failingTest
void test_parseForStatement_loop_i_withMetadata() {
super.test_parseForStatement_loop_i_withMetadata();
}
@override
@failingTest
- void test_parseForStatement_loop_ic() {
- super.test_parseForStatement_loop_ic();
- }
-
- @override
- @failingTest
- void test_parseForStatement_loop_icu() {
- super.test_parseForStatement_loop_icu();
- }
-
- @override
- @failingTest
- void test_parseForStatement_loop_iicuu() {
- super.test_parseForStatement_loop_iicuu();
- }
-
- @override
- @failingTest
- void test_parseForStatement_loop_iu() {
- super.test_parseForStatement_loop_iu();
- }
-
- @override
- @failingTest
- void test_parseForStatement_loop_u() {
- super.test_parseForStatement_loop_u();
- }
-
- @override
- @failingTest
void test_parseNonLabeledStatement_functionDeclaration() {
super.test_parseNonLabeledStatement_functionDeclaration();
}
@@ -1332,16 +1271,6 @@
@override
@failingTest
- void
- test_parseCompilationUnitMember_function_generic_noReturnType_annotated() {
- // TODO(paulberry,ahe): Fasta doesn't appear to support annotated type
- // parameters.
- super
- .test_parseCompilationUnitMember_function_generic_noReturnType_annotated();
- }
-
- @override
- @failingTest
void test_parseDirectives_mixed() {
// TODO(paulberry,ahe): This test verifies the analyzer parser's ability to
// stop parsing as soon as the first non-directive is encountered; this is
diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
index 264cb69..517a895 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -1092,6 +1092,33 @@
expect(constructor.body, new isInstanceOf<EmptyFunctionBody>());
}
+ void test_parseConstructor_initializers_field() {
+ createParser('C(x, y) : _x = x, this._y = y;');
+ ClassMember member = parser.parseClassMember('C');
+ expect(member, isNotNull);
+ assertNoErrors();
+ expect(member, new isInstanceOf<ConstructorDeclaration>());
+ ConstructorDeclaration constructor = member as ConstructorDeclaration;
+ NodeList<ConstructorInitializer> initializers = constructor.initializers;
+ expect(initializers, hasLength(2));
+
+ {
+ var initializer = initializers[0] as ConstructorFieldInitializer;
+ expect(initializer.thisKeyword, isNull);
+ expect(initializer.period, isNull);
+ expect(initializer.fieldName.name, '_x');
+ expect(initializer.expression, isNotNull);
+ }
+
+ {
+ var initializer = initializers[1] as ConstructorFieldInitializer;
+ expect(initializer.thisKeyword, isNotNull);
+ expect(initializer.period, isNotNull);
+ expect(initializer.fieldName.name, '_y');
+ expect(initializer.expression, isNotNull);
+ }
+ }
+
void test_parseConstructor_assert() {
enableAssertInitializer = true;
createParser('C(x, y) : _x = x, assert (x < y), _y = y;');
@@ -14729,6 +14756,17 @@
expectCommentText(typeAlias.documentationComment, '/// Doc');
}
+ void test_parseTypeVariable_withDocumentationComment() {
+ createParser('''
+class A<
+ /// Doc
+ B> {}
+''');
+ var classDeclaration = parseFullCompilationUnitMember() as ClassDeclaration;
+ var typeVariable = classDeclaration.typeParameters.typeParameters[0];
+ expectCommentText(typeVariable.documentationComment, '/// Doc');
+ }
+
/**
* Assert that the given [name] is in declaration context.
*/
diff --git a/pkg/analyzer/test/src/dart/ast/utilities_test.dart b/pkg/analyzer/test/src/dart/ast/utilities_test.dart
index 2f07775..83a8b97 100644
--- a/pkg/analyzer/test/src/dart/ast/utilities_test.dart
+++ b/pkg/analyzer/test/src/dart/ast/utilities_test.dart
@@ -2509,6 +2509,33 @@
parameters: AstTestFactory.formalParameterList([])));
}
+ void test_visitGenericFunctionType() {
+ _assertSource(
+ "int Function<T>(T)",
+ AstTestFactory.genericFunctionType(
+ AstTestFactory.typeName4("int"),
+ AstTestFactory.typeParameterList(['T']),
+ AstTestFactory.formalParameterList([
+ AstTestFactory.simpleFormalParameter4(
+ AstTestFactory.typeName4("T"), null)
+ ])));
+ }
+
+ void test_visitGenericTypeAlias() {
+ _assertSource(
+ "typedef X<S> = S Function<T>(T)",
+ AstTestFactory.genericTypeAlias(
+ 'X',
+ AstTestFactory.typeParameterList(['S']),
+ AstTestFactory.genericFunctionType(
+ AstTestFactory.typeName4("S"),
+ AstTestFactory.typeParameterList(['T']),
+ AstTestFactory.formalParameterList([
+ AstTestFactory.simpleFormalParameter4(
+ AstTestFactory.typeName4("T"), null)
+ ]))));
+ }
+
void test_visitIfStatement_withElse() {
_assertSource(
"if (c) {} else {}",
@@ -4858,6 +4885,33 @@
parameters: AstTestFactory.formalParameterList([])));
}
+ void test_visitGenericFunctionType() {
+ _assertSource(
+ "int Function<T>(T)",
+ AstTestFactory.genericFunctionType(
+ AstTestFactory.typeName4("int"),
+ AstTestFactory.typeParameterList(['T']),
+ AstTestFactory.formalParameterList([
+ AstTestFactory.simpleFormalParameter4(
+ AstTestFactory.typeName4("T"), null)
+ ])));
+ }
+
+ void test_visitGenericTypeAlias() {
+ _assertSource(
+ "typedef X<S> = S Function<T>(T)",
+ AstTestFactory.genericTypeAlias(
+ 'X',
+ AstTestFactory.typeParameterList(['S']),
+ AstTestFactory.genericFunctionType(
+ AstTestFactory.typeName4("S"),
+ AstTestFactory.typeParameterList(['T']),
+ AstTestFactory.formalParameterList([
+ AstTestFactory.simpleFormalParameter4(
+ AstTestFactory.typeName4("T"), null)
+ ]))));
+ }
+
void test_visitIfStatement_withElse() {
_assertSource(
"if (c) {} else {}",
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index 5cbe2e9..5d2a096 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -5483,6 +5483,36 @@
}
}
+ test_constExpr_pushReference_enum_method() {
+ var library = checkLibrary('''
+enum E {a}
+final vToString = E.a.toString();
+''');
+ if (isStrongMode) {
+ checkElementText(
+ library,
+ r'''
+enum E {
+ final int index;
+ static const List<E> values;
+ static const E a;
+}
+final String vToString;
+''');
+ } else {
+ checkElementText(
+ library,
+ r'''
+enum E {
+ final int index;
+ static const List<E> values;
+ static const E a;
+}
+final dynamic vToString;
+''');
+ }
+ }
+
test_constExpr_pushReference_field_simpleIdentifier() {
var library = checkLibrary('''
class C {
diff --git a/pkg/compiler/bin/resolver.dart b/pkg/compiler/bin/resolver.dart
index 428508b..30d715b 100644
--- a/pkg/compiler/bin/resolver.dart
+++ b/pkg/compiler/bin/resolver.dart
@@ -27,8 +27,7 @@
.map((uri) => currentDirectory.resolve(nativeToUriPath(uri)))
.toList();
- var text = await resolve(
- inputs,
+ var text = await resolve(inputs,
deps: args['deps'],
root: args['library-root'],
packages: args['packages'],
diff --git a/pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart b/pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart
index a18ce66..6fc156d 100644
--- a/pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart
+++ b/pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart
@@ -11,98 +11,95 @@
*/
import '../messages.dart' show MessageKind, MessageTemplate;
-const Map<MessageKind, MessageTemplate> TEMPLATES = const <MessageKind, MessageTemplate>{
+const Map<MessageKind, MessageTemplate> TEMPLATES =
+ const <MessageKind, MessageTemplate>{
MessageKind.CONST_CONSTRUCTOR_WITH_BODY: const MessageTemplate(
- MessageKind.CONST_CONSTRUCTOR_WITH_BODY,
- "Const constructor can't have a body.",
- howToFix: "Try removing the 'const' keyword or the body.",
- examples: const [
- r"""
+ MessageKind.CONST_CONSTRUCTOR_WITH_BODY,
+ "Const constructor can't have a body.",
+ howToFix: "Try removing the 'const' keyword or the body.",
+ examples: const [
+ r"""
class C {
const C() {}
}
main() => new C();""",
- ]
- ), // Generated. Don't edit.
- MessageKind.CONST_FACTORY: const MessageTemplate(
- MessageKind.CONST_FACTORY,
- "Only redirecting factory constructors can be declared to be 'const'.",
- howToFix: "Try removing the 'const' keyword or replacing the body with '=' followed by a valid target.",
- examples: const [
- r"""
+ ]), // Generated. Don't edit.
+ MessageKind.CONST_FACTORY: const MessageTemplate(MessageKind.CONST_FACTORY,
+ "Only redirecting factory constructors can be declared to be 'const'.",
+ howToFix:
+ "Try removing the 'const' keyword or replacing the body with '=' followed by a valid target.",
+ examples: const [
+ r"""
class C {
const factory C() {}
}
main() => new C();""",
- ]
- ), // Generated. Don't edit.
+ ]), // Generated. Don't edit.
MessageKind.EXTRANEOUS_MODIFIER: const MessageTemplate(
- MessageKind.EXTRANEOUS_MODIFIER,
- "Can't have modifier '#{modifier}' here.",
- howToFix: "Try removing '#{modifier}'.",
- examples: const [
- "var String foo; main(){}",
- "var set foo; main(){}",
- "var final foo; main(){}",
- "var var foo; main(){}",
- "var const foo; main(){}",
- "var abstract foo; main(){}",
- "var static foo; main(){}",
- "var external foo; main(){}",
- "get var foo; main(){}",
- "set var foo; main(){}",
- "final var foo; main(){}",
- "var var foo; main(){}",
- "const var foo; main(){}",
- "abstract var foo; main(){}",
- "static var foo; main(){}",
- "external var foo; main(){}",
- ]
- ), // Generated. Don't edit.
+ MessageKind.EXTRANEOUS_MODIFIER,
+ "Can't have modifier '#{modifier}' here.",
+ howToFix: "Try removing '#{modifier}'.",
+ examples: const [
+ "var String foo; main(){}",
+ "var set foo; main(){}",
+ "var final foo; main(){}",
+ "var var foo; main(){}",
+ "var const foo; main(){}",
+ "var abstract foo; main(){}",
+ "var static foo; main(){}",
+ "var external foo; main(){}",
+ "get var foo; main(){}",
+ "set var foo; main(){}",
+ "final var foo; main(){}",
+ "var var foo; main(){}",
+ "const var foo; main(){}",
+ "abstract var foo; main(){}",
+ "static var foo; main(){}",
+ "external var foo; main(){}",
+ ]), // Generated. Don't edit.
MessageKind.EXTRANEOUS_MODIFIER_REPLACE: const MessageTemplate(
- MessageKind.EXTRANEOUS_MODIFIER_REPLACE,
- "Can't have modifier '#{modifier}' here.",
- howToFix: "Try replacing modifier '#{modifier}' with 'var', 'final', or a type.",
- examples: const [
- "set foo; main(){}",
- "abstract foo; main(){}",
- "static foo; main(){}",
- "external foo; main(){}",
- ]
- ), // Generated. Don't edit.
+ MessageKind.EXTRANEOUS_MODIFIER_REPLACE,
+ "Can't have modifier '#{modifier}' here.",
+ howToFix:
+ "Try replacing modifier '#{modifier}' with 'var', 'final', or a type.",
+ examples: const [
+ "set foo; main(){}",
+ "abstract foo; main(){}",
+ "static foo; main(){}",
+ "external foo; main(){}",
+ ]), // Generated. Don't edit.
MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE: const MessageTemplate(
- MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE,
- "Constructors can't have a return type.",
- howToFix: "Try removing the return type.",
- examples: const [
- "class A { int A() {} } main() { new A(); }",
- ]
- ), // Generated. Don't edit.
+ MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE,
+ "Constructors can't have a return type.",
+ howToFix: "Try removing the return type.",
+ examples: const [
+ "class A { int A() {} } main() { new A(); }",
+ ]), // Generated. Don't edit.
MessageKind.MISSING_EXPRESSION_IN_THROW: const MessageTemplate(
- MessageKind.MISSING_EXPRESSION_IN_THROW,
- "Missing expression after 'throw'.",
- howToFix: "Did you mean 'rethrow'?",
- examples: const [
- "main() { throw; }",
- "main() { try { throw 0; } catch(e) { throw; } }",
- ]
- ), // Generated. Don't edit.
+ MessageKind.MISSING_EXPRESSION_IN_THROW,
+ "Missing expression after 'throw'.",
+ howToFix: "Did you mean 'rethrow'?",
+ examples: const [
+ "main() { throw; }",
+ "main() { try { throw 0; } catch(e) { throw; } }",
+ ]), // Generated. Don't edit.
MessageKind.RETHROW_OUTSIDE_CATCH: const MessageTemplate(
- MessageKind.RETHROW_OUTSIDE_CATCH,
- "Rethrow must be inside of catch clause.",
- howToFix: "Try moving the expression into a catch clause, or using a 'throw' expression.",
- examples: const [
- "main() { rethrow; }",
- ]
- ), // Generated. Don't edit.
+ MessageKind.RETHROW_OUTSIDE_CATCH,
+ "Rethrow must be inside of catch clause.",
+ howToFix:
+ "Try moving the expression into a catch clause, or using a 'throw' expression.",
+ examples: const [
+ "main() { rethrow; }",
+ ]), // Generated. Don't edit.
MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR: const MessageTemplate(
- MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR,
- "Constructors can't return values.",
- howToFix: "Try removing the return statement or using a factory constructor.",
- examples: const [
- r"""
+ MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR,
+ "Constructors can't return values.",
+ howToFix:
+ "Try removing the return statement or using a factory constructor.",
+ examples: const [
+ r"""
class C {
C() {
return 1;
@@ -110,130 +107,118 @@
}
main() => new C();""",
- ]
- ), // Generated. Don't edit.
+ ]), // Generated. Don't edit.
MessageKind.RETURN_IN_GENERATOR: const MessageTemplate(
- MessageKind.RETURN_IN_GENERATOR,
- "Can't return a value from a generator function (using the '#{modifier}' modifier).",
- howToFix: "Try removing the value, replacing 'return' with 'yield' or changing the method body modifier.",
- examples: const [
- r"""
+ MessageKind.RETURN_IN_GENERATOR,
+ "Can't return a value from a generator function (using the '#{modifier}' modifier).",
+ howToFix:
+ "Try removing the value, replacing 'return' with 'yield' or changing the method body modifier.",
+ examples: const [
+ r"""
foo() async* { return 0; }
main() => foo();
""",
- r"""
+ r"""
foo() sync* { return 0; }
main() => foo();
""",
- ]
- ), // Generated. Don't edit.
- MessageKind.NOT_ASSIGNABLE: const MessageTemplate(
- MessageKind.NOT_ASSIGNABLE,
- "'#{fromType}' is not assignable to '#{toType}'." ), // Generated. Don't edit.
+ ]), // Generated. Don't edit.
+ MessageKind.NOT_ASSIGNABLE: const MessageTemplate(MessageKind.NOT_ASSIGNABLE,
+ "'#{fromType}' is not assignable to '#{toType}'."), // Generated. Don't edit.
MessageKind.FORIN_NOT_ASSIGNABLE: const MessageTemplate(
- MessageKind.FORIN_NOT_ASSIGNABLE,
- "The element type '#{currentType}' of '#{expressionType}' is not assignable to '#{elementType}'.",
- examples: const [
- r"""
+ MessageKind.FORIN_NOT_ASSIGNABLE,
+ "The element type '#{currentType}' of '#{expressionType}' is not assignable to '#{elementType}'.",
+ examples: const [
+ r"""
main() {
List<int> list = <int>[1, 2];
for (String x in list) x;
}
""",
- ]
- ), // Generated. Don't edit.
- MessageKind.CANNOT_RESOLVE: const MessageTemplate(
- MessageKind.CANNOT_RESOLVE,
- "Can't resolve '#{name}'." ), // Generated. Don't edit.
+ ]), // Generated. Don't edit.
+ MessageKind.CANNOT_RESOLVE: const MessageTemplate(MessageKind.CANNOT_RESOLVE,
+ "Can't resolve '#{name}'."), // Generated. Don't edit.
MessageKind.UNDEFINED_METHOD: const MessageTemplate(
- MessageKind.UNDEFINED_METHOD,
- "The method '#{memberName}' is not defined for the class '#{className}'.",
- examples: const [
- r"""
+ MessageKind.UNDEFINED_METHOD,
+ "The method '#{memberName}' is not defined for the class '#{className}'.",
+ examples: const [
+ r"""
class A {
foo() { bar(); }
}
main() { new A().foo(); }
""",
- ]
- ), // Generated. Don't edit.
+ ]), // Generated. Don't edit.
MessageKind.UNDEFINED_GETTER: const MessageTemplate(
- MessageKind.UNDEFINED_GETTER,
- "The getter '#{memberName}' is not defined for the class '#{className}'.",
- examples: const [
- "class A {} main() { new A().x; }",
- "class A {} main() { A.x; }",
- ]
- ), // Generated. Don't edit.
+ MessageKind.UNDEFINED_GETTER,
+ "The getter '#{memberName}' is not defined for the class '#{className}'.",
+ examples: const [
+ "class A {} main() { new A().x; }",
+ "class A {} main() { A.x; }",
+ ]), // Generated. Don't edit.
MessageKind.UNDEFINED_INSTANCE_GETTER_BUT_SETTER: const MessageTemplate(
- MessageKind.UNDEFINED_INSTANCE_GETTER_BUT_SETTER,
- "The setter '#{memberName}' in class '#{className}' can not be used as a getter.",
- examples: const [
- "class A { set x(y) {} } main() { new A().x; }",
- ]
- ), // Generated. Don't edit.
+ MessageKind.UNDEFINED_INSTANCE_GETTER_BUT_SETTER,
+ "The setter '#{memberName}' in class '#{className}' can not be used as a getter.",
+ examples: const [
+ "class A { set x(y) {} } main() { new A().x; }",
+ ]), // Generated. Don't edit.
MessageKind.UNDEFINED_OPERATOR: const MessageTemplate(
- MessageKind.UNDEFINED_OPERATOR,
- "The operator '#{memberName}' is not defined for the class '#{className}'.",
- examples: const [
- "class A {} main() { new A() + 3; }",
- ]
- ), // Generated. Don't edit.
+ MessageKind.UNDEFINED_OPERATOR,
+ "The operator '#{memberName}' is not defined for the class '#{className}'.",
+ examples: const [
+ "class A {} main() { new A() + 3; }",
+ ]), // Generated. Don't edit.
MessageKind.UNDEFINED_SETTER: const MessageTemplate(
- MessageKind.UNDEFINED_SETTER,
- "The setter '#{memberName}' is not defined for the class '#{className}'.",
- examples: const [
- "class A {} main() { new A().x = 499; }",
- ]
- ), // Generated. Don't edit.
+ MessageKind.UNDEFINED_SETTER,
+ "The setter '#{memberName}' is not defined for the class '#{className}'.",
+ examples: const [
+ "class A {} main() { new A().x = 499; }",
+ ]), // Generated. Don't edit.
MessageKind.NO_SUCH_SUPER_MEMBER: const MessageTemplate(
- MessageKind.NO_SUCH_SUPER_MEMBER,
- "Can't resolve '#{memberName}' in a superclass of '#{className}'." ), // Generated. Don't edit.
+ MessageKind.NO_SUCH_SUPER_MEMBER,
+ "Can't resolve '#{memberName}' in a superclass of '#{className}'."), // Generated. Don't edit.
MessageKind.UNDEFINED_SUPER_SETTER: const MessageTemplate(
- MessageKind.UNDEFINED_SUPER_SETTER,
- "The setter '#{memberName}' is not defined in a superclass of '#{className}'.",
- examples: const [
- r"""
+ MessageKind.UNDEFINED_SUPER_SETTER,
+ "The setter '#{memberName}' is not defined in a superclass of '#{className}'.",
+ examples: const [
+ r"""
class A {}
class B extends A {
foo() { super.x = 499; }
}
main() { new B().foo(); }
""",
- ]
- ), // Generated. Don't edit.
+ ]), // Generated. Don't edit.
MessageKind.UNDEFINED_STATIC_GETTER_BUT_SETTER: const MessageTemplate(
- MessageKind.UNDEFINED_STATIC_GETTER_BUT_SETTER,
- "Cannot resolve getter '#{name}'.",
- examples: const [
- "set foo(x) {} main() { foo; }",
- ]
- ), // Generated. Don't edit.
+ MessageKind.UNDEFINED_STATIC_GETTER_BUT_SETTER,
+ "Cannot resolve getter '#{name}'.",
+ examples: const [
+ "set foo(x) {} main() { foo; }",
+ ]), // Generated. Don't edit.
MessageKind.UNDEFINED_STATIC_SETTER_BUT_GETTER: const MessageTemplate(
- MessageKind.UNDEFINED_STATIC_SETTER_BUT_GETTER,
- "Cannot resolve setter '#{name}'.",
- examples: const [
- r"""
+ MessageKind.UNDEFINED_STATIC_SETTER_BUT_GETTER,
+ "Cannot resolve setter '#{name}'.",
+ examples: const [
+ r"""
main() {
final x = 1;
x = 2;
}""",
- r"""
+ r"""
main() {
const x = 1;
x = 2;
}
""",
- r"""
+ r"""
final x = 1;
main() { x = 3; }
""",
- r"""
+ r"""
const x = 1;
main() { x = 3; }
""",
- "get foo => null main() { foo = 5; }",
- "const foo = 0 main() { foo = 5; }",
- ]
- ), // Generated. Don't edit.
+ "get foo => null main() { foo = 5; }",
+ "const foo = 0 main() { foo = 5; }",
+ ]), // Generated. Don't edit.
};
diff --git a/pkg/compiler/lib/src/parser/element_listener.dart b/pkg/compiler/lib/src/parser/element_listener.dart
index 0925a1c..5c1a5e7 100644
--- a/pkg/compiler/lib/src/parser/element_listener.dart
+++ b/pkg/compiler/lib/src/parser/element_listener.dart
@@ -76,6 +76,9 @@
LinkBuilder<MetadataAnnotation> metadata =
new LinkBuilder<MetadataAnnotation>();
+ /// Indicates whether the parser is currently accepting a type variable.
+ bool inTypeVariable = false;
+
/// Records a stack of booleans for each member parsed (a stack is used to
/// support nested members which isn't currently possible, but it also serves
/// as a simple way to tell we're currently parsing a member). In this case,
@@ -250,8 +253,13 @@
if (periodBeforeName != null) {
popNode(); // Discard name.
}
- popNode(); // Discard node (Send or Identifier).
- pushMetadata(new PartialMetadataAnnotation(beginToken, endToken));
+ popNode(); // Discard type parameters
+ popNode(); // Discard identifier
+ // TODO(paulberry,ahe): type variable metadata should not be ignored. See
+ // dartbug.com/5841.
+ if (!inTypeVariable) {
+ pushMetadata(new PartialMetadataAnnotation(beginToken, endToken));
+ }
}
@override
@@ -419,7 +427,13 @@
}
@override
+ void beginTypeVariable(Token token) {
+ inTypeVariable = true;
+ }
+
+ @override
void endTypeVariable(Token token, Token extendsOrSuper) {
+ inTypeVariable = false;
NominalTypeAnnotation bound = popNode();
Identifier name = popNode();
pushNode(new TypeVariable(name, extendsOrSuper, bound));
diff --git a/pkg/compiler/lib/src/parser/member_listener.dart b/pkg/compiler/lib/src/parser/member_listener.dart
index 202fba3..2346ebf 100644
--- a/pkg/compiler/lib/src/parser/member_listener.dart
+++ b/pkg/compiler/lib/src/parser/member_listener.dart
@@ -156,6 +156,10 @@
@override
void endMetadata(Token beginToken, Token periodBeforeName, Token endToken) {
super.endMetadata(beginToken, periodBeforeName, endToken);
- pushMetadata(new PartialMetadataAnnotation(beginToken, endToken));
+ // TODO(paulberry,ahe): type variable metadata should not be ignored. See
+ // dartbug.com/5841.
+ if (!inTypeVariable) {
+ pushMetadata(new PartialMetadataAnnotation(beginToken, endToken));
+ }
}
}
diff --git a/pkg/compiler/lib/src/parser/node_listener.dart b/pkg/compiler/lib/src/parser/node_listener.dart
index e8074a5..664afb1 100644
--- a/pkg/compiler/lib/src/parser/node_listener.dart
+++ b/pkg/compiler/lib/src/parser/node_listener.dart
@@ -541,13 +541,13 @@
}
@override
- void endForStatement(
- int updateExpressionCount, Token beginToken, Token endToken) {
+ void endForStatement(Token forKeyword, Token leftSeparator,
+ int updateExpressionCount, Token endToken) {
Statement body = popNode();
NodeList updates = makeNodeList(updateExpressionCount, null, null, ',');
Statement condition = popNode();
Node initializer = popNode();
- pushNode(new For(initializer, condition, updates, body, beginToken));
+ pushNode(new For(initializer, condition, updates, body, forKeyword));
}
@override
@@ -1009,6 +1009,18 @@
}
@override
+ void endTypeVariable(Token token, Token extendsOrSuper) {
+ inTypeVariable = false;
+ NominalTypeAnnotation bound = popNode();
+ Identifier name = popNode();
+ // TODO(paulberry): type variable metadata should not be ignored. See
+ // dartbug.com/5841.
+ popNode(); // Metadata
+ pushNode(new TypeVariable(name, extendsOrSuper, bound));
+ rejectBuiltInIdentifier(name);
+ }
+
+ @override
void log(message) {
reporter.log(message);
}
diff --git a/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart b/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
index 6dbf37b..137411b 100644
--- a/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
+++ b/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
@@ -41,6 +41,15 @@
instruction.setUseGvn();
}
+ Selector renameToOptimizedSelector(
+ String name, Selector selector, Compiler compiler) {
+ if (selector.name == name) return selector;
+ JavaScriptBackend backend = compiler.backend;
+ return new Selector.call(
+ new Name(name, backend.helpers.interceptorsLibrary),
+ new CallStructure(selector.argumentCount));
+ }
+
Operation operation(ConstantSystem constantSystem) => null;
static InvokeDynamicSpecializer lookupSpecializer(Selector selector) {
@@ -241,15 +250,6 @@
HInstruction newBuiltinVariant(
HInvokeDynamic instruction, Compiler compiler, ClosedWorld closedWorld);
-
- Selector renameToOptimizedSelector(
- String name, Selector selector, Compiler compiler) {
- if (selector.name == name) return selector;
- JavaScriptBackend backend = compiler.backend;
- return new Selector.call(
- new Name(name, backend.helpers.interceptorsLibrary),
- new CallStructure(selector.argumentCount));
- }
}
class AddSpecializer extends BinaryArithmeticSpecializer {
@@ -539,11 +539,23 @@
}
bool argumentLessThan32(HInstruction instruction) {
- if (!instruction.isConstantInteger()) return false;
- HConstant rightConstant = instruction;
- IntConstantValue intConstant = rightConstant.constant;
- int count = intConstant.primitiveValue;
- return count >= 0 && count <= 31;
+ return argumentInRange(instruction, 0, 31);
+ }
+
+ bool argumentInRange(HInstruction instruction, int low, int high) {
+ if (instruction.isConstantInteger()) {
+ HConstant rightConstant = instruction;
+ IntConstantValue intConstant = rightConstant.constant;
+ int value = intConstant.primitiveValue;
+ return value >= low && value <= high;
+ }
+ // TODO(sra): Integrate with the bit-width analysis in codegen.dart.
+ if (instruction is HBitAnd) {
+ return low == 0 &&
+ (argumentInRange(instruction.inputs[0], low, high) ||
+ argumentInRange(instruction.inputs[1], low, high));
+ }
+ return false;
}
bool isPositive(HInstruction instruction, ClosedWorld closedWorld) {
@@ -854,6 +866,10 @@
// String.codeUnitAt does not have any side effect (other than throwing),
// and that it can be GVN'ed.
clearAllSideEffects(instruction);
+ if (instruction.inputs.last.isPositiveInteger(closedWorld)) {
+ instruction.selector = renameToOptimizedSelector(
+ '_codeUnitAt', instruction.selector, compiler);
+ }
}
return null;
}
diff --git a/pkg/compiler/tool/dart2js_stress.dart b/pkg/compiler/tool/dart2js_stress.dart
index d699e2b..8327964 100644
--- a/pkg/compiler/tool/dart2js_stress.dart
+++ b/pkg/compiler/tool/dart2js_stress.dart
@@ -21,9 +21,12 @@
"Use '$ITERATIONS_FLAG_PREFIX<count>' to set a repetition count"
" (as first flag).");
}
- args = ["--suppress-warnings", "--suppress-hints", "--library-root="
- "${Platform.script.resolve('../../../sdk').toFilePath()}"]
- ..addAll(args);
+ args = [
+ "--suppress-warnings",
+ "--suppress-hints",
+ "--library-root="
+ "${Platform.script.resolve('../../../sdk').toFilePath()}"
+ ]..addAll(args);
void iterate() {
count++;
sw.reset();
diff --git a/pkg/compiler/tool/track_memory.dart b/pkg/compiler/tool/track_memory.dart
index c5f5d04..46891a4 100644
--- a/pkg/compiler/tool/track_memory.dart
+++ b/pkg/compiler/tool/track_memory.dart
@@ -66,8 +66,12 @@
Future _sendMessage(String method, [Map args = const {}]) {
var id = _requestId++;
_pendingResponses[id] = new Completer();
- socket.add(JSON.encode(
- {'jsonrpc': '2.0', 'id': '$id', 'method': '$method', 'params': args,}));
+ socket.add(JSON.encode({
+ 'jsonrpc': '2.0',
+ 'id': '$id',
+ 'method': '$method',
+ 'params': args,
+ }));
return _pendingResponses[id].future;
}
diff --git a/pkg/dev_compiler/lib/src/compiler/code_generator.dart b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
index 322b5e6..f9d81e9 100644
--- a/pkg/dev_compiler/lib/src/compiler/code_generator.dart
+++ b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
@@ -2855,7 +2855,17 @@
// For instance members, we add implicit-this.
// For method tear-offs, we ensure it's a bound method.
var tearOff = element is MethodElement && !inInvocationContext(node);
- if (tearOff) return _callHelper('bind(this, #)', member);
+ if (tearOff) {
+ // To be safe always use the symbolized name when binding on a native
+ // class as bind assumes the name will match the name class sigatures
+ // which is symbolized for native classes.
+ var safeName = _emitMemberName(name,
+ isStatic: isStatic,
+ type: type,
+ element: element,
+ alwaysSymbolizeNative: true);
+ return _callHelper('bind(this, #)', safeName);
+ }
return js.call('this.#', member);
}
@@ -5022,13 +5032,22 @@
JS.Expression result;
if (member != null && member is MethodElement && !isStatic) {
// Tear-off methods: explicitly bind it.
+ // To be safe always use the symbolized name when binding on a native
+ // class as bind assumes the name will match the name class sigatures
+ // which is symbolized for native classes.
+ var safeName = _emitMemberName(memberName,
+ type: getStaticType(target),
+ isStatic: isStatic,
+ element: member,
+ alwaysSymbolizeNative: true);
if (isSuper) {
- result = _callHelper('bind(this, #, #.#)', [name, jsTarget, name]);
+ result =
+ _callHelper('bind(this, #, #.#)', [safeName, jsTarget, safeName]);
} else if (_isObjectMemberCall(target, memberName)) {
result = _callHelper('bind(#, #, #.#)',
[jsTarget, _propertyName(memberName), _runtimeModule, memberName]);
} else {
- result = _callHelper('bind(#, #)', [jsTarget, name]);
+ result = _callHelper('bind(#, #)', [jsTarget, safeName]);
}
} else if (_isObjectMemberCall(target, memberName)) {
result = _callHelper('#(#)', [memberName, jsTarget]);
@@ -5625,6 +5644,7 @@
bool isStatic: false,
bool useExtension,
bool useDisplayName: false,
+ bool alwaysSymbolizeNative: false,
Element element}) {
// Static members skip the rename steps and may require JS interop renames.
if (isStatic) {
@@ -5663,8 +5683,8 @@
while (baseType is TypeParameterType) {
baseType = (baseType.element as TypeParameterElement).bound;
}
- useExtension =
- baseType is InterfaceType && _isSymbolizedMember(baseType, name);
+ useExtension = baseType is InterfaceType &&
+ _isSymbolizedMember(baseType, name, alwaysSymbolizeNative);
}
return useExtension
@@ -5701,7 +5721,8 @@
/// Note, this is an underlying assumption here that, if another native type
/// subtypes this one, it also forwards this member to its underlying native
/// one without renaming.
- bool _isSymbolizedMember(InterfaceType type, String name) {
+ bool _isSymbolizedMember(
+ InterfaceType type, String name, bool alwaysSymbolizeNative) {
// Object members are handled separately.
if (isObjectMember(name)) {
return false;
@@ -5716,7 +5737,7 @@
if (member is FieldElement ||
member is ExecutableElement && member.isExternal) {
var jsName = getAnnotationName(member, isJsName);
- return jsName != null && jsName != name;
+ return alwaysSymbolizeNative || (jsName != null && jsName != name);
} else {
// Non-external members must be symbolized.
return true;
diff --git a/pkg/dev_compiler/lib/src/js_ast/builder.dart b/pkg/dev_compiler/lib/src/js_ast/builder.dart
index 8b5f58a..9239aea 100644
--- a/pkg/dev_compiler/lib/src/js_ast/builder.dart
+++ b/pkg/dev_compiler/lib/src/js_ast/builder.dart
@@ -7,7 +7,6 @@
part of js_ast;
-
/**
* Global template manager. We should aim to have a fixed number of
* templates. This implies that we do not use js('xxx') to parse text that is
@@ -18,7 +17,6 @@
*/
TemplateManager templateManager = new TemplateManager();
-
/**
[js] is a singleton instace of JsBuilder. JsBuilder is a set of conveniences
@@ -192,7 +190,6 @@
*/
const JsBuilder js = const JsBuilder();
-
class JsBuilder {
const JsBuilder();
@@ -267,8 +264,8 @@
Template uncachedExpressionTemplate(String source) {
MiniJsParser parser = new MiniJsParser(source);
Expression expression = parser.expression();
- return new Template(
- source, expression, isExpression: true, forceCopy: false);
+ return new Template(source, expression,
+ isExpression: true, forceCopy: false);
}
/**
@@ -277,8 +274,8 @@
Template uncachedStatementTemplate(String source) {
MiniJsParser parser = new MiniJsParser(source);
Statement statement = parser.statement();
- return new Template(
- source, statement, isExpression: false, forceCopy: false);
+ return new Template(source, statement,
+ isExpression: false, forceCopy: false);
}
/**
@@ -296,10 +293,9 @@
/// Creates a literal js string from [value].
LiteralString escapedString(String value, [String quote = '"']) {
- // Start by escaping the backslashes.
+ // Start by escaping the backslashes.
String escaped = value.replaceAll('\\', '\\\\');
-
// Replace $ in template strings:
// http://www.ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components
var quoteReplace = quote == '`' ? r'`$' : quote;
@@ -312,22 +308,34 @@
var re = new RegExp('[\n\r$quoteReplace\b\f\t\v\u2028\u2029]');
escaped = escaped.replaceAllMapped(re, (m) {
switch (m.group(0)) {
- case "\n" : return r"\n";
- case "\r" : return r"\r";
- case "\u2028": return r"\u2028";
- case "\u2029": return r"\u2029";
+ case "\n":
+ return r"\n";
+ case "\r":
+ return r"\r";
+ case "\u2028":
+ return r"\u2028";
+ case "\u2029":
+ return r"\u2029";
// Quotes and $ are only replaced if they conflict with the containing
// quote, see regex above.
- case '"': return r'\"';
- case "'": return r"\'";
- case "`": return r"\`";
- case r"$": return r"\$";
+ case '"':
+ return r'\"';
+ case "'":
+ return r"\'";
+ case "`":
+ return r"\`";
+ case r"$":
+ return r"\$";
// TODO(jmesserly): these don't need to be escaped for correctness,
// but they are conventionally escaped.
- case "\b": return r"\b";
- case "\t": return r"\t";
- case "\f": return r"\f";
- case "\v": return r"\v";
+ case "\b":
+ return r"\b";
+ case "\t":
+ return r"\t";
+ case "\f":
+ return r"\f";
+ case "\v":
+ return r"\v";
}
});
LiteralString result = new LiteralString('$quote$escaped$quote');
@@ -360,9 +368,8 @@
CommentExpression commentExpression(String text, Expression expression) =>
new CommentExpression(text, expression);
- Call propertyCall(Expression receiver,
- String fieldName,
- List<Expression> arguments) {
+ Call propertyCall(
+ Expression receiver, String fieldName, List<Expression> arguments) {
return new Call(new PropertyAccess.field(receiver, fieldName), arguments);
}
}
@@ -371,14 +378,13 @@
LiteralNumber number(num value) => js.number(value);
ArrayInitializer numArray(Iterable<int> list) => js.numArray(list);
ArrayInitializer stringArray(Iterable<String> list) => js.stringArray(list);
-Call propertyCall(Expression receiver,
- String fieldName,
- List<Expression> arguments) {
+Call propertyCall(
+ Expression receiver, String fieldName, List<Expression> arguments) {
return js.propertyCall(receiver, fieldName, arguments);
}
class MiniJsParserError {
- MiniJsParserError(this.parser, this.message) { }
+ MiniJsParserError(this.parser, this.message) {}
final MiniJsParser parser;
final String message;
@@ -440,7 +446,7 @@
String lastToken = null;
int lastPosition = 0;
int position = 0;
- bool skippedNewline = false; // skipped newline in last getToken?
+ bool skippedNewline = false; // skipped newline in last getToken?
final String src;
final List<InterpolatedNode> interpolatedValues = <InterpolatedNode>[];
@@ -480,51 +486,74 @@
static String categoryToString(int cat) {
switch (cat) {
- case NONE: return "NONE";
- case ALPHA: return "ALPHA";
- case NUMERIC: return "NUMERIC";
- case SYMBOL: return "SYMBOL";
- case ASSIGNMENT: return "ASSIGNMENT";
- case DOT: return "DOT";
- case LPAREN: return "LPAREN";
- case RPAREN: return "RPAREN";
- case LBRACE: return "LBRACE";
- case RBRACE: return "RBRACE";
- case LSQUARE: return "LSQUARE";
- case RSQUARE: return "RSQUARE";
- case STRING: return "STRING";
- case COMMA: return "COMMA";
- case QUERY: return "QUERY";
- case COLON: return "COLON";
- case SEMICOLON: return "SEMICOLON";
- case ARROW: return "ARROW";
- case ELLIPSIS: return "ELLIPSIS";
- case HASH: return "HASH";
- case WHITESPACE: return "WHITESPACE";
- case OTHER: return "OTHER";
+ case NONE:
+ return "NONE";
+ case ALPHA:
+ return "ALPHA";
+ case NUMERIC:
+ return "NUMERIC";
+ case SYMBOL:
+ return "SYMBOL";
+ case ASSIGNMENT:
+ return "ASSIGNMENT";
+ case DOT:
+ return "DOT";
+ case LPAREN:
+ return "LPAREN";
+ case RPAREN:
+ return "RPAREN";
+ case LBRACE:
+ return "LBRACE";
+ case RBRACE:
+ return "RBRACE";
+ case LSQUARE:
+ return "LSQUARE";
+ case RSQUARE:
+ return "RSQUARE";
+ case STRING:
+ return "STRING";
+ case COMMA:
+ return "COMMA";
+ case QUERY:
+ return "QUERY";
+ case COLON:
+ return "COLON";
+ case SEMICOLON:
+ return "SEMICOLON";
+ case ARROW:
+ return "ARROW";
+ case ELLIPSIS:
+ return "ELLIPSIS";
+ case HASH:
+ return "HASH";
+ case WHITESPACE:
+ return "WHITESPACE";
+ case OTHER:
+ return "OTHER";
}
return "Unknown: $cat";
}
static const CATEGORIES = const <int>[
- OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, // 0-7
- OTHER, WHITESPACE, WHITESPACE, OTHER, OTHER, WHITESPACE, // 8-13
- OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, // 14-21
- OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, // 22-29
- OTHER, OTHER, WHITESPACE, // 30-32
- SYMBOL, OTHER, HASH, ALPHA, SYMBOL, SYMBOL, OTHER, // !"#$%&´
- LPAREN, RPAREN, SYMBOL, SYMBOL, COMMA, SYMBOL, DOT, SYMBOL, // ()*+,-./
- NUMERIC, NUMERIC, NUMERIC, NUMERIC, NUMERIC, // 01234
- NUMERIC, NUMERIC, NUMERIC, NUMERIC, NUMERIC, // 56789
- COLON, SEMICOLON, SYMBOL, SYMBOL, SYMBOL, QUERY, OTHER, // :;<=>?@
- ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // ABCDEFGH
- ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // IJKLMNOP
- ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // QRSTUVWX
- ALPHA, ALPHA, LSQUARE, OTHER, RSQUARE, SYMBOL, ALPHA, OTHER, // YZ[\]^_'
- ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // abcdefgh
- ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // ijklmnop
- ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // qrstuvwx
- ALPHA, ALPHA, LBRACE, SYMBOL, RBRACE, SYMBOL]; // yz{|}~
+ OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, // 0-7
+ OTHER, WHITESPACE, WHITESPACE, OTHER, OTHER, WHITESPACE, // 8-13
+ OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, // 14-21
+ OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, OTHER, // 22-29
+ OTHER, OTHER, WHITESPACE, // 30-32
+ SYMBOL, OTHER, HASH, ALPHA, SYMBOL, SYMBOL, OTHER, // !"#$%&´
+ LPAREN, RPAREN, SYMBOL, SYMBOL, COMMA, SYMBOL, DOT, SYMBOL, // ()*+,-./
+ NUMERIC, NUMERIC, NUMERIC, NUMERIC, NUMERIC, // 01234
+ NUMERIC, NUMERIC, NUMERIC, NUMERIC, NUMERIC, // 56789
+ COLON, SEMICOLON, SYMBOL, SYMBOL, SYMBOL, QUERY, OTHER, // :;<=>?@
+ ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // ABCDEFGH
+ ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // IJKLMNOP
+ ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // QRSTUVWX
+ ALPHA, ALPHA, LSQUARE, OTHER, RSQUARE, SYMBOL, ALPHA, OTHER, // YZ[\]^_'
+ ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // abcdefgh
+ ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // ijklmnop
+ ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, // qrstuvwx
+ ALPHA, ALPHA, LBRACE, SYMBOL, RBRACE, SYMBOL
+ ]; // yz{|}~
// This must be a >= the highest precedence number handled by parseBinary.
static var HIGHEST_PARSE_BINARY_PRECEDENCE = 16;
@@ -532,22 +561,54 @@
// From https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Operator_Precedence
static final BINARY_PRECEDENCE = {
- '+=': 17, '-=': 17, '*=': 17, '/=': 17, '%=': 17, '^=': 17, '|=': 17,
- '&=': 17, '<<=': 17, '>>=': 17, '>>>=': 17, '=': 17,
- '||': 14,
- '&&': 13,
- '|': 12,
- '^': 11,
- '&': 10,
- '!=': 9, '==': 9, '!==': 9, '===': 9,
- '<': 8, '<=': 8, '>=': 8, '>': 8, 'in': 8, 'instanceof': 8,
- '<<': 7, '>>': 7, '>>>': 7,
- '+': 6, '-': 6,
- '*': 5, '/': 5, '%': 5
+ '+=': 17,
+ '-=': 17,
+ '*=': 17,
+ '/=': 17,
+ '%=': 17,
+ '^=': 17,
+ '|=': 17,
+ '&=': 17,
+ '<<=': 17,
+ '>>=': 17,
+ '>>>=': 17,
+ '=': 17,
+ '||': 14,
+ '&&': 13,
+ '|': 12,
+ '^': 11,
+ '&': 10,
+ '!=': 9,
+ '==': 9,
+ '!==': 9,
+ '===': 9,
+ '<': 8,
+ '<=': 8,
+ '>=': 8,
+ '>': 8,
+ 'in': 8,
+ 'instanceof': 8,
+ '<<': 7,
+ '>>': 7,
+ '>>>': 7,
+ '+': 6,
+ '-': 6,
+ '*': 5,
+ '/': 5,
+ '%': 5
};
- static final UNARY_OPERATORS =
- ['++', '--', '+', '-', '~', '!', 'typeof', 'void', 'delete', 'await']
- .toSet();
+ static final UNARY_OPERATORS = [
+ '++',
+ '--',
+ '+',
+ '-',
+ '~',
+ '!',
+ 'typeof',
+ 'void',
+ 'delete',
+ 'await'
+ ].toSet();
static final ARROW_TOKEN = '=>';
static final ELLIPSIS_TOKEN = '...';
@@ -572,8 +633,10 @@
if (currentCode == charCodes.$BACKSLASH) {
if (++position >= src.length) error("Unterminated literal");
int escaped = src.codeUnitAt(position);
- if (escaped == charCodes.$x || escaped == charCodes.$X ||
- escaped == charCodes.$u || escaped == charCodes.$U ||
+ if (escaped == charCodes.$x ||
+ escaped == charCodes.$X ||
+ escaped == charCodes.$u ||
+ escaped == charCodes.$U ||
category(escaped) == NUMERIC) {
error('Numeric and hex escapes are not allowed in literals');
}
@@ -589,8 +652,7 @@
if (position >= src.length) break;
int code = src.codeUnitAt(position);
// Skip '//' and '/*' style comments.
- if (code == charCodes.$SLASH &&
- position + 1 < src.length) {
+ if (code == charCodes.$SLASH && position + 1 < src.length) {
if (src.codeUnitAt(position + 1) == charCodes.$SLASH) {
int nextPosition = src.indexOf('\n', position);
if (nextPosition == -1) nextPosition = src.length;
@@ -621,8 +683,8 @@
lastCategory = STRING;
lastToken = getDelimited(position);
} else if (code == charCodes.$0 &&
- position + 2 < src.length &&
- src.codeUnitAt(position + 1) == charCodes.$x) {
+ position + 2 < src.length &&
+ src.codeUnitAt(position + 1) == charCodes.$x) {
// Hex literal.
for (position += 2; position < src.length; position++) {
int cat = category(src.codeUnitAt(position));
@@ -653,12 +715,12 @@
// that !! parses as two tokens and != parses as one, while =/ parses
// as a an equals token followed by a regexp literal start.
newCat = (code == charCodes.$BANG || code == charCodes.$SLASH)
- ? NONE
+ ? NONE
: category(code);
} while (!singleCharCategory(cat) &&
- (cat == newCat ||
- (cat == ALPHA && newCat == NUMERIC) || // eg. level42.
- (cat == NUMERIC && newCat == DOT))); // eg. 3.1415
+ (cat == newCat ||
+ (cat == ALPHA && newCat == NUMERIC) || // eg. level42.
+ (cat == NUMERIC && newCat == DOT))); // eg. 3.1415
lastCategory = cat;
lastToken = src.substring(lastPosition, position);
if (cat == NUMERIC) {
@@ -676,7 +738,8 @@
lastCategory = ARROW;
} else {
int binaryPrecendence = BINARY_PRECEDENCE[lastToken];
- if (binaryPrecendence == null && !UNARY_OPERATORS.contains(lastToken)) {
+ if (binaryPrecendence == null &&
+ !UNARY_OPERATORS.contains(lastToken)) {
error("Unknown operator");
}
if (isAssignment(lastToken)) lastCategory = ASSIGNMENT;
@@ -711,7 +774,7 @@
// Accept semicolon or automatically inserted semicolon before close brace.
// Miniparser forbids other kinds of semicolon insertion.
if (RBRACE == lastCategory) return true;
- if (NONE == lastCategory) return true; // end of input
+ if (NONE == lastCategory) return true; // end of input
if (skippedNewline) {
error('No automatic semicolon insertion at preceding newline');
}
@@ -902,8 +965,7 @@
String last = lastToken;
if (acceptCategory(ALPHA)) {
String functionName = last;
- return new NamedFunction(new Identifier(functionName),
- parseFun());
+ return new NamedFunction(new Identifier(functionName), parseFun());
}
return parseFun();
}
@@ -1011,9 +1073,9 @@
expectCategory(COMMA);
}
}
- receiver = constructor ?
- new New(receiver, arguments) :
- new Call(receiver, arguments);
+ receiver = constructor
+ ? new New(receiver, arguments)
+ : new Call(receiver, arguments);
constructor = false;
} else if (!constructor && acceptCategory(LSQUARE)) {
Expression inBraces = parseExpression();
@@ -1068,7 +1130,8 @@
Expression parseUnaryHigh() {
String operator = lastToken;
- if (lastCategory == SYMBOL && UNARY_OPERATORS.contains(operator) &&
+ if (lastCategory == SYMBOL &&
+ UNARY_OPERATORS.contains(operator) &&
(acceptString("++") || acceptString("--") || acceptString('await'))) {
if (operator == "await") return new Await(parsePostfix());
return new Prefix(operator, parsePostfix());
@@ -1078,8 +1141,10 @@
Expression parseUnaryLow() {
String operator = lastToken;
- if (lastCategory == SYMBOL && UNARY_OPERATORS.contains(operator) &&
- operator != "++" && operator != "--") {
+ if (lastCategory == SYMBOL &&
+ UNARY_OPERATORS.contains(operator) &&
+ operator != "++" &&
+ operator != "--") {
expectCategory(SYMBOL);
if (operator == "await") return new Await(parsePostfix());
return new Prefix(operator, parseUnaryLow());
@@ -1091,7 +1156,7 @@
Expression lhs = parseUnaryLow();
int minPrecedence;
String lastSymbol;
- Expression rhs; // This is null first time around.
+ Expression rhs; // This is null first time around.
while (true) {
String symbol = lastToken;
if (lastCategory != SYMBOL ||
@@ -1132,7 +1197,7 @@
Expression rhs = parseAssignment();
if (assignmentOperator == "=") {
return new Assignment(lhs, rhs);
- } else {
+ } else {
// Handle +=, -=, etc.
String operator =
assignmentOperator.substring(0, assignmentOperator.length - 1);
@@ -1152,8 +1217,8 @@
}
/** Parse a variable declaration list, with `var` or `let` [keyword] */
- VariableDeclarationList parseVariableDeclarationList(
- String keyword, [String firstIdentifier]) {
+ VariableDeclarationList parseVariableDeclarationList(String keyword,
+ [String firstIdentifier]) {
var initialization = <VariableInitialization>[];
do {
@@ -1209,9 +1274,12 @@
var defaultValue;
var declarator = parseVariableBinding();
- if (declarator is Identifier) name = declarator;
- else if (declarator is BindingPattern) structure = declarator;
- else error("Unexpected LHS: $declarator");
+ if (declarator is Identifier)
+ name = declarator;
+ else if (declarator is BindingPattern)
+ structure = declarator;
+ else
+ error("Unexpected LHS: $declarator");
if (acceptString("=")) {
defaultValue = parseExpression();
@@ -1338,7 +1406,6 @@
if (lastToken == 'with') {
error('Not implemented in mini parser');
}
-
}
bool checkForInterpolatedStatement = lastCategory == HASH;
@@ -1451,18 +1518,14 @@
Expression objectExpression = parseExpression();
expectCategory(RPAREN);
Statement body = parseStatement();
- return new ForIn(
- _createVariableDeclarationList(keyword, identifier),
- objectExpression,
- body);
+ return new ForIn(_createVariableDeclarationList(keyword, identifier),
+ objectExpression, body);
} else if (acceptString('of')) {
Expression iterableExpression = parseAssignment();
expectCategory(RPAREN);
Statement body = parseStatement();
- return new ForOf(
- _createVariableDeclarationList(keyword, identifier),
- iterableExpression,
- body);
+ return new ForOf(_createVariableDeclarationList(keyword, identifier),
+ iterableExpression, body);
}
var declarations = parseVariableDeclarationList(keyword, identifier);
expectCategory(SEMICOLON);
@@ -1476,9 +1539,8 @@
static VariableDeclarationList _createVariableDeclarationList(
String keyword, String identifier) {
- return new VariableDeclarationList(keyword, [
- new VariableInitialization(
- new Identifier(identifier), null)]);
+ return new VariableDeclarationList(keyword,
+ [new VariableInitialization(new Identifier(identifier), null)]);
}
Statement parseFunctionDeclaration() {
@@ -1516,8 +1578,8 @@
}
var statements = <Statement>[];
while (lastCategory != RBRACE &&
- lastToken != 'case' &&
- lastToken != 'default') {
+ lastToken != 'case' &&
+ lastToken != 'default') {
statements.add(parseStatement());
}
return expression == null
@@ -1550,7 +1612,7 @@
expectCategory(RPAREN);
expectCategory(LBRACE);
List<SwitchClause> clauses = new List<SwitchClause>();
- while(lastCategory != RBRACE) {
+ while (lastCategory != RBRACE) {
clauses.add(parseSwitchClause());
}
expectCategory(RBRACE);
diff --git a/pkg/dev_compiler/lib/src/js_ast/characters.dart b/pkg/dev_compiler/lib/src/js_ast/characters.dart
index e044078..e3382c3 100644
--- a/pkg/dev_compiler/lib/src/js_ast/characters.dart
+++ b/pkg/dev_compiler/lib/src/js_ast/characters.dart
@@ -4,7 +4,7 @@
const int $EOF = 0;
const int $STX = 2;
-const int $BS = 8;
+const int $BS = 8;
const int $TAB = 9;
const int $LF = 10;
const int $VTAB = 11;
diff --git a/pkg/dev_compiler/lib/src/js_ast/js_types.dart b/pkg/dev_compiler/lib/src/js_ast/js_types.dart
index 526d19a..a3d1971 100644
--- a/pkg/dev_compiler/lib/src/js_ast/js_types.dart
+++ b/pkg/dev_compiler/lib/src/js_ast/js_types.dart
@@ -20,7 +20,6 @@
/// handled by the type printers (for instance, the knowledge that
/// `number|null` is just `number` in TypeScript, and is `number?` in Closure).
abstract class TypeRef extends Expression {
-
int get precedenceLevel => PRIMARY;
TypeRef();
@@ -38,8 +37,7 @@
return new GenericTypeRef(rawType, typeArgs.toList());
}
- factory TypeRef.array([TypeRef elementType]) =>
- new ArrayTypeRef(elementType);
+ factory TypeRef.array([TypeRef elementType]) => new ArrayTypeRef(elementType);
factory TypeRef.object([TypeRef keyType, TypeRef valueType]) {
// TODO(ochafik): Roll out a dedicated ObjectTypeRef?
@@ -50,8 +48,8 @@
}
factory TypeRef.function(
- [TypeRef returnType, Map<Identifier, TypeRef> paramTypes]) =>
- new FunctionTypeRef(returnType, paramTypes);
+ [TypeRef returnType, Map<Identifier, TypeRef> paramTypes]) =>
+ new FunctionTypeRef(returnType, paramTypes);
factory TypeRef.record(Map<Identifier, TypeRef> types) =>
new RecordTypeRef(types);
@@ -79,8 +77,7 @@
TypeRef orUndefined() => or(new TypeRef.undefined());
TypeRef orNull() => or(_null);
- TypeRef toOptional() =>
- new OptionalTypeRef(this);
+ TypeRef toOptional() => new OptionalTypeRef(this);
}
class AnyTypeRef extends TypeRef {
@@ -123,6 +120,7 @@
void visitChildren(NodeVisitor visitor) {
elementType.accept(visitor);
}
+
_clone() => new ArrayTypeRef(elementType);
}
@@ -136,6 +134,7 @@
rawType.accept(visitor);
typeArgs.forEach((p) => p.accept(visitor));
}
+
_clone() => new GenericTypeRef(rawType, typeArgs);
}
@@ -147,12 +146,15 @@
void visitChildren(NodeVisitor visitor) {
types.forEach((p) => p.accept(visitor));
}
+
_clone() => new UnionTypeRef(types);
@override
TypeRef or(TypeRef other) {
if (types.contains(other)) return this;
- return new UnionTypeRef([]..addAll(types)..add(other));
+ return new UnionTypeRef([]
+ ..addAll(types)
+ ..add(other));
}
}
@@ -164,6 +166,7 @@
void visitChildren(NodeVisitor visitor) {
type.accept(visitor);
}
+
_clone() => new OptionalTypeRef(type);
@override
@@ -178,6 +181,7 @@
void visitChildren(NodeVisitor visitor) {
types.values.forEach((p) => p.accept(visitor));
}
+
_clone() => new RecordTypeRef(types);
}
@@ -194,5 +198,6 @@
t.accept(visitor);
});
}
+
_clone() => new FunctionTypeRef(returnType, paramTypes);
}
diff --git a/pkg/dev_compiler/lib/src/js_ast/nodes.dart b/pkg/dev_compiler/lib/src/js_ast/nodes.dart
index 7f4e127..3d339ff 100644
--- a/pkg/dev_compiler/lib/src/js_ast/nodes.dart
+++ b/pkg/dev_compiler/lib/src/js_ast/nodes.dart
@@ -120,8 +120,7 @@
T visitJump(Statement node) => visitStatement(node);
T visitBlock(Block node) => visitStatement(node);
- T visitExpressionStatement(ExpressionStatement node)
- => visitStatement(node);
+ T visitExpressionStatement(ExpressionStatement node) => visitStatement(node);
T visitEmptyStatement(EmptyStatement node) => visitStatement(node);
T visitIf(If node) => visitStatement(node);
T visitFor(For node) => visitLoop(node);
@@ -135,8 +134,7 @@
T visitThrow(Throw node) => visitJump(node);
T visitTry(Try node) => visitStatement(node);
T visitSwitch(Switch node) => visitStatement(node);
- T visitFunctionDeclaration(FunctionDeclaration node)
- => visitStatement(node);
+ T visitFunctionDeclaration(FunctionDeclaration node) => visitStatement(node);
T visitLabeledStatement(LabeledStatement node) => visitStatement(node);
T visitLiteralStatement(LiteralStatement node) => visitStatement(node);
@@ -147,8 +145,8 @@
T visitExpression(Expression node) => visitNode(node);
T visitLiteralExpression(LiteralExpression node) => visitExpression(node);
- T visitVariableDeclarationList(VariableDeclarationList node)
- => visitExpression(node);
+ T visitVariableDeclarationList(VariableDeclarationList node) =>
+ visitExpression(node);
T visitAssignment(Assignment node) => visitExpression(node);
T visitVariableInitialization(VariableInitialization node) {
if (node.value != null) {
@@ -157,6 +155,7 @@
return visitExpression(node);
}
}
+
T visitConditional(Conditional node) => visitExpression(node);
T visitNew(New node) => visitExpression(node);
T visitCall(Call node) => visitExpression(node);
@@ -206,20 +205,20 @@
T visitInterpolatedNode(InterpolatedNode node) => visitNode(node);
- T visitInterpolatedExpression(InterpolatedExpression node)
- => visitInterpolatedNode(node);
- T visitInterpolatedLiteral(InterpolatedLiteral node)
- => visitInterpolatedNode(node);
- T visitInterpolatedParameter(InterpolatedParameter node)
- => visitInterpolatedNode(node);
- T visitInterpolatedSelector(InterpolatedSelector node)
- => visitInterpolatedNode(node);
- T visitInterpolatedStatement(InterpolatedStatement node)
- => visitInterpolatedNode(node);
- T visitInterpolatedMethod(InterpolatedMethod node)
- => visitInterpolatedNode(node);
- T visitInterpolatedIdentifier(InterpolatedIdentifier node)
- => visitInterpolatedNode(node);
+ T visitInterpolatedExpression(InterpolatedExpression node) =>
+ visitInterpolatedNode(node);
+ T visitInterpolatedLiteral(InterpolatedLiteral node) =>
+ visitInterpolatedNode(node);
+ T visitInterpolatedParameter(InterpolatedParameter node) =>
+ visitInterpolatedNode(node);
+ T visitInterpolatedSelector(InterpolatedSelector node) =>
+ visitInterpolatedNode(node);
+ T visitInterpolatedStatement(InterpolatedStatement node) =>
+ visitInterpolatedNode(node);
+ T visitInterpolatedMethod(InterpolatedMethod node) =>
+ visitInterpolatedNode(node);
+ T visitInterpolatedIdentifier(InterpolatedIdentifier node) =>
+ visitInterpolatedNode(node);
// Ignore comments by default.
T visitComment(Comment node) => null;
@@ -229,10 +228,10 @@
T visitDartYield(DartYield node) => visitStatement(node);
T visitBindingPattern(BindingPattern node) => visitNode(node);
- T visitArrayBindingPattern(ArrayBindingPattern node)
- => visitBindingPattern(node);
- T visitObjectBindingPattern(ObjectBindingPattern node)
- => visitBindingPattern(node);
+ T visitArrayBindingPattern(ArrayBindingPattern node) =>
+ visitBindingPattern(node);
+ T visitObjectBindingPattern(ObjectBindingPattern node) =>
+ visitBindingPattern(node);
T visitDestructuredVariable(DestructuredVariable node) => visitNode(node);
T visitSimpleBindingPattern(SimpleBindingPattern node) => visitNode(node);
@@ -254,6 +253,7 @@
Object sourceInformation;
ClosureAnnotation _closureAnnotation;
+
/// Closure annotation of this node.
ClosureAnnotation get closureAnnotation => _closureAnnotation;
@@ -268,9 +268,10 @@
if (this.closureAnnotation == closureAnnotation) return this;
return _clone()
- ..sourceInformation = sourceInformation
- .._closureAnnotation = closureAnnotation;
+ ..sourceInformation = sourceInformation
+ .._closureAnnotation = closureAnnotation;
}
+
// Returns a node equivalent to [this], but with new source position and end
// source position.
Node withSourceInformation(sourceInformation) {
@@ -289,6 +290,7 @@
Statement toStatement() {
throw new UnsupportedError('toStatement');
}
+
Statement toReturn() {
throw new UnsupportedError('toReturn');
}
@@ -323,6 +325,7 @@
void visitChildren(NodeVisitor visitor) {
for (ModuleItem statement in body) statement.accept(visitor);
}
+
Program _clone() => new Program(body);
}
@@ -340,12 +343,15 @@
Block(this.statements, {this.isScope: false}) {
assert(!statements.any((s) => s is! Statement));
}
- Block.empty() : statements = <Statement>[], isScope = false;
+ Block.empty()
+ : statements = <Statement>[],
+ isScope = false;
accept(NodeVisitor visitor) => visitor.visitBlock(this);
void visitChildren(NodeVisitor visitor) {
for (Statement statement in statements) statement.accept(visitor);
}
+
Block _clone() => new Block(statements);
}
@@ -354,7 +360,10 @@
ExpressionStatement(this.expression);
accept(NodeVisitor visitor) => visitor.visitExpressionStatement(this);
- void visitChildren(NodeVisitor visitor) { expression.accept(visitor); }
+ void visitChildren(NodeVisitor visitor) {
+ expression.accept(visitor);
+ }
+
ExpressionStatement _clone() => new ExpressionStatement(expression);
}
@@ -480,7 +489,7 @@
}
class Continue extends Statement {
- final String targetLabel; // Can be null.
+ final String targetLabel; // Can be null.
Continue(this.targetLabel);
@@ -491,7 +500,7 @@
}
class Break extends Statement {
- final String targetLabel; // Can be null.
+ final String targetLabel; // Can be null.
Break(this.targetLabel);
@@ -502,7 +511,7 @@
}
class Return extends Statement {
- final Expression value; // Can be null.
+ final Expression value; // Can be null.
Return([this.value = null]);
@@ -524,17 +533,18 @@
}
final _returnFinder = new _ReturnFinder();
+
class _ReturnFinder extends BaseVisitor {
bool found = false;
visitReturn(Return node) {
found = true;
}
+
visitNode(Node node) {
if (!found) super.visitNode(node);
}
}
-
class Throw extends Statement {
final Expression expression;
@@ -551,8 +561,8 @@
class Try extends Statement {
final Block body;
- final Catch catchPart; // Can be null if [finallyPart] is non-null.
- final Block finallyPart; // Can be null if [catchPart] is non-null.
+ final Catch catchPart; // Can be null if [finallyPart] is non-null.
+ final Block finallyPart; // Can be null if [catchPart] is non-null.
Try(this.body, this.catchPart, this.finallyPart) {
assert(catchPart != null || finallyPart != null);
@@ -671,7 +681,7 @@
LiteralStatement(this.code);
accept(NodeVisitor visitor) => visitor.visitLiteralStatement(this);
- void visitChildren(NodeVisitor visitor) { }
+ void visitChildren(NodeVisitor visitor) {}
LiteralStatement _clone() => new LiteralStatement(code);
}
@@ -715,8 +725,8 @@
Expression toVoidExpression() => this;
Expression toAssignExpression(Expression left) => new Assignment(left, this);
Statement toVariableDeclaration(Identifier name) =>
- new VariableDeclarationList('let',
- [new VariableInitialization(name, this)]).toStatement();
+ new VariableDeclarationList(
+ 'let', [new VariableInitialization(name, this)]).toStatement();
}
class LiteralExpression extends Expression {
@@ -772,11 +782,10 @@
class Assignment extends Expression {
final Expression leftHandSide;
- final String op; // Null, if the assignment is not compound.
- final Expression value; // May be null, for [VariableInitialization]s.
+ final String op; // Null, if the assignment is not compound.
+ final Expression value; // May be null, for [VariableInitialization]s.
- Assignment(leftHandSide, value)
- : this.compound(leftHandSide, null, value);
+ Assignment(leftHandSide, value) : this.compound(leftHandSide, null, value);
Assignment.compound(this.leftHandSide, this.op, this.value);
int get precedenceLevel => ASSIGNMENT;
@@ -790,8 +799,7 @@
if (value != null) value.accept(visitor);
}
- Assignment _clone() =>
- new Assignment.compound(leftHandSide, op, value);
+ Assignment _clone() => new Assignment.compound(leftHandSide, op, value);
}
class VariableInitialization extends Assignment {
@@ -807,8 +815,7 @@
new VariableInitialization(declaration, value);
}
-abstract class VariableBinding extends Expression {
-}
+abstract class VariableBinding extends Expression {}
class DestructuredVariable extends Expression implements Parameter {
/// [LiteralString] or [Identifier].
@@ -816,7 +823,8 @@
final BindingPattern structure;
final Expression defaultValue;
final TypeRef type;
- DestructuredVariable({this.name, this.structure, this.defaultValue, this.type}) {
+ DestructuredVariable(
+ {this.name, this.structure, this.defaultValue, this.type}) {
assert(name != null || structure != null);
}
@@ -828,10 +836,11 @@
}
/// Avoid parenthesis when pretty-printing.
- @override int get precedenceLevel => PRIMARY;
- @override Node _clone() =>
- new DestructuredVariable(
- name: name, structure: structure, defaultValue: defaultValue);
+ @override
+ int get precedenceLevel => PRIMARY;
+ @override
+ Node _clone() => new DestructuredVariable(
+ name: name, structure: structure, defaultValue: defaultValue);
}
abstract class BindingPattern extends Expression implements VariableBinding {
@@ -852,28 +861,32 @@
accept(NodeVisitor visitor) => visitor.visitSimpleBindingPattern(this);
/// Avoid parenthesis when pretty-printing.
- @override int get precedenceLevel => PRIMARY;
- @override Node _clone() => new SimpleBindingPattern(name);
+ @override
+ int get precedenceLevel => PRIMARY;
+ @override
+ Node _clone() => new SimpleBindingPattern(name);
}
class ObjectBindingPattern extends BindingPattern {
- ObjectBindingPattern(List<DestructuredVariable> variables)
- : super(variables);
+ ObjectBindingPattern(List<DestructuredVariable> variables) : super(variables);
accept(NodeVisitor visitor) => visitor.visitObjectBindingPattern(this);
/// Avoid parenthesis when pretty-printing.
- @override int get precedenceLevel => PRIMARY;
- @override Node _clone() => new ObjectBindingPattern(variables);
+ @override
+ int get precedenceLevel => PRIMARY;
+ @override
+ Node _clone() => new ObjectBindingPattern(variables);
}
class ArrayBindingPattern extends BindingPattern {
- ArrayBindingPattern(List<DestructuredVariable> variables)
- : super(variables);
+ ArrayBindingPattern(List<DestructuredVariable> variables) : super(variables);
accept(NodeVisitor visitor) => visitor.visitArrayBindingPattern(this);
/// Avoid parenthesis when pretty-printing.
- @override int get precedenceLevel => PRIMARY;
- @override Node _clone() => new ObjectBindingPattern(variables);
+ @override
+ int get precedenceLevel => PRIMARY;
+ @override
+ Node _clone() => new ObjectBindingPattern(variables);
}
class Conditional extends Expression {
@@ -1087,8 +1100,7 @@
}
static RegExp _identifierRE = new RegExp(r'^[A-Za-z_$][A-Za-z_$0-9]*$');
- Identifier _clone() =>
- new Identifier(name, allowRename: allowRename);
+ Identifier _clone() => new Identifier(name, allowRename: allowRename);
accept(NodeVisitor visitor) => visitor.visitIdentifier(this);
int get precedenceLevel => PRIMARY;
void visitChildren(NodeVisitor visitor) {}
@@ -1106,6 +1118,7 @@
void visitChildren(NodeVisitor visitor) {
parameter.accept(visitor);
}
+
int get precedenceLevel => PRIMARY;
}
@@ -1123,17 +1136,18 @@
}
final _thisFinder = new _ThisFinder();
+
class _ThisFinder extends BaseVisitor {
bool found = false;
visitThis(This node) {
found = true;
}
+
visitNode(Node node) {
if (!found) super.visitNode(node);
}
}
-
// `super` is more restricted in the ES6 spec, but for simplicity we accept
// it anywhere that `this` is accepted.
class Super extends Expression {
@@ -1159,9 +1173,12 @@
name.accept(visitor);
function.accept(visitor);
}
- NamedFunction _clone() => new NamedFunction(name, function, immediatelyInvoked);
- int get precedenceLevel => immediatelyInvoked ? EXPRESSION : PRIMARY_LOW_PRECEDENCE;
+ NamedFunction _clone() =>
+ new NamedFunction(name, function, immediatelyInvoked);
+
+ int get precedenceLevel =>
+ immediatelyInvoked ? EXPRESSION : PRIMARY_LOW_PRECEDENCE;
}
abstract class FunctionExpression extends Expression {
@@ -1171,6 +1188,7 @@
/// Type parameters passed to this generic function, if any. `null` otherwise.
// TODO(ochafik): Support type bounds.
List<Identifier> get typeParams;
+
/// Return type of this function, if any. `null` otherwise.
TypeRef get returnType;
}
@@ -1178,17 +1196,21 @@
class Fun extends FunctionExpression {
final List<Parameter> params;
final Block body;
- @override final List<Identifier> typeParams;
- @override final TypeRef returnType;
+ @override
+ final List<Identifier> typeParams;
+ @override
+ final TypeRef returnType;
/** Whether this is a JS generator (`function*`) that may contain `yield`. */
final bool isGenerator;
final AsyncModifier asyncModifier;
- Fun(this.params, this.body, {this.isGenerator: false,
+ Fun(this.params, this.body,
+ {this.isGenerator: false,
this.asyncModifier: const AsyncModifier.sync(),
- this.typeParams, this.returnType});
+ this.typeParams,
+ this.returnType});
accept(NodeVisitor visitor) => visitor.visitFun(this);
@@ -1206,8 +1228,10 @@
class ArrowFun extends FunctionExpression {
final List<Parameter> params;
final body; // Expression or Block
- @override final List<Identifier> typeParams;
- @override final TypeRef returnType;
+ @override
+ final List<Identifier> typeParams;
+ @override
+ final TypeRef returnType;
ArrowFun(this.params, this.body, {this.typeParams, this.returnType});
@@ -1321,7 +1345,7 @@
}
class LiteralNumber extends Literal {
- final String value; // Must be a valid JavaScript number literal.
+ final String value; // Must be a valid JavaScript number literal.
LiteralNumber(this.value);
@@ -1496,9 +1520,11 @@
final Identifier name;
final Expression heritage; // Can be null.
final List<Method> methods;
+
/// Type parameters of this class, if any. `null` otherwise.
// TODO(ochafik): Support type bounds.
final List<Identifier> typeParams;
+
/// Field declarations of this class (TypeScript / ES6_TYPED).
final List<VariableDeclarationList> fields;
@@ -1523,8 +1549,8 @@
}
}
- ClassExpression _clone() => new ClassExpression(
- name, heritage, methods, typeParams: typeParams, fields: fields);
+ ClassExpression _clone() => new ClassExpression(name, heritage, methods,
+ typeParams: typeParams, fields: fields);
int get precedenceLevel => PRIMARY_LOW_PRECEDENCE;
}
@@ -1570,8 +1596,7 @@
accept(NodeVisitor visitor) => visitor.visitInterpolatedExpression(this);
void visitChildren(NodeVisitor visitor) {}
- InterpolatedExpression _clone() =>
- new InterpolatedExpression(nameOrPosition);
+ InterpolatedExpression _clone() => new InterpolatedExpression(nameOrPosition);
int get precedenceLevel => PRIMARY;
}
@@ -1586,12 +1611,16 @@
InterpolatedLiteral _clone() => new InterpolatedLiteral(nameOrPosition);
}
-class InterpolatedParameter extends Expression with InterpolatedNode
+class InterpolatedParameter extends Expression
+ with InterpolatedNode
implements Identifier {
final nameOrPosition;
TypeRef get type => null;
- String get name { throw "InterpolatedParameter.name must not be invoked"; }
+ String get name {
+ throw "InterpolatedParameter.name must not be invoked";
+ }
+
bool get allowRename => false;
InterpolatedParameter(this.nameOrPosition);
@@ -1626,7 +1655,8 @@
}
// TODO(jmesserly): generalize this to InterpolatedProperty?
-class InterpolatedMethod extends Expression with InterpolatedNode
+class InterpolatedMethod extends Expression
+ with InterpolatedNode
implements Method {
final nameOrPosition;
@@ -1646,15 +1676,15 @@
get _unsupported => throw '$runtimeType does not support this member.';
}
-class InterpolatedIdentifier extends Expression with InterpolatedNode
+class InterpolatedIdentifier extends Expression
+ with InterpolatedNode
implements Identifier {
final nameOrPosition;
TypeRef get type => null;
InterpolatedIdentifier(this.nameOrPosition);
- accept(NodeVisitor visitor) =>
- visitor.visitInterpolatedIdentifier(this);
+ accept(NodeVisitor visitor) => visitor.visitInterpolatedIdentifier(this);
void visitChildren(NodeVisitor visitor) {}
InterpolatedIdentifier _clone() => new InterpolatedIdentifier(nameOrPosition);
@@ -1758,7 +1788,8 @@
/** If this import has `* as name` returns the name, otherwise null. */
Identifier get importStarAs {
- if (namedImports != null && namedImports.length == 1 &&
+ if (namedImports != null &&
+ namedImports.length == 1 &&
namedImports[0].isStar) {
return namedImports[0].asName;
}
@@ -1772,6 +1803,7 @@
}
from.accept(visitor);
}
+
ImportDeclaration _clone() => new ImportDeclaration(
defaultBinding: defaultBinding, namedImports: namedImports, from: from);
}
@@ -1791,11 +1823,10 @@
ExportDeclaration(this.exported, {this.isDefault: false}) {
assert(exported is ClassDeclaration ||
- exported is FunctionDeclaration ||
- isDefault
- ? exported is Expression
- : exported is VariableDeclarationList ||
- exported is ExportClause);
+ exported is FunctionDeclaration ||
+ isDefault
+ ? exported is Expression
+ : exported is VariableDeclarationList || exported is ExportClause);
}
/// Gets the list of names exported by this export declaration, or `null`
@@ -1842,6 +1873,7 @@
for (NameSpecifier name in exports) name.accept(visitor);
if (from != null) from.accept(visitor);
}
+
ExportClause _clone() => new ExportClause(exports, from: from);
}
@@ -1875,5 +1907,6 @@
void visitChildren(NodeVisitor visitor) {
for (ModuleItem item in body) item.accept(visitor);
}
+
Module _clone() => new Module(body);
}
diff --git a/pkg/dev_compiler/lib/src/js_ast/printer.dart b/pkg/dev_compiler/lib/src/js_ast/printer.dart
index 9e764af..72d5f63 100644
--- a/pkg/dev_compiler/lib/src/js_ast/printer.dart
+++ b/pkg/dev_compiler/lib/src/js_ast/printer.dart
@@ -4,7 +4,6 @@
part of js_ast;
-
class JavaScriptPrintingOptions {
final bool shouldCompressOutput;
final bool minifyLocalVariables;
@@ -18,19 +17,20 @@
JavaScriptPrintingOptions(
{this.shouldCompressOutput: false,
- this.minifyLocalVariables: false,
- this.preferSemicolonToNewlineInMinifiedOutput: false,
- this.emitTypes: false,
- this.allowKeywordsInProperties: false,
- this.allowSingleLineIfStatements: false});
+ this.minifyLocalVariables: false,
+ this.preferSemicolonToNewlineInMinifiedOutput: false,
+ this.emitTypes: false,
+ this.allowKeywordsInProperties: false,
+ this.allowSingleLineIfStatements: false});
}
-
/// An environment in which JavaScript printing is done. Provides emitting of
/// text and pre- and post-visit callbacks.
abstract class JavaScriptPrintingContext {
/// Signals an error. This should happen only for serious internal errors.
- void error(String message) { throw message; }
+ void error(String message) {
+ throw message;
+ }
/// Adds [string] to the output.
void emit(String string);
@@ -38,6 +38,7 @@
/// Callback immediately before printing [node]. Whitespace may be printed
/// after this callback before the first non-whitespace character for [node].
void enterNode(Node node) {}
+
/// Callback after printing the last character representing [node].
void exitNode(Node node) {}
}
@@ -72,29 +73,29 @@
int _indentLevel = 0;
// A cache of all indentation strings used so far.
List<String> _indentList = <String>[""];
+
/// Whether the next call to [indent] should just be a no-op.
bool _skipNextIndent = false;
static final identifierCharacterRegExp = new RegExp(r'^[a-zA-Z_0-9$]');
static final expressionContinuationRegExp = new RegExp(r'^[-+([]');
- Printer(JavaScriptPrintingOptions options,
- JavaScriptPrintingContext context,
- {LocalNamer localNamer})
+ Printer(JavaScriptPrintingOptions options, JavaScriptPrintingContext context,
+ {LocalNamer localNamer})
: options = options,
context = context,
shouldCompressOutput = options.shouldCompressOutput,
danglingElseVisitor = new DanglingElseVisitor(context),
localNamer = determineRenamer(localNamer, options);
- static LocalNamer determineRenamer(LocalNamer localNamer,
- JavaScriptPrintingOptions options) {
+ static LocalNamer determineRenamer(
+ LocalNamer localNamer, JavaScriptPrintingOptions options) {
if (localNamer != null) return localNamer;
return (options.shouldCompressOutput && options.minifyLocalVariables)
- ? new MinifyRenamer() : new IdentityNamer();
+ ? new MinifyRenamer()
+ : new IdentityNamer();
}
-
// The current indentation string.
String get indentation {
// Lazily add new indentation strings as required.
@@ -112,15 +113,16 @@
_indentLevel--;
}
-
/// Always emit a newline, even under `enableMinification`.
void forceLine() {
out("\n");
}
+
/// Emits a newline for readability.
void lineOut() {
if (!shouldCompressOutput) forceLine();
}
+
void spaceOut() {
if (!shouldCompressOutput) out(" ");
}
@@ -182,8 +184,15 @@
}
}
- void outIndent(String str) { indent(); out(str); }
- void outIndentLn(String str) { indent(); outLn(str); }
+ void outIndent(String str) {
+ indent();
+ out(str);
+ }
+
+ void outIndentLn(String str) {
+ indent();
+ outLn(str);
+ }
void skipNextIndent() {
_skipNextIndent = true;
@@ -206,7 +215,7 @@
}
visitCommaSeparated(List<Node> nodes, int hasRequiredType,
- {bool newInForInit, bool newAtStatementBegin}) {
+ {bool newInForInit, bool newAtStatementBegin}) {
for (int i = 0; i < nodes.length; i++) {
if (i != 0) {
atStatementBegin = false;
@@ -214,8 +223,7 @@
spaceOut();
}
visitNestedExpression(nodes[i], hasRequiredType,
- newInForInit: newInForInit,
- newAtStatementBegin: newAtStatementBegin);
+ newInForInit: newInForInit, newAtStatementBegin: newAtStatementBegin);
}
}
@@ -282,7 +290,7 @@
indent();
outClosureAnnotation(expressionStatement);
visitNestedExpression(expressionStatement.expression, EXPRESSION,
- newInForInit: false, newAtStatementBegin: true);
+ newInForInit: false, newAtStatementBegin: true);
outSemicolonLn();
}
@@ -309,7 +317,7 @@
spaceOut();
out("(");
visitNestedExpression(node.condition, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out(")");
bool thenWasBlock;
if (options.allowSingleLineIfStatements && !hasElse && then is! Block) {
@@ -347,19 +355,19 @@
out("(");
if (loop.init != null) {
visitNestedExpression(loop.init, EXPRESSION,
- newInForInit: true, newAtStatementBegin: false);
+ newInForInit: true, newAtStatementBegin: false);
}
out(";");
if (loop.condition != null) {
spaceOut();
visitNestedExpression(loop.condition, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
}
out(";");
if (loop.update != null) {
spaceOut();
visitNestedExpression(loop.update, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
}
out(")");
blockBody(loop.body, needsSeparation: false, needsNewline: true);
@@ -370,11 +378,11 @@
spaceOut();
out("(");
visitNestedExpression(loop.leftHandSide, EXPRESSION,
- newInForInit: true, newAtStatementBegin: false);
+ newInForInit: true, newAtStatementBegin: false);
out(" in");
pendingSpace = true;
visitNestedExpression(loop.object, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out(")");
blockBody(loop.body, needsSeparation: false, needsNewline: true);
}
@@ -384,11 +392,11 @@
spaceOut();
out("(");
visitNestedExpression(loop.leftHandSide, EXPRESSION,
- newInForInit: true, newAtStatementBegin: false);
+ newInForInit: true, newAtStatementBegin: false);
out(" of");
pendingSpace = true;
visitNestedExpression(loop.iterable, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out(")");
blockBody(loop.body, needsSeparation: false, needsNewline: true);
}
@@ -398,7 +406,7 @@
spaceOut();
out("(");
visitNestedExpression(loop.condition, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out(")");
blockBody(loop.body, needsSeparation: false, needsNewline: true);
}
@@ -414,7 +422,7 @@
spaceOut();
out("(");
visitNestedExpression(loop.condition, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out(")");
outSemicolonLn();
}
@@ -444,7 +452,7 @@
outIndent("return");
pendingSpace = true;
visitNestedExpression(node.value, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
}
outSemicolonLn();
}
@@ -457,16 +465,15 @@
}
pendingSpace = true;
visitNestedExpression(node.expression, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
outSemicolonLn();
}
-
visitThrow(Throw node) {
outIndent("throw");
pendingSpace = true;
visitNestedExpression(node.expression, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
outSemicolonLn();
}
@@ -491,7 +498,7 @@
spaceOut();
out("(");
visitNestedExpression(node.declaration, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out(")");
blockBody(node.body, needsSeparation: false, needsNewline: true);
}
@@ -501,7 +508,7 @@
spaceOut();
out("(");
visitNestedExpression(node.key, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out(")");
spaceOut();
outLn("{");
@@ -515,7 +522,7 @@
outIndent("case");
pendingSpace = true;
visitNestedExpression(node.expression, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
outLn(":");
if (!node.body.statements.isEmpty) {
blockOut(node.body, true, true);
@@ -541,14 +548,14 @@
out(" ");
// Name must be a [Decl]. Therefore only test for primary expressions.
visitNestedExpression(name, PRIMARY,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
}
localNamer.enterScope(fun);
outTypeParams(fun.typeParams);
out("(");
if (fun.params != null) {
visitCommaSeparated(fun.params, PRIMARY,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
}
out(")");
outTypeAnnotation(fun.returnType);
@@ -577,19 +584,20 @@
}
visitNestedExpression(Expression node, int requiredPrecedence,
- {bool newInForInit, bool newAtStatementBegin}) {
+ {bool newInForInit, bool newAtStatementBegin}) {
int nodePrecedence = node.precedenceLevel;
bool needsParentheses =
// a - (b + c).
(requiredPrecedence != EXPRESSION &&
- nodePrecedence < requiredPrecedence) ||
- // for (a = (x in o); ... ; ... ) { ... }
- (newInForInit && node is Binary && node.op == "in") ||
- // (function() { ... })().
- // ({a: 2, b: 3}.toString()).
- (newAtStatementBegin && (node is NamedFunction ||
- node is FunctionExpression ||
- node is ObjectInitializer));
+ nodePrecedence < requiredPrecedence) ||
+ // for (a = (x in o); ... ; ... ) { ... }
+ (newInForInit && node is Binary && node.op == "in") ||
+ // (function() { ... })().
+ // ({a: 2, b: 3}.toString()).
+ (newAtStatementBegin &&
+ (node is NamedFunction ||
+ node is FunctionExpression ||
+ node is ObjectInitializer));
if (needsParentheses) {
inForInit = false;
atStatementBegin = false;
@@ -612,19 +620,20 @@
out(" ");
}
visitCommaSeparated(list.declarations, ASSIGNMENT,
- newInForInit: inForInit, newAtStatementBegin: false);
+ newInForInit: inForInit, newAtStatementBegin: false);
}
visitArrayBindingPattern(ArrayBindingPattern node) {
out("[");
visitCommaSeparated(node.variables, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out("]");
}
+
visitObjectBindingPattern(ObjectBindingPattern node) {
out("{");
visitCommaSeparated(node.variables, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out("}");
}
@@ -653,7 +662,7 @@
out("=");
spaceOut();
visitNestedExpression(node.defaultValue, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
}
}
@@ -663,8 +672,7 @@
visitAssignment(Assignment assignment) {
visitNestedExpression(assignment.leftHandSide, LEFT_HAND_SIDE,
- newInForInit: inForInit,
- newAtStatementBegin: atStatementBegin);
+ newInForInit: inForInit, newAtStatementBegin: atStatementBegin);
if (assignment.value != null) {
spaceOut();
String op = assignment.op;
@@ -672,8 +680,7 @@
out("=");
spaceOut();
visitNestedExpression(assignment.value, ASSIGNMENT,
- newInForInit: inForInit,
- newAtStatementBegin: false);
+ newInForInit: inForInit, newAtStatementBegin: false);
}
}
@@ -684,40 +691,38 @@
visitConditional(Conditional cond) {
visitNestedExpression(cond.condition, LOGICAL_OR,
- newInForInit: inForInit,
- newAtStatementBegin: atStatementBegin);
+ newInForInit: inForInit, newAtStatementBegin: atStatementBegin);
spaceOut();
out("?");
spaceOut();
// The then part is allowed to have an 'in'.
visitNestedExpression(cond.then, ASSIGNMENT,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
spaceOut();
out(":");
spaceOut();
visitNestedExpression(cond.otherwise, ASSIGNMENT,
- newInForInit: inForInit, newAtStatementBegin: false);
+ newInForInit: inForInit, newAtStatementBegin: false);
}
visitNew(New node) {
out("new ");
inNewTarget = true;
visitNestedExpression(node.target, ACCESS,
- newInForInit: inForInit, newAtStatementBegin: false);
+ newInForInit: inForInit, newAtStatementBegin: false);
inNewTarget = false;
out("(");
visitCommaSeparated(node.arguments, SPREAD,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out(")");
}
visitCall(Call call) {
visitNestedExpression(call.target, LEFT_HAND_SIDE,
- newInForInit: inForInit,
- newAtStatementBegin: atStatementBegin);
+ newInForInit: inForInit, newAtStatementBegin: atStatementBegin);
out("(");
visitCommaSeparated(call.arguments, SPREAD,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out(")");
}
@@ -727,7 +732,7 @@
String op = binary.op;
int leftPrecedenceRequirement;
int rightPrecedenceRequirement;
- bool leftSpace = true; // left<HERE>op right
+ bool leftSpace = true; // left<HERE>op right
switch (op) {
case ',':
// x, (y, z) <=> (x, y), z.
@@ -804,8 +809,7 @@
}
visitNestedExpression(left, leftPrecedenceRequirement,
- newInForInit: inForInit,
- newAtStatementBegin: atStatementBegin);
+ newInForInit: inForInit, newAtStatementBegin: atStatementBegin);
if (op == "in" || op == "instanceof") {
// There are cases where the space is not required but without further
@@ -819,8 +823,7 @@
spaceOut();
}
visitNestedExpression(right, rightPrecedenceRequirement,
- newInForInit: inForInit,
- newAtStatementBegin: false);
+ newInForInit: inForInit, newAtStatementBegin: false);
}
visitPrefix(Prefix unary) {
@@ -848,7 +851,7 @@
out(op);
}
visitNestedExpression(unary.argument, unary.precedenceLevel,
- newInForInit: inForInit, newAtStatementBegin: false);
+ newInForInit: inForInit, newAtStatementBegin: false);
}
visitSpread(Spread unary) => visitPrefix(unary);
@@ -863,8 +866,7 @@
visitPostfix(Postfix postfix) {
visitNestedExpression(postfix.argument, LEFT_HAND_SIDE,
- newInForInit: inForInit,
- newAtStatementBegin: atStatementBegin);
+ newInForInit: inForInit, newAtStatementBegin: atStatementBegin);
out(postfix.op);
}
@@ -897,10 +899,10 @@
// TODO(floitsch): allow more characters.
int charCode = field.codeUnitAt(i);
if (!(charCodes.$a <= charCode && charCode <= charCodes.$z ||
- charCodes.$A <= charCode && charCode <= charCodes.$Z ||
- charCode == charCodes.$$ ||
- charCode == charCodes.$_ ||
- i != 1 && isDigit(charCode))) {
+ charCodes.$A <= charCode && charCode <= charCodes.$Z ||
+ charCode == charCodes.$$ ||
+ charCode == charCodes.$_ ||
+ i != 1 && isDigit(charCode))) {
return false;
}
}
@@ -929,8 +931,7 @@
int precedence = inNewTarget ? ACCESS : CALL;
visitNestedExpression(access.receiver, precedence,
- newInForInit: inForInit,
- newAtStatementBegin: atStatementBegin);
+ newInForInit: inForInit, newAtStatementBegin: atStatementBegin);
propertyNameOut(access.selector, inAccess: true);
}
@@ -1015,7 +1016,7 @@
indent();
}
visitNestedExpression(element, ASSIGNMENT,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
// We can skip the trailing "," for the last element (since it's not
// an array hole).
if (i != elements.length - 1) out(",");
@@ -1062,7 +1063,7 @@
out(":");
spaceOut();
visitNestedExpression(node.value, ASSIGNMENT,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
}
visitRegExpLiteral(RegExpLiteral node) {
@@ -1184,9 +1185,8 @@
}
}
- void propertyNameOut(Expression node, {bool inMethod: false,
- bool inAccess: false}) {
-
+ void propertyNameOut(Expression node,
+ {bool inMethod: false, bool inAccess: false}) {
if (node is LiteralNumber) {
LiteralNumber nameNumber = node;
if (inAccess) out('[');
@@ -1206,7 +1206,7 @@
// ComputedPropertyName
out("[");
visitNestedExpression(node, EXPRESSION,
- newInForInit: false, newAtStatementBegin: false);
+ newInForInit: false, newAtStatementBegin: false);
out("]");
}
}
@@ -1395,9 +1395,10 @@
final Set<String> vars;
final Set<String> params;
- VarCollector() : nested = false,
- vars = new Set<String>(),
- params = new Set<String>();
+ VarCollector()
+ : nested = false,
+ vars = new Set<String>(),
+ params = new Set<String>();
void forEachVar(void fn(String v)) => vars.forEach(fn);
void forEachParam(void fn(String p)) => params.forEach(fn);
@@ -1460,7 +1461,6 @@
}
}
-
/**
* Returns true, if the given node must be wrapped into braces when used
* as then-statement in an [If] that has an else branch.
@@ -1484,6 +1484,7 @@
if (!node.hasElse) return true;
return node.otherwise.accept(this);
}
+
bool visitFor(For node) => node.body.accept(this);
bool visitForIn(ForIn node) => node.body.accept(this);
bool visitForOf(ForOf node) => node.body.accept(this);
@@ -1500,34 +1501,31 @@
return node.catchPart.accept(this);
}
}
+
bool visitCatch(Catch node) => node.body.accept(this);
bool visitSwitch(Switch node) => false;
bool visitCase(Case node) => false;
bool visitDefault(Default node) => false;
bool visitFunctionDeclaration(FunctionDeclaration node) => false;
- bool visitLabeledStatement(LabeledStatement node)
- => node.body.accept(this);
+ bool visitLabeledStatement(LabeledStatement node) => node.body.accept(this);
bool visitLiteralStatement(LiteralStatement node) => true;
bool visitClassDeclaration(ClassDeclaration node) => false;
bool visitExpression(Expression node) => false;
}
-
abstract class LocalNamer {
String getName(Identifier node);
void enterScope(FunctionExpression node);
void leaveScope();
}
-
class IdentityNamer implements LocalNamer {
String getName(Identifier node) => node.name;
void enterScope(FunctionExpression node) {}
void leaveScope() {}
}
-
class MinifyRenamer implements LocalNamer {
final List<Map<String, String>> maps = [];
final List<int> parameterNumberStack = [];
@@ -1567,9 +1565,9 @@
static const DIGITS = 10;
static int nthLetter(int n) {
- return (n < LOWER_CASE_LETTERS) ?
- charCodes.$a + n :
- charCodes.$A + n - LOWER_CASE_LETTERS;
+ return (n < LOWER_CASE_LETTERS)
+ ? charCodes.$a + n
+ : charCodes.$A + n - LOWER_CASE_LETTERS;
}
// Parameters go from a to z and variables go from z to a. This makes each
@@ -1661,8 +1659,10 @@
}
_scanVariableBinding(VariableBinding d) {
- if (d is Identifier) declare(d);
- else d.accept(this);
+ if (d is Identifier)
+ declare(d);
+ else
+ d.accept(this);
}
visitRestParameter(RestParameter node) {
diff --git a/pkg/dev_compiler/lib/src/js_ast/template.dart b/pkg/dev_compiler/lib/src/js_ast/template.dart
index 929f621..efac3f4 100644
--- a/pkg/dev_compiler/lib/src/js_ast/template.dart
+++ b/pkg/dev_compiler/lib/src/js_ast/template.dart
@@ -200,6 +200,7 @@
return error('Interpolated value #$nameOrPosition is not '
'an Expression or List of Expressions: $value');
}
+
if (value is Iterable) return value.map(toExpression);
return toExpression(value);
};
@@ -227,6 +228,7 @@
return error('Interpolated value #$nameOrPosition is not an Identifier'
' or List of Identifiers: $value');
}
+
if (value is Iterable) return value.map(toIdentifier);
return toIdentifier(value);
};
@@ -263,6 +265,7 @@
return error('Interpolated value #$nameOrPosition is not a Method '
'or List of Methods: $value');
}
+
if (value is Iterable) return value.map(toMethod);
return toMethod(value);
};
@@ -291,6 +294,7 @@
return error('Interpolated value #$nameOrPosition is not '
'a Statement or List of Statements: $value');
}
+
if (value is Iterable) return value.map(toStatement);
return toStatement(value);
};
@@ -310,6 +314,7 @@
statements.add(node.toStatement());
}
}
+
for (Instantiator instantiator in instantiators) {
add(instantiator(arguments));
}
@@ -331,6 +336,7 @@
statements.add(node.toStatement());
}
}
+
for (Instantiator instantiator in instantiators) {
add(instantiator(arguments));
}
@@ -369,6 +375,7 @@
'is not an Expression: $value');
};
}
+
var makeCondition = compileCondition(node.condition);
Instantiator makeThen = visit(node.then);
Instantiator makeOtherwise = visit(node.otherwise);
@@ -567,13 +574,11 @@
makeThen(arguments), makeOtherwise(arguments));
}
- Instantiator visitNew(New node) =>
- handleCallOrNew(node, (target, arguments) =>
- new New(target, arguments as List<Expression>));
+ Instantiator visitNew(New node) => handleCallOrNew(node,
+ (target, arguments) => new New(target, arguments as List<Expression>));
- Instantiator visitCall(Call node) =>
- handleCallOrNew(node, (target, arguments) =>
- new Call(target, arguments as List<Expression>));
+ Instantiator visitCall(Call node) => handleCallOrNew(node,
+ (target, arguments) => new Call(target, arguments as List<Expression>));
Instantiator handleCallOrNew(Call node, finish(target, arguments)) {
Instantiator makeTarget = visit(node.target);
diff --git a/pkg/dev_compiler/lib/src/js_ast/type_printer.dart b/pkg/dev_compiler/lib/src/js_ast/type_printer.dart
index db720ba..35e7be6 100644
--- a/pkg/dev_compiler/lib/src/js_ast/type_printer.dart
+++ b/pkg/dev_compiler/lib/src/js_ast/type_printer.dart
@@ -38,7 +38,6 @@
}
abstract class TypeScriptTypePrinter extends _TypePrinterBase {
-
void _outTypeAnnotation(TypeRef type) {
if (type is OptionalTypeRef) {
out("?: ");
@@ -158,7 +157,8 @@
}
}
- @override toString() => _buffer.toString();
+ @override
+ toString() => _buffer.toString();
@override
visitArrayTypeRef(ArrayTypeRef node) {
diff --git a/pkg/dev_compiler/test/closure/closure_annotation_test.dart b/pkg/dev_compiler/test/closure/closure_annotation_test.dart
index cf4ae6a..7c3ae32 100644
--- a/pkg/dev_compiler/test/closure/closure_annotation_test.dart
+++ b/pkg/dev_compiler/test/closure/closure_annotation_test.dart
@@ -16,8 +16,8 @@
var numberType = new TypeRef.number();
var stringType = new TypeRef.string();
var booleanType = new TypeRef.boolean();
- var fooType = new TypeRef.qualified(
- [new Identifier("foo"), new Identifier("Foo")]);
+ var fooType =
+ new TypeRef.qualified([new Identifier("foo"), new Identifier("Foo")]);
var barType = new TypeRef.named("Bar");
var bazType = new TypeRef.named("Baz");
var bamType = new TypeRef.named("Bam");
@@ -39,9 +39,10 @@
});
test('gives multiple line comment when it it does not fit on one line', () {
- expect(new ClosureAnnotation(
- returnType: stringType, paramTypes: {'foo': numberType})
- .toString(),
+ expect(
+ new ClosureAnnotation(
+ returnType: stringType,
+ paramTypes: {'foo': numberType}).toString(),
"/**\n"
" * @param {number} foo\n"
" * @return {string}\n"
@@ -49,9 +50,10 @@
});
test('inserts indentation', () {
- expect(new ClosureAnnotation(
- returnType: stringType, paramTypes: {'foo': numberType})
- .toString(" "),
+ expect(
+ new ClosureAnnotation(
+ returnType: stringType,
+ paramTypes: {'foo': numberType}).toString(" "),
"/**\n" // No indent on first line.
" * @param {number} foo\n"
" * @return {string}\n"
@@ -75,18 +77,21 @@
expect(
new ClosureAnnotation(type: stringType, isProtected: true).toString(),
"/** @protected {string} */");
- expect(new ClosureAnnotation(
- type: stringType,
- isPrivate: true,
- isConst: true,
- isFinal: true,
- isProtected: true,
- isTypedef: true).toString(),
+ expect(
+ new ClosureAnnotation(
+ type: stringType,
+ isPrivate: true,
+ isConst: true,
+ isFinal: true,
+ isProtected: true,
+ isTypedef: true)
+ .toString(),
"/** @private @protected @final @const @typedef {string} */");
});
test('supports a full constructor annotation', () {
- expect(new ClosureAnnotation(
+ expect(
+ new ClosureAnnotation(
returnType: booleanType,
throwsType: bamType,
thisType: fooType,
diff --git a/pkg/dev_compiler/test/closure/closure_type_test.dart b/pkg/dev_compiler/test/closure/closure_type_test.dart
index 93a9e3d..b21d9d2 100644
--- a/pkg/dev_compiler/test/closure/closure_type_test.dart
+++ b/pkg/dev_compiler/test/closure/closure_type_test.dart
@@ -41,10 +41,12 @@
});
test('supports map types', () {
- expectToString(new ClosureType.map(
+ expectToString(
+ new ClosureType.map(
new ClosureType.type("Foo"), new ClosureType.type("Bar")),
"Object<Foo, Bar>",
- nullable: "Object<Foo, Bar>", nonNullable: "!Object<Foo, Bar>");
+ nullable: "Object<Foo, Bar>",
+ nonNullable: "!Object<Foo, Bar>");
expectToString(new ClosureType.map(), "Object<*, *>",
nullable: "Object<*, *>", nonNullable: "!Object<*, *>");
});
@@ -56,10 +58,11 @@
"function(number)");
expectToString(new ClosureType.function(null, new ClosureType.number()),
"function(...*):number");
- expectToString(new ClosureType.function([
- new ClosureType.number(),
- new ClosureType.string()
- ], new ClosureType.boolean()), "function(number, string):boolean");
+ expectToString(
+ new ClosureType.function(
+ [new ClosureType.number(), new ClosureType.string()],
+ new ClosureType.boolean()),
+ "function(number, string):boolean");
});
test('supports union types', () {
@@ -70,7 +73,8 @@
});
test('supports record types', () {
- expectToString(new ClosureType.record(
+ expectToString(
+ new ClosureType.record(
{'x': new ClosureType.number(), 'y': new ClosureType.boolean()}),
"{x: number, y: boolean}");
});
diff --git a/pkg/dev_compiler/test/codegen/async_helper.dart b/pkg/dev_compiler/test/codegen/async_helper.dart
index be5014f..bfde1a4 100644
--- a/pkg/dev_compiler/test/codegen/async_helper.dart
+++ b/pkg/dev_compiler/test/codegen/async_helper.dart
@@ -50,7 +50,7 @@
void asyncStart() {
if (_initialized && _asyncLevel == 0) {
throw _buildException('asyncStart() was called even though we are done '
- 'with testing.');
+ 'with testing.');
}
if (!_initialized) {
if (_onAsyncEnd == null) {
@@ -60,7 +60,6 @@
print('unittest-suite-wait-for-done');
_initialized = true;
-
}
_asyncLevel++;
}
@@ -72,7 +71,7 @@
throw _buildException('asyncEnd() was called before asyncStart().');
} else {
throw _buildException('asyncEnd() was called more often than '
- 'asyncStart().');
+ 'asyncStart().');
}
}
_asyncLevel--;
diff --git a/pkg/dev_compiler/test/codegen/closure.dart b/pkg/dev_compiler/test/codegen/closure.dart
index ad2e3ab..9e70097 100644
--- a/pkg/dev_compiler/test/codegen/closure.dart
+++ b/pkg/dev_compiler/test/codegen/closure.dart
@@ -1,5 +1,6 @@
// compile options: --closure-experimental --destructure-named-params --modules=es6
library test;
+
import 'dart:js';
List/*<T>*/ generic_function/*<T>*/(List/*<T>*/ items, dynamic/*=T*/ seed) {
@@ -23,10 +24,8 @@
T pass(T t) => t;
- String typed_method(
- Foo foo, List list,
- int i, num n, double d, bool b, String s,
- JsArray a, JsObject o, JsFunction f) {
+ String typed_method(Foo foo, List list, int i, num n, double d, bool b,
+ String s, JsArray a, JsObject o, JsFunction f) {
return '';
}
@@ -40,7 +39,8 @@
cb(i: i);
}
- run(List a, String b, List c(String d), List<int> e(f(g)), {Map<Map, Map> h}) {}
+ run(List a, String b, List c(String d), List<int> e(f(g)),
+ {Map<Map, Map> h}) {}
String get prop => null;
set prop(String value) {}
@@ -61,7 +61,9 @@
void main(args) {}
-var closure = () { return; };
+var closure = () {
+ return;
+};
const String some_top_level_constant = "abc";
final String some_top_level_final = "abc";
diff --git a/pkg/dev_compiler/test/codegen/destructuring.dart b/pkg/dev_compiler/test/codegen/destructuring.dart
index 3c6bd62..60cbe62 100644
--- a/pkg/dev_compiler/test/codegen/destructuring.dart
+++ b/pkg/dev_compiler/test/codegen/destructuring.dart
@@ -5,22 +5,25 @@
f(int a, b, [c = 1]) {
f(a, b, c);
}
+
external f_ext(int a, b, [c = 1]);
f_nat(int a, b, [c = 1]) native "f_nat";
f_sync(int a, b, [c = 1]) sync* {}
f_async(int a, b, [c = 1]) async* {}
-g(int a, b, {c : 1}) {
+g(int a, b, {c: 1}) {
f(a, b, c);
}
-external g_ext(int a, b, {c : 1});
-g_nat(int a, b, {c : 1}) native "g_nat";
-g_sync(int a, b, {c : 1}) sync* {}
-g_async(int a, b, {c : 1}) async* {}
+
+external g_ext(int a, b, {c: 1});
+g_nat(int a, b, {c: 1}) native "g_nat";
+g_sync(int a, b, {c: 1}) sync* {}
+g_async(int a, b, {c: 1}) async* {}
r(int a, @rest others) {
r(a, spread(others));
}
+
external r_ext(int a, @rest others);
r_nat(int a, @rest others) native "r_nat";
r_sync(int a, @rest others) sync* {}
@@ -29,13 +32,16 @@
invalid_names1(int let, function, arguments) {
f(let, function, arguments);
}
+
invalid_names2([int let, function = 1, arguments]) {
f(let, function, arguments);
}
-invalid_names3({int let, function, arguments : 2}) {
+
+invalid_names3({int let, function, arguments: 2}) {
f(let, function, arguments);
}
-names_clashing_with_object_props({int constructor, valueOf, hasOwnProperty : 2}) {
+names_clashing_with_object_props(
+ {int constructor, valueOf, hasOwnProperty: 2}) {
f(constructor, valueOf, hasOwnProperty);
}
diff --git a/pkg/dev_compiler/test/codegen/es6_modules.dart b/pkg/dev_compiler/test/codegen/es6_modules.dart
index aeae6a1..10472b7 100644
--- a/pkg/dev_compiler/test/codegen/es6_modules.dart
+++ b/pkg/dev_compiler/test/codegen/es6_modules.dart
@@ -4,8 +4,11 @@
typedef void Callback({int i});
class A {}
+
class _A {}
+
class B<T> {}
+
class _B<T> {}
f() {}
diff --git a/pkg/dev_compiler/test/codegen/js_test.dart b/pkg/dev_compiler/test/codegen/js_test.dart
index 2c862d0..71e0f5d5 100644
--- a/pkg/dev_compiler/test/codegen/js_test.dart
+++ b/pkg/dev_compiler/test/codegen/js_test.dart
@@ -37,7 +37,6 @@
main() {
group('identity', () {
-
test('context instances should be identical', () {
var c1 = context;
var c2 = context;
@@ -82,11 +81,9 @@
expect(obj['role'], 'object');
});
});
-
});
group('context', () {
-
test('read global field', () {
expect(context['x'], 42);
expect(context['y'], null);
@@ -101,11 +98,9 @@
context['y'] = 42;
expect(context['y'], 42);
});
-
});
group('new JsObject()', () {
-
test('new Foo()', () {
var foo = new JsObject(context['Foo'], [42]);
expect(foo['a'], 42);
@@ -147,8 +142,8 @@
});
test('new Date("December 17, 1995 03:24:00 GMT")', () {
- final a = new JsObject(context['Date'],
- ["December 17, 1995 03:24:00 GMT"]);
+ final a =
+ new JsObject(context['Date'], ["December 17, 1995 03:24:00 GMT"]);
expect(a.callMethod('getTime'), 819170640000);
});
@@ -161,8 +156,7 @@
test('new Date(1995,11,17,3,24,0)', () {
// Note: JS Date counts months from 0 while Dart counts from 1.
- final a = new JsObject(context['Date'],
- [1995, 11, 17, 3, 24, 0]);
+ final a = new JsObject(context['Date'], [1995, 11, 17, 3, 24, 0]);
final b = new DateTime(1995, 12, 17, 3, 24, 0);
expect(a.callMethod('getTime'), b.millisecondsSinceEpoch);
});
@@ -201,7 +195,8 @@
});
test('>10 parameters', () {
- final o = new JsObject(context['Baz'], [1,2,3,4,5,6,7,8,9,10,11]);
+ final o =
+ new JsObject(context['Baz'], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]);
for (var i = 1; i <= 11; i++) {
expect(o["f$i"], i);
}
@@ -210,7 +205,6 @@
});
group('JsFunction and callMethod', () {
-
test('new JsObject can return a JsFunction', () {
var f = new JsObject(context['Function']);
expect(f, (a) => a is JsFunction);
@@ -231,19 +225,17 @@
});
test('callMethod with many arguments', () {
- expect(context.callMethod('varArgs', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),
- 55);
+ expect(
+ context.callMethod('varArgs', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), 55);
});
test('access a property of a function', () {
expect(context.callMethod('Bar'), "ret_value");
expect(context['Bar']['foo'], "property_value");
});
-
});
group('JsArray', () {
-
test('new JsArray()', () {
var array = new JsArray();
var arrayType = context['Array'];
@@ -263,8 +255,9 @@
test('get Array from JS', () {
context['a'] = new JsObject(context['Array'], [1, 2, 3]);
- expect(context.callMethod('isPropertyInstanceOf',
- ['a', context['Array']]), true);
+ expect(
+ context.callMethod('isPropertyInstanceOf', ['a', context['Array']]),
+ true);
var a = context['a'];
expect(a, (a) => a is JsArray);
expect(a, [1, 2, 3]);
@@ -273,8 +266,9 @@
test('pass Array to JS', () {
context['a'] = [1, 2, 3];
- expect(context.callMethod('isPropertyInstanceOf',
- ['a', context['Array']]), false);
+ expect(
+ context.callMethod('isPropertyInstanceOf', ['a', context['Array']]),
+ false);
var a = context['a'];
expect(a, (a) => a is List);
expect(a, isNot((a) => a is JsArray));
@@ -290,7 +284,7 @@
expect(() => array[2], throwsA(isRangeError));
});
- test('[]=', () {
+ test('[]=', () {
var array = new JsArray.from([1, 2]);
array[0] = 'd';
array[1] = 'e';
@@ -309,8 +303,8 @@
array.length = 3;
expect(array, [1, 2, null]);
});
-
- test('add', () {
+
+ test('add', () {
var array = new JsArray();
array.add('a');
expect(array, ['a']);
@@ -383,11 +377,9 @@
array.sort((a, b) => -(a.compareTo(b)));
expect(array, ['c', 'b', 'a']);
});
-
});
group('JsObject.fromBrowserObject()', () {
-
test('Nodes are proxied', () {
var node = new JsObject.fromBrowserObject(document.createElement('div'));
context.callMethod('addTestProperty', [node]);
@@ -402,7 +394,6 @@
throwsA((a) => a is ArgumentError));
}
});
-
});
group('Dart functions', () {
@@ -416,8 +407,7 @@
});
test('callback as parameter', () {
- expect(context.callMethod('getTypeOf', [context['razzle']]),
- "function");
+ expect(context.callMethod('getTypeOf', [context['razzle']]), "function");
});
test('invoke Dart callback from JS with this', () {
@@ -430,15 +420,16 @@
});
test('invoke Dart callback from JS with 11 parameters', () {
- context['callbackWith11params'] = (p1, p2, p3, p4, p5, p6, p7,
- p8, p9, p10, p11) => '$p1$p2$p3$p4$p5$p6$p7$p8$p9$p10$p11';
- expect(context.callMethod('invokeCallbackWith11params'),
- '1234567891011');
+ context['callbackWith11params'] =
+ (p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11) =>
+ '$p1$p2$p3$p4$p5$p6$p7$p8$p9$p10$p11';
+ expect(context.callMethod('invokeCallbackWith11params'), '1234567891011');
});
test('return a JS proxy to JavaScript', () {
- var result = context.callMethod('testJsMap',
- [() => new JsObject.jsify({'value': 42})]);
+ var result = context.callMethod('testJsMap', [
+ () => new JsObject.jsify({'value': 42})
+ ]);
expect(result, 42);
});
@@ -448,17 +439,15 @@
expect(result, 'called');
context.deleteProperty('callable');
});
-
});
group('JsObject.jsify()', () {
-
test('convert a List', () {
final list = [1, 2, 3, 4, 5, 6, 7, 8];
var array = new JsObject.jsify(list);
expect(context.callMethod('isArray', [array]), true);
expect(array['length'], list.length);
- for (var i = 0; i < list.length ; i++) {
+ for (var i = 0; i < list.length; i++) {
expect(array[i], list[i]);
}
});
@@ -468,7 +457,7 @@
var array = new JsObject.jsify(set);
expect(context.callMethod('isArray', [array]), true);
expect(array['length'], set.length);
- for (var i = 0; i < array['length'] ; i++) {
+ for (var i = 0; i < array['length']; i++) {
expect(set.contains(array[i]), true);
}
});
@@ -484,7 +473,10 @@
test('deep convert a complex object', () {
final object = {
- 'a': [1, [2, 3]],
+ 'a': [
+ 1,
+ [2, 3]
+ ],
'b': {
'c': 3,
'd': new JsObject(context['Foo'], [42])
@@ -502,13 +494,11 @@
});
test('throws if object is not a Map or Iterable', () {
- expect(() => new JsObject.jsify('a'),
- throwsA((a) => a is ArgumentError));
+ expect(() => new JsObject.jsify('a'), throwsA((a) => a is ArgumentError));
});
});
group('JsObject methods', () {
-
test('hashCode and ==', () {
final o1 = context['Object'];
final o2 = context['Object'];
@@ -566,13 +556,10 @@
foo["getAge"] = () => 10;
expect(foo.callMethod('getAge'), 10);
});
-
});
group('transferrables', () {
-
group('JS->Dart', () {
-
test('DateTime', () {
var date = context.callMethod('getNewDate');
expect(date is DateTime, true);
@@ -633,16 +620,14 @@
var node = context.callMethod('getNewImageData');
expect(node is ImageData, true);
});
-
});
group('Dart->JS', () {
-
test('Date', () {
context['o'] = new DateTime(1995, 12, 17);
var dateType = context['Date'];
- expect(context.callMethod('isPropertyInstanceOf', ['o', dateType]),
- true);
+ expect(
+ context.callMethod('isPropertyInstanceOf', ['o', dateType]), true);
context.deleteProperty('o');
});
@@ -666,24 +651,24 @@
var fileParts = ['<a id="a"><b id="b">hey!</b></a>'];
context['o'] = new Blob(fileParts, type: 'text/html');
var blobType = context['Blob'];
- expect(context.callMethod('isPropertyInstanceOf', ['o', blobType]),
- true);
+ expect(
+ context.callMethod('isPropertyInstanceOf', ['o', blobType]), true);
context.deleteProperty('o');
});
test('unattached DivElement', () {
context['o'] = document.createElement('div');
var divType = context['HTMLDivElement'];
- expect(context.callMethod('isPropertyInstanceOf', ['o', divType]),
- true);
+ expect(
+ context.callMethod('isPropertyInstanceOf', ['o', divType]), true);
context.deleteProperty('o');
});
test('Event', () {
context['o'] = new CustomEvent('test');
var eventType = context['Event'];
- expect(context.callMethod('isPropertyInstanceOf', ['o', eventType]),
- true);
+ expect(
+ context.callMethod('isPropertyInstanceOf', ['o', eventType]), true);
context.deleteProperty('o');
});
@@ -699,7 +684,6 @@
true);
context.deleteProperty('o');
});
-
});
});
}
diff --git a/pkg/dev_compiler/test/codegen/map_keys.dart b/pkg/dev_compiler/test/codegen/map_keys.dart
index 4cb59fb..0bb6e00 100644
--- a/pkg/dev_compiler/test/codegen/map_keys.dart
+++ b/pkg/dev_compiler/test/codegen/map_keys.dart
@@ -3,16 +3,17 @@
// (this is used so we're covering it in at least one test)
import 'dart:math' show Random;
+
main() {
// Uses a JS object literal
- print({ '1': 2, '3': 4, '5': 6 });
+ print({'1': 2, '3': 4, '5': 6});
// Uses array literal
- print({ 1: 2, 3: 4, 5: 6 });
+ print({1: 2, 3: 4, 5: 6});
// Uses ES6 enhanced object literal
- print({ '1': 2, '${new Random().nextInt(2) + 2}': 4, '5': 6 });
+ print({'1': 2, '${new Random().nextInt(2) + 2}': 4, '5': 6});
String x = '3';
// Could use enhanced object literal if we knew `x` was not null
- print({ '1': 2, x: 4, '5': 6 });
+ print({'1': 2, x: 4, '5': 6});
// Array literal
- print({ '1': 2, null: 4, '5': 6 });
+ print({'1': 2, null: 4, '5': 6});
}
diff --git a/pkg/dev_compiler/test/codegen/node_modules.dart b/pkg/dev_compiler/test/codegen/node_modules.dart
index 74fdaf1..dad8613 100644
--- a/pkg/dev_compiler/test/codegen/node_modules.dart
+++ b/pkg/dev_compiler/test/codegen/node_modules.dart
@@ -6,8 +6,11 @@
typedef void Callback({int i});
class A {}
+
class _A {}
+
class B<T> {}
+
class _B<T> {}
f() {}
diff --git a/pkg/dev_compiler/test/codegen/script.dart b/pkg/dev_compiler/test/codegen/script.dart
index 709ed67..c84e012 100755
--- a/pkg/dev_compiler/test/codegen/script.dart
+++ b/pkg/dev_compiler/test/codegen/script.dart
@@ -1,4 +1,5 @@
#!/usr/bin/env dart
+
void main(List<String> args) {
String name = args.join(' ');
if (name == '') name = 'world';
diff --git a/pkg/dev_compiler/test/codegen/sunflower/sunflower.dart b/pkg/dev_compiler/test/codegen/sunflower/sunflower.dart
index 5f78946..d74dfce 100644
--- a/pkg/dev_compiler/test/codegen/sunflower/sunflower.dart
+++ b/pkg/dev_compiler/test/codegen/sunflower/sunflower.dart
@@ -47,7 +47,7 @@
// This example was modified to use classes and mixins.
class SunflowerSeed extends Circle with CirclePainter {
SunflowerSeed(num x, num y, num radius, [String color])
- : super(x, y, radius) {
+ : super(x, y, radius) {
if (color != null) this.color = color;
}
}
diff --git a/pkg/dev_compiler/test/js/builder_test.dart b/pkg/dev_compiler/test/js/builder_test.dart
index 0defe06..c02909c 100644
--- a/pkg/dev_compiler/test/js/builder_test.dart
+++ b/pkg/dev_compiler/test/js/builder_test.dart
@@ -9,18 +9,15 @@
_check(Node node, String expected) =>
expect(node.toString(), 'js_ast `$expected`');
-_checkStatement(String src) =>
- _check(_parser(src).parseStatement(), src);
+_checkStatement(String src) => _check(_parser(src).parseStatement(), src);
-_checkExpression(String src) =>
- _check(_parser(src).parseExpression(), src);
+_checkExpression(String src) => _check(_parser(src).parseExpression(), src);
main() {
group('MiniJsParser', () {
// TODO(ochafik): Add more coverage.
test('parses classes with complex members', () {
- _checkExpression(
- 'class Foo {\n'
+ _checkExpression('class Foo {\n'
' [foo](...args) {}\n'
' [#0](x) {}\n'
' static [foo](...args) {}\n'
diff --git a/pkg/dev_compiler/tool/input_sdk/lib/html/dart2js/html_dart2js.dart b/pkg/dev_compiler/tool/input_sdk/lib/html/dart2js/html_dart2js.dart
index 670e039..41f690a 100644
--- a/pkg/dev_compiler/tool/input_sdk/lib/html/dart2js/html_dart2js.dart
+++ b/pkg/dev_compiler/tool/input_sdk/lib/html/dart2js/html_dart2js.dart
@@ -51,26 +51,31 @@
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:html library.
-
// Not actually used, but imported since dart:html can generate these objects.
-import 'dart:_js_helper' show
- convertDartClosureToJS, Creates, JavaScriptIndexingBehavior,
- JSName, Native, Returns, ForceInline,
- findDispatchTagForInterceptorClass, setNativeSubclassDispatchRecord,
- makeLeafDispatchRecord;
-import 'dart:_interceptors' show
- Interceptor, JSExtendableArray, JSUInt31,
- findInterceptorConstructorForType,
- findConstructorForNativeSubclassType,
- getNativeInterceptor,
- setDispatchProperty;
+import 'dart:_js_helper'
+ show
+ convertDartClosureToJS,
+ Creates,
+ JavaScriptIndexingBehavior,
+ JSName,
+ Native,
+ Returns,
+ ForceInline,
+ findDispatchTagForInterceptorClass,
+ setNativeSubclassDispatchRecord,
+ makeLeafDispatchRecord;
+import 'dart:_interceptors'
+ show
+ Interceptor,
+ JSExtendableArray,
+ JSUInt31,
+ findInterceptorConstructorForType,
+ findConstructorForNativeSubclassType,
+ getNativeInterceptor,
+ setDispatchProperty;
export 'dart:math' show Rectangle, Point;
-
-
-
-
/**
* Top-level container for a web page, which is usually a browser tab or window.
*
@@ -95,7 +100,9 @@
// Dart issue 1990.
@Native("HTMLElement")
class HtmlElement extends Element {
- factory HtmlElement() { throw new UnsupportedError("Not supported"); }
+ factory HtmlElement() {
+ throw new UnsupportedError("Not supported");
+ }
/**
* Constructor instantiated by the DOM when a custom element has been created.
@@ -128,12 +135,13 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('AbstractWorker')
abstract class AbstractWorker extends Interceptor implements EventTarget {
// To suppress missing implicit constructor warnings.
- factory AbstractWorker._() { throw new UnsupportedError("Not supported"); }
+ factory AbstractWorker._() {
+ throw new UnsupportedError("Not supported");
+ }
/**
* Static factory designed to expose `error` events to event
@@ -143,7 +151,8 @@
*/
@DomName('AbstractWorker.errorEvent')
@DocsEditable()
- static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
+ static const EventStreamProvider<Event> errorEvent =
+ const EventStreamProvider<Event>('error');
/// Stream of `error` events handled by this [AbstractWorker].
@DomName('AbstractWorker.onerror')
@@ -154,13 +163,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLAnchorElement')
@Native("HTMLAnchorElement")
class AnchorElement extends HtmlElement implements UrlUtils {
// To suppress missing implicit constructor warnings.
- factory AnchorElement._() { throw new UnsupportedError("Not supported"); }
+ factory AnchorElement._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('HTMLAnchorElement.HTMLAnchorElement')
@DocsEditable()
@@ -246,7 +256,6 @@
@Experimental() // untriaged
String username;
-
@DomName('HTMLAnchorElement.toString')
@DocsEditable()
String toString() => JS('String', 'String(#)', this);
@@ -255,14 +264,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Animation')
@Experimental() // untriaged
@Native("Animation")
class Animation extends EventTarget {
// To suppress missing implicit constructor warnings.
- factory Animation._() { throw new UnsupportedError("Not supported"); }
+ factory Animation._() {
+ throw new UnsupportedError("Not supported");
+ }
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(document.body.animate)');
@@ -315,45 +325,47 @@
@DomName('Animation.cancel')
@DocsEditable()
@Experimental() // untriaged
- void cancel() native;
+ void cancel() native ;
@DomName('Animation.finish')
@DocsEditable()
@Experimental() // untriaged
- void finish() native;
+ void finish() native ;
@DomName('Animation.pause')
@DocsEditable()
@Experimental() // untriaged
- void pause() native;
+ void pause() native ;
@DomName('Animation.play')
@DocsEditable()
@Experimental() // untriaged
- void play() native;
+ void play() native ;
@DomName('Animation.reverse')
@DocsEditable()
@Experimental() // untriaged
- void reverse() native;
+ void reverse() native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('AnimationEffectReadOnly')
@Experimental() // untriaged
@Native("AnimationEffectReadOnly")
class AnimationEffectReadOnly extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory AnimationEffectReadOnly._() { throw new UnsupportedError("Not supported"); }
+ factory AnimationEffectReadOnly._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('AnimationEffectReadOnly.computedTiming')
@DocsEditable()
@Experimental() // untriaged
- Map get computedTiming => convertNativeToDart_Dictionary(this._get_computedTiming);
+ Map get computedTiming =>
+ convertNativeToDart_Dictionary(this._get_computedTiming);
@JSName('computedTiming')
@DomName('AnimationEffectReadOnly.computedTiming')
@DocsEditable()
@@ -369,14 +381,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('AnimationEffectTiming')
@Experimental() // untriaged
@Native("AnimationEffectTiming")
class AnimationEffectTiming extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory AnimationEffectTiming._() { throw new UnsupportedError("Not supported"); }
+ factory AnimationEffectTiming._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('AnimationEffectTiming.delay')
@DocsEditable()
@@ -429,14 +442,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('AnimationEvent')
@Experimental() // untriaged
@Native("AnimationEvent")
class AnimationEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory AnimationEvent._() { throw new UnsupportedError("Not supported"); }
+ factory AnimationEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('AnimationEvent.AnimationEvent')
@DocsEditable()
@@ -447,8 +461,10 @@
}
return AnimationEvent._create_2(type);
}
- static AnimationEvent _create_1(type, eventInitDict) => JS('AnimationEvent', 'new AnimationEvent(#,#)', type, eventInitDict);
- static AnimationEvent _create_2(type) => JS('AnimationEvent', 'new AnimationEvent(#)', type);
+ static AnimationEvent _create_1(type, eventInitDict) =>
+ JS('AnimationEvent', 'new AnimationEvent(#,#)', type, eventInitDict);
+ static AnimationEvent _create_2(type) =>
+ JS('AnimationEvent', 'new AnimationEvent(#)', type);
@DomName('AnimationEvent.animationName')
@DocsEditable()
@@ -464,14 +480,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('AnimationPlayerEvent')
@Experimental() // untriaged
@Native("AnimationPlayerEvent")
class AnimationPlayerEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory AnimationPlayerEvent._() { throw new UnsupportedError("Not supported"); }
+ factory AnimationPlayerEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('AnimationPlayerEvent.AnimationPlayerEvent')
@DocsEditable()
@@ -482,8 +499,13 @@
}
return AnimationPlayerEvent._create_2(type);
}
- static AnimationPlayerEvent _create_1(type, eventInitDict) => JS('AnimationPlayerEvent', 'new AnimationPlayerEvent(#,#)', type, eventInitDict);
- static AnimationPlayerEvent _create_2(type) => JS('AnimationPlayerEvent', 'new AnimationPlayerEvent(#)', type);
+ static AnimationPlayerEvent _create_1(type, eventInitDict) => JS(
+ 'AnimationPlayerEvent',
+ 'new AnimationPlayerEvent(#,#)',
+ type,
+ eventInitDict);
+ static AnimationPlayerEvent _create_2(type) =>
+ JS('AnimationPlayerEvent', 'new AnimationPlayerEvent(#)', type);
@DomName('AnimationPlayerEvent.currentTime')
@DocsEditable()
@@ -499,14 +521,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('AnimationTimeline')
@Experimental() // untriaged
@Native("AnimationTimeline")
class AnimationTimeline extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory AnimationTimeline._() { throw new UnsupportedError("Not supported"); }
+ factory AnimationTimeline._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('AnimationTimeline.currentTime')
@DocsEditable()
@@ -521,25 +544,26 @@
@DomName('AnimationTimeline.getAnimations')
@DocsEditable()
@Experimental() // untriaged
- List<Animation> getAnimations() native;
+ List<Animation> getAnimations() native ;
@DomName('AnimationTimeline.play')
@DocsEditable()
@Experimental() // untriaged
- Animation play(AnimationEffectReadOnly source) native;
+ Animation play(AnimationEffectReadOnly source) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('AppBannerPromptResult')
@Experimental() // untriaged
@Native("AppBannerPromptResult")
class AppBannerPromptResult extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory AppBannerPromptResult._() { throw new UnsupportedError("Not supported"); }
+ factory AppBannerPromptResult._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('AppBannerPromptResult.outcome')
@DocsEditable()
@@ -555,7 +579,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
/**
* ApplicationCache is accessed via [Window.applicationCache].
@@ -570,7 +593,9 @@
@Native("ApplicationCache,DOMApplicationCache,OfflineResourceList")
class ApplicationCache extends EventTarget {
// To suppress missing implicit constructor warnings.
- factory ApplicationCache._() { throw new UnsupportedError("Not supported"); }
+ factory ApplicationCache._() {
+ throw new UnsupportedError("Not supported");
+ }
/**
* Static factory designed to expose `cached` events to event
@@ -580,7 +605,8 @@
*/
@DomName('ApplicationCache.cachedEvent')
@DocsEditable()
- static const EventStreamProvider<Event> cachedEvent = const EventStreamProvider<Event>('cached');
+ static const EventStreamProvider<Event> cachedEvent =
+ const EventStreamProvider<Event>('cached');
/**
* Static factory designed to expose `checking` events to event
@@ -590,7 +616,8 @@
*/
@DomName('ApplicationCache.checkingEvent')
@DocsEditable()
- static const EventStreamProvider<Event> checkingEvent = const EventStreamProvider<Event>('checking');
+ static const EventStreamProvider<Event> checkingEvent =
+ const EventStreamProvider<Event>('checking');
/**
* Static factory designed to expose `downloading` events to event
@@ -600,7 +627,8 @@
*/
@DomName('ApplicationCache.downloadingEvent')
@DocsEditable()
- static const EventStreamProvider<Event> downloadingEvent = const EventStreamProvider<Event>('downloading');
+ static const EventStreamProvider<Event> downloadingEvent =
+ const EventStreamProvider<Event>('downloading');
/**
* Static factory designed to expose `error` events to event
@@ -610,7 +638,8 @@
*/
@DomName('ApplicationCache.errorEvent')
@DocsEditable()
- static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
+ static const EventStreamProvider<Event> errorEvent =
+ const EventStreamProvider<Event>('error');
/**
* Static factory designed to expose `noupdate` events to event
@@ -620,7 +649,8 @@
*/
@DomName('ApplicationCache.noupdateEvent')
@DocsEditable()
- static const EventStreamProvider<Event> noUpdateEvent = const EventStreamProvider<Event>('noupdate');
+ static const EventStreamProvider<Event> noUpdateEvent =
+ const EventStreamProvider<Event>('noupdate');
/**
* Static factory designed to expose `obsolete` events to event
@@ -630,7 +660,8 @@
*/
@DomName('ApplicationCache.obsoleteEvent')
@DocsEditable()
- static const EventStreamProvider<Event> obsoleteEvent = const EventStreamProvider<Event>('obsolete');
+ static const EventStreamProvider<Event> obsoleteEvent =
+ const EventStreamProvider<Event>('obsolete');
/**
* Static factory designed to expose `progress` events to event
@@ -640,7 +671,8 @@
*/
@DomName('ApplicationCache.progressEvent')
@DocsEditable()
- static const EventStreamProvider<ProgressEvent> progressEvent = const EventStreamProvider<ProgressEvent>('progress');
+ static const EventStreamProvider<ProgressEvent> progressEvent =
+ const EventStreamProvider<ProgressEvent>('progress');
/**
* Static factory designed to expose `updateready` events to event
@@ -650,7 +682,8 @@
*/
@DomName('ApplicationCache.updatereadyEvent')
@DocsEditable()
- static const EventStreamProvider<Event> updateReadyEvent = const EventStreamProvider<Event>('updateready');
+ static const EventStreamProvider<Event> updateReadyEvent =
+ const EventStreamProvider<Event>('updateready');
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.applicationCache)');
@@ -685,15 +718,15 @@
@DomName('ApplicationCache.abort')
@DocsEditable()
- void abort() native;
+ void abort() native ;
@DomName('ApplicationCache.swapCache')
@DocsEditable()
- void swapCache() native;
+ void swapCache() native ;
@DomName('ApplicationCache.update')
@DocsEditable()
- void update() native;
+ void update() native ;
/// Stream of `cached` events handled by this [ApplicationCache].
@DomName('ApplicationCache.oncached')
@@ -739,14 +772,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('ApplicationCacheErrorEvent')
@Experimental() // untriaged
@Native("ApplicationCacheErrorEvent")
class ApplicationCacheErrorEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory ApplicationCacheErrorEvent._() { throw new UnsupportedError("Not supported"); }
+ factory ApplicationCacheErrorEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('ApplicationCacheErrorEvent.ApplicationCacheErrorEvent')
@DocsEditable()
@@ -757,8 +791,13 @@
}
return ApplicationCacheErrorEvent._create_2(type);
}
- static ApplicationCacheErrorEvent _create_1(type, eventInitDict) => JS('ApplicationCacheErrorEvent', 'new ApplicationCacheErrorEvent(#,#)', type, eventInitDict);
- static ApplicationCacheErrorEvent _create_2(type) => JS('ApplicationCacheErrorEvent', 'new ApplicationCacheErrorEvent(#)', type);
+ static ApplicationCacheErrorEvent _create_1(type, eventInitDict) => JS(
+ 'ApplicationCacheErrorEvent',
+ 'new ApplicationCacheErrorEvent(#,#)',
+ type,
+ eventInitDict);
+ static ApplicationCacheErrorEvent _create_2(type) => JS(
+ 'ApplicationCacheErrorEvent', 'new ApplicationCacheErrorEvent(#)', type);
@DomName('ApplicationCacheErrorEvent.message')
@DocsEditable()
@@ -784,7 +823,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
/**
* DOM Area Element, which links regions of an image map with a hyperlink.
@@ -800,7 +838,9 @@
@Native("HTMLAreaElement")
class AreaElement extends HtmlElement implements UrlUtils {
// To suppress missing implicit constructor warnings.
- factory AreaElement._() { throw new UnsupportedError("Not supported"); }
+ factory AreaElement._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('HTMLAreaElement.HTMLAreaElement')
@DocsEditable()
@@ -877,7 +917,6 @@
@Experimental() // untriaged
String username;
-
@DomName('HTMLAreaElement.toString')
@DocsEditable()
String toString() => JS('String', 'String(#)', this);
@@ -886,12 +925,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLAudioElement')
@Native("HTMLAudioElement")
class AudioElement extends MediaElement {
-
@DomName('HTMLAudioElement.HTMLAudioElement')
@DocsEditable()
factory AudioElement._([String src]) {
@@ -915,14 +952,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('AudioTrack')
@Experimental() // untriaged
@Native("AudioTrack")
class AudioTrack extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory AudioTrack._() { throw new UnsupportedError("Not supported"); }
+ factory AudioTrack._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('AudioTrack.enabled')
@DocsEditable()
@@ -953,19 +991,21 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('AudioTrackList')
@Experimental() // untriaged
@Native("AudioTrackList")
class AudioTrackList extends EventTarget {
// To suppress missing implicit constructor warnings.
- factory AudioTrackList._() { throw new UnsupportedError("Not supported"); }
+ factory AudioTrackList._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('AudioTrackList.changeEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<Event> changeEvent = const EventStreamProvider<Event>('change');
+ static const EventStreamProvider<Event> changeEvent =
+ const EventStreamProvider<Event>('change');
@DomName('AudioTrackList.length')
@DocsEditable()
@@ -975,12 +1015,12 @@
@DomName('AudioTrackList.__getter__')
@DocsEditable()
@Experimental() // untriaged
- AudioTrack __getter__(int index) native;
+ AudioTrack __getter__(int index) native ;
@DomName('AudioTrackList.getTrackById')
@DocsEditable()
@Experimental() // untriaged
- AudioTrack getTrackById(String id) native;
+ AudioTrack getTrackById(String id) native ;
@DomName('AudioTrackList.onchange')
@DocsEditable()
@@ -991,7 +1031,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('AutocompleteErrorEvent')
// http://wiki.whatwg.org/wiki/RequestAutocomplete
@@ -999,7 +1038,9 @@
@Native("AutocompleteErrorEvent")
class AutocompleteErrorEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory AutocompleteErrorEvent._() { throw new UnsupportedError("Not supported"); }
+ factory AutocompleteErrorEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('AutocompleteErrorEvent.AutocompleteErrorEvent')
@DocsEditable()
@@ -1010,8 +1051,13 @@
}
return AutocompleteErrorEvent._create_2(type);
}
- static AutocompleteErrorEvent _create_1(type, eventInitDict) => JS('AutocompleteErrorEvent', 'new AutocompleteErrorEvent(#,#)', type, eventInitDict);
- static AutocompleteErrorEvent _create_2(type) => JS('AutocompleteErrorEvent', 'new AutocompleteErrorEvent(#)', type);
+ static AutocompleteErrorEvent _create_1(type, eventInitDict) => JS(
+ 'AutocompleteErrorEvent',
+ 'new AutocompleteErrorEvent(#,#)',
+ type,
+ eventInitDict);
+ static AutocompleteErrorEvent _create_2(type) =>
+ JS('AutocompleteErrorEvent', 'new AutocompleteErrorEvent(#)', type);
@DomName('AutocompleteErrorEvent.reason')
@DocsEditable()
@@ -1021,13 +1067,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLBRElement')
@Native("HTMLBRElement")
class BRElement extends HtmlElement {
// To suppress missing implicit constructor warnings.
- factory BRElement._() { throw new UnsupportedError("Not supported"); }
+ factory BRElement._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('HTMLBRElement.HTMLBRElement')
@DocsEditable()
@@ -1043,7 +1090,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('BarProp')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#barprop
@@ -1051,7 +1097,9 @@
@Native("BarProp")
class BarProp extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory BarProp._() { throw new UnsupportedError("Not supported"); }
+ factory BarProp._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('BarProp.visible')
@DocsEditable()
@@ -1061,13 +1109,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLBaseElement')
@Native("HTMLBaseElement")
class BaseElement extends HtmlElement {
// To suppress missing implicit constructor warnings.
- factory BaseElement._() { throw new UnsupportedError("Not supported"); }
+ factory BaseElement._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('HTMLBaseElement.HTMLBaseElement')
@DocsEditable()
@@ -1091,7 +1140,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('BatteryManager')
// https://dvcs.w3.org/hg/dap/raw-file/default/battery/Overview.html#batterymanager-interface
@@ -1099,7 +1147,9 @@
@Native("BatteryManager")
class BatteryManager extends EventTarget {
// To suppress missing implicit constructor warnings.
- factory BatteryManager._() { throw new UnsupportedError("Not supported"); }
+ factory BatteryManager._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('BatteryManager.charging')
@DocsEditable()
@@ -1121,14 +1171,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('BeforeInstallPromptEvent')
@Experimental() // untriaged
@Native("BeforeInstallPromptEvent")
class BeforeInstallPromptEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory BeforeInstallPromptEvent._() { throw new UnsupportedError("Not supported"); }
+ factory BeforeInstallPromptEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('BeforeInstallPromptEvent.BeforeInstallPromptEvent')
@DocsEditable()
@@ -1139,8 +1190,13 @@
}
return BeforeInstallPromptEvent._create_2(type);
}
- static BeforeInstallPromptEvent _create_1(type, eventInitDict) => JS('BeforeInstallPromptEvent', 'new BeforeInstallPromptEvent(#,#)', type, eventInitDict);
- static BeforeInstallPromptEvent _create_2(type) => JS('BeforeInstallPromptEvent', 'new BeforeInstallPromptEvent(#)', type);
+ static BeforeInstallPromptEvent _create_1(type, eventInitDict) => JS(
+ 'BeforeInstallPromptEvent',
+ 'new BeforeInstallPromptEvent(#,#)',
+ type,
+ eventInitDict);
+ static BeforeInstallPromptEvent _create_2(type) =>
+ JS('BeforeInstallPromptEvent', 'new BeforeInstallPromptEvent(#)', type);
List<String> get platforms => JS("List<String>", "#.platforms", this);
@@ -1152,19 +1208,20 @@
@DomName('BeforeInstallPromptEvent.prompt')
@DocsEditable()
@Experimental() // untriaged
- Future prompt() native;
+ Future prompt() native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('BeforeUnloadEvent')
@Native("BeforeUnloadEvent")
class BeforeUnloadEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory BeforeUnloadEvent._() { throw new UnsupportedError("Not supported"); }
+ factory BeforeUnloadEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
// Shadowing definition.
String get returnValue => JS("String", "#.returnValue", this);
@@ -1177,12 +1234,13 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DomName('Blob')
@Native("Blob")
class Blob extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory Blob._() { throw new UnsupportedError("Not supported"); }
+ factory Blob._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('Blob.size')
@DocsEditable()
@@ -1195,11 +1253,11 @@
@DomName('Blob.close')
@DocsEditable()
@Experimental() // untriaged
- void close() native;
+ void close() native ;
@DomName('Blob.slice')
@DocsEditable()
- Blob slice([int start, int end, String contentType]) native;
+ Blob slice([int start, int end, String contentType]) native ;
factory Blob(List blobParts, [String type, String endings]) {
// TODO: validate that blobParts is a JS Array and convert if not.
@@ -1218,20 +1276,23 @@
static _create_2(parts, bag) => JS('Blob', 'new self.Blob(#, #)', parts, bag);
static _create_bag() => JS('var', '{}');
- static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); }
+ static _bag_set(bag, key, value) {
+ JS('void', '#[#] = #', bag, key, value);
+ }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Bluetooth')
@Experimental() // untriaged
@Native("Bluetooth")
class Bluetooth extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory Bluetooth._() { throw new UnsupportedError("Not supported"); }
+ factory Bluetooth._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('Bluetooth.requestDevice')
@DocsEditable()
@@ -1240,24 +1301,26 @@
var options_1 = convertDartToNative_Dictionary(options);
return _requestDevice_1(options_1);
}
+
@JSName('requestDevice')
@DomName('Bluetooth.requestDevice')
@DocsEditable()
@Experimental() // untriaged
- Future _requestDevice_1(options) native;
+ Future _requestDevice_1(options) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('BluetoothDevice')
@Experimental() // untriaged
@Native("BluetoothDevice")
class BluetoothDevice extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory BluetoothDevice._() { throw new UnsupportedError("Not supported"); }
+ factory BluetoothDevice._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('BluetoothDevice.deviceClass')
@DocsEditable()
@@ -1303,20 +1366,21 @@
@DomName('BluetoothDevice.connectGATT')
@DocsEditable()
@Experimental() // untriaged
- Future connectGatt() native;
+ Future connectGatt() native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('BluetoothGATTCharacteristic')
@Experimental() // untriaged
@Native("BluetoothGATTCharacteristic")
class BluetoothGattCharacteristic extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory BluetoothGattCharacteristic._() { throw new UnsupportedError("Not supported"); }
+ factory BluetoothGattCharacteristic._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('BluetoothGATTCharacteristic.uuid')
@DocsEditable()
@@ -1326,25 +1390,26 @@
@DomName('BluetoothGATTCharacteristic.readValue')
@DocsEditable()
@Experimental() // untriaged
- Future readValue() native;
+ Future readValue() native ;
@DomName('BluetoothGATTCharacteristic.writeValue')
@DocsEditable()
@Experimental() // untriaged
- Future writeValue(/*BufferSource*/ value) native;
+ Future writeValue(/*BufferSource*/ value) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('BluetoothGATTRemoteServer')
@Experimental() // untriaged
@Native("BluetoothGATTRemoteServer")
class BluetoothGattRemoteServer extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory BluetoothGattRemoteServer._() { throw new UnsupportedError("Not supported"); }
+ factory BluetoothGattRemoteServer._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('BluetoothGATTRemoteServer.connected')
@DocsEditable()
@@ -1354,20 +1419,21 @@
@DomName('BluetoothGATTRemoteServer.getPrimaryService')
@DocsEditable()
@Experimental() // untriaged
- Future getPrimaryService(/*BluetoothServiceUUID*/ service) native;
+ Future getPrimaryService(/*BluetoothServiceUUID*/ service) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('BluetoothGATTService')
@Experimental() // untriaged
@Native("BluetoothGATTService")
class BluetoothGattService extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory BluetoothGattService._() { throw new UnsupportedError("Not supported"); }
+ factory BluetoothGattService._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('BluetoothGATTService.isPrimary')
@DocsEditable()
@@ -1382,54 +1448,57 @@
@DomName('BluetoothGATTService.getCharacteristic')
@DocsEditable()
@Experimental() // untriaged
- Future getCharacteristic(/*BluetoothCharacteristicUUID*/ characteristic) native;
+ Future getCharacteristic(/*BluetoothCharacteristicUUID*/ characteristic)
+ native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('BluetoothUUID')
@Experimental() // untriaged
@Native("BluetoothUUID")
class BluetoothUuid extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory BluetoothUuid._() { throw new UnsupportedError("Not supported"); }
+ factory BluetoothUuid._() {
+ throw new UnsupportedError("Not supported");
+ }
@JSName('canonicalUUID')
@DomName('BluetoothUUID.canonicalUUID')
@DocsEditable()
@Experimental() // untriaged
- static String canonicalUuid(int alias) native;
+ static String canonicalUuid(int alias) native ;
@DomName('BluetoothUUID.getCharacteristic')
@DocsEditable()
@Experimental() // untriaged
- static String getCharacteristic(Object name) native;
+ static String getCharacteristic(Object name) native ;
@DomName('BluetoothUUID.getDescriptor')
@DocsEditable()
@Experimental() // untriaged
- static String getDescriptor(Object name) native;
+ static String getDescriptor(Object name) native ;
@DomName('BluetoothUUID.getService')
@DocsEditable()
@Experimental() // untriaged
- static String getService(Object name) native;
+ static String getService(Object name) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Body')
@Experimental() // untriaged
@Native("Body")
class Body extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory Body._() { throw new UnsupportedError("Not supported"); }
+ factory Body._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('Body.bodyUsed')
@DocsEditable()
@@ -1439,34 +1508,35 @@
@DomName('Body.arrayBuffer')
@DocsEditable()
@Experimental() // untriaged
- Future arrayBuffer() native;
+ Future arrayBuffer() native ;
@DomName('Body.blob')
@DocsEditable()
@Experimental() // untriaged
- Future blob() native;
+ Future blob() native ;
@DomName('Body.json')
@DocsEditable()
@Experimental() // untriaged
- Future json() native;
+ Future json() native ;
@DomName('Body.text')
@DocsEditable()
@Experimental() // untriaged
- Future text() native;
+ Future text() native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLBodyElement')
@Native("HTMLBodyElement")
class BodyElement extends HtmlElement implements WindowEventHandlers {
// To suppress missing implicit constructor warnings.
- factory BodyElement._() { throw new UnsupportedError("Not supported"); }
+ factory BodyElement._() {
+ throw new UnsupportedError("Not supported");
+ }
/**
* Static factory designed to expose `blur` events to event
@@ -1476,7 +1546,8 @@
*/
@DomName('HTMLBodyElement.blurEvent')
@DocsEditable()
- static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<Event>('blur');
+ static const EventStreamProvider<Event> blurEvent =
+ const EventStreamProvider<Event>('blur');
/**
* Static factory designed to expose `error` events to event
@@ -1486,7 +1557,8 @@
*/
@DomName('HTMLBodyElement.errorEvent')
@DocsEditable()
- static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
+ static const EventStreamProvider<Event> errorEvent =
+ const EventStreamProvider<Event>('error');
/**
* Static factory designed to expose `focus` events to event
@@ -1496,7 +1568,8 @@
*/
@DomName('HTMLBodyElement.focusEvent')
@DocsEditable()
- static const EventStreamProvider<Event> focusEvent = const EventStreamProvider<Event>('focus');
+ static const EventStreamProvider<Event> focusEvent =
+ const EventStreamProvider<Event>('focus');
/**
* Static factory designed to expose `hashchange` events to event
@@ -1506,7 +1579,8 @@
*/
@DomName('HTMLBodyElement.hashchangeEvent')
@DocsEditable()
- static const EventStreamProvider<Event> hashChangeEvent = const EventStreamProvider<Event>('hashchange');
+ static const EventStreamProvider<Event> hashChangeEvent =
+ const EventStreamProvider<Event>('hashchange');
/**
* Static factory designed to expose `load` events to event
@@ -1516,7 +1590,8 @@
*/
@DomName('HTMLBodyElement.loadEvent')
@DocsEditable()
- static const EventStreamProvider<Event> loadEvent = const EventStreamProvider<Event>('load');
+ static const EventStreamProvider<Event> loadEvent =
+ const EventStreamProvider<Event>('load');
/**
* Static factory designed to expose `message` events to event
@@ -1526,7 +1601,8 @@
*/
@DomName('HTMLBodyElement.messageEvent')
@DocsEditable()
- static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
+ static const EventStreamProvider<MessageEvent> messageEvent =
+ const EventStreamProvider<MessageEvent>('message');
/**
* Static factory designed to expose `offline` events to event
@@ -1536,7 +1612,8 @@
*/
@DomName('HTMLBodyElement.offlineEvent')
@DocsEditable()
- static const EventStreamProvider<Event> offlineEvent = const EventStreamProvider<Event>('offline');
+ static const EventStreamProvider<Event> offlineEvent =
+ const EventStreamProvider<Event>('offline');
/**
* Static factory designed to expose `online` events to event
@@ -1546,7 +1623,8 @@
*/
@DomName('HTMLBodyElement.onlineEvent')
@DocsEditable()
- static const EventStreamProvider<Event> onlineEvent = const EventStreamProvider<Event>('online');
+ static const EventStreamProvider<Event> onlineEvent =
+ const EventStreamProvider<Event>('online');
/**
* Static factory designed to expose `popstate` events to event
@@ -1556,7 +1634,8 @@
*/
@DomName('HTMLBodyElement.popstateEvent')
@DocsEditable()
- static const EventStreamProvider<PopStateEvent> popStateEvent = const EventStreamProvider<PopStateEvent>('popstate');
+ static const EventStreamProvider<PopStateEvent> popStateEvent =
+ const EventStreamProvider<PopStateEvent>('popstate');
/**
* Static factory designed to expose `resize` events to event
@@ -1566,12 +1645,14 @@
*/
@DomName('HTMLBodyElement.resizeEvent')
@DocsEditable()
- static const EventStreamProvider<Event> resizeEvent = const EventStreamProvider<Event>('resize');
+ static const EventStreamProvider<Event> resizeEvent =
+ const EventStreamProvider<Event>('resize');
@DomName('HTMLBodyElement.scrollEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<Event> scrollEvent = const EventStreamProvider<Event>('scroll');
+ static const EventStreamProvider<Event> scrollEvent =
+ const EventStreamProvider<Event>('scroll');
/**
* Static factory designed to expose `storage` events to event
@@ -1581,7 +1662,8 @@
*/
@DomName('HTMLBodyElement.storageEvent')
@DocsEditable()
- static const EventStreamProvider<StorageEvent> storageEvent = const EventStreamProvider<StorageEvent>('storage');
+ static const EventStreamProvider<StorageEvent> storageEvent =
+ const EventStreamProvider<StorageEvent>('storage');
/**
* Static factory designed to expose `unload` events to event
@@ -1591,7 +1673,8 @@
*/
@DomName('HTMLBodyElement.unloadEvent')
@DocsEditable()
- static const EventStreamProvider<Event> unloadEvent = const EventStreamProvider<Event>('unload');
+ static const EventStreamProvider<Event> unloadEvent =
+ const EventStreamProvider<Event>('unload');
@DomName('HTMLBodyElement.HTMLBodyElement')
@DocsEditable()
@@ -1672,13 +1755,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLButtonElement')
@Native("HTMLButtonElement")
class ButtonElement extends HtmlElement {
// To suppress missing implicit constructor warnings.
- factory ButtonElement._() { throw new UnsupportedError("Not supported"); }
+ factory ButtonElement._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('HTMLButtonElement.HTMLButtonElement')
@DocsEditable()
@@ -1755,22 +1839,21 @@
@DomName('HTMLButtonElement.checkValidity')
@DocsEditable()
- bool checkValidity() native;
+ bool checkValidity() native ;
@DomName('HTMLButtonElement.reportValidity')
@DocsEditable()
@Experimental() // untriaged
- bool reportValidity() native;
+ bool reportValidity() native ;
@DomName('HTMLButtonElement.setCustomValidity')
@DocsEditable()
- void setCustomValidity(String error) native;
+ void setCustomValidity(String error) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CDATASection')
// http://dom.spec.whatwg.org/#cdatasection
@@ -1778,35 +1861,38 @@
@Native("CDATASection")
class CDataSection extends Text {
// To suppress missing implicit constructor warnings.
- factory CDataSection._() { throw new UnsupportedError("Not supported"); }
+ factory CDataSection._() {
+ throw new UnsupportedError("Not supported");
+ }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CacheStorage')
@Experimental() // untriaged
@Native("CacheStorage")
class CacheStorage extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory CacheStorage._() { throw new UnsupportedError("Not supported"); }
+ factory CacheStorage._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CacheStorage.delete')
@DocsEditable()
@Experimental() // untriaged
- Future delete(String cacheName) native;
+ Future delete(String cacheName) native ;
@DomName('CacheStorage.has')
@DocsEditable()
@Experimental() // untriaged
- Future has(String cacheName) native;
+ Future has(String cacheName) native ;
@DomName('CacheStorage.keys')
@DocsEditable()
@Experimental() // untriaged
- Future keys() native;
+ Future keys() native ;
@DomName('CacheStorage.match')
@DocsEditable()
@@ -1818,32 +1904,34 @@
}
return _match_2(request);
}
+
@JSName('match')
@DomName('CacheStorage.match')
@DocsEditable()
@Experimental() // untriaged
- Future _match_1(request, options) native;
+ Future _match_1(request, options) native ;
@JSName('match')
@DomName('CacheStorage.match')
@DocsEditable()
@Experimental() // untriaged
- Future _match_2(request) native;
+ Future _match_2(request) native ;
@DomName('CacheStorage.open')
@DocsEditable()
@Experimental() // untriaged
- Future open(String cacheName) native;
+ Future open(String cacheName) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DomName('HTMLCanvasElement')
@Native("HTMLCanvasElement")
class CanvasElement extends HtmlElement implements CanvasImageSource {
// To suppress missing implicit constructor warnings.
- factory CanvasElement._() { throw new UnsupportedError("Not supported"); }
+ factory CanvasElement._() {
+ throw new UnsupportedError("Not supported");
+ }
/**
* Static factory designed to expose `webglcontextlost` events to event
@@ -1853,7 +1941,8 @@
*/
@DomName('HTMLCanvasElement.webglcontextlostEvent')
@DocsEditable()
- static const EventStreamProvider<gl.ContextEvent> webGlContextLostEvent = const EventStreamProvider<gl.ContextEvent>('webglcontextlost');
+ static const EventStreamProvider<gl.ContextEvent> webGlContextLostEvent =
+ const EventStreamProvider<gl.ContextEvent>('webglcontextlost');
/**
* Static factory designed to expose `webglcontextrestored` events to event
@@ -1863,7 +1952,8 @@
*/
@DomName('HTMLCanvasElement.webglcontextrestoredEvent')
@DocsEditable()
- static const EventStreamProvider<gl.ContextEvent> webGlContextRestoredEvent = const EventStreamProvider<gl.ContextEvent>('webglcontextrestored');
+ static const EventStreamProvider<gl.ContextEvent> webGlContextRestoredEvent =
+ const EventStreamProvider<gl.ContextEvent>('webglcontextrestored');
@DomName('HTMLCanvasElement.HTMLCanvasElement')
@DocsEditable()
@@ -1901,33 +1991,36 @@
}
return _getContext_2(contextId);
}
+
@JSName('getContext')
@DomName('HTMLCanvasElement.getContext')
@DocsEditable()
@Creates('CanvasRenderingContext2D|RenderingContext')
@Returns('CanvasRenderingContext2D|RenderingContext|Null')
- Object _getContext_1(contextId, attributes) native;
+ Object _getContext_1(contextId, attributes) native ;
@JSName('getContext')
@DomName('HTMLCanvasElement.getContext')
@DocsEditable()
@Creates('CanvasRenderingContext2D|RenderingContext')
@Returns('CanvasRenderingContext2D|RenderingContext|Null')
- Object _getContext_2(contextId) native;
+ Object _getContext_2(contextId) native ;
@JSName('toDataURL')
@DomName('HTMLCanvasElement.toDataURL')
@DocsEditable()
- String _toDataUrl(String type, [arguments_OR_quality]) native;
+ String _toDataUrl(String type, [arguments_OR_quality]) native ;
/// Stream of `webglcontextlost` events handled by this [CanvasElement].
@DomName('HTMLCanvasElement.onwebglcontextlost')
@DocsEditable()
- ElementStream<gl.ContextEvent> get onWebGlContextLost => webGlContextLostEvent.forElement(this);
+ ElementStream<gl.ContextEvent> get onWebGlContextLost =>
+ webGlContextLostEvent.forElement(this);
/// Stream of `webglcontextrestored` events handled by this [CanvasElement].
@DomName('HTMLCanvasElement.onwebglcontextrestored')
@DocsEditable()
- ElementStream<gl.ContextEvent> get onWebGlContextRestored => webGlContextRestoredEvent.forElement(this);
+ ElementStream<gl.ContextEvent> get onWebGlContextRestored =>
+ webGlContextRestoredEvent.forElement(this);
/** An API for drawing on this canvas. */
CanvasRenderingContext2D get context2D =>
@@ -1945,9 +2038,13 @@
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@Experimental()
- gl.RenderingContext getContext3d({alpha: true, depth: true, stencil: false,
- antialias: true, premultipliedAlpha: true, preserveDrawingBuffer: false}) {
-
+ gl.RenderingContext getContext3d(
+ {alpha: true,
+ depth: true,
+ stencil: false,
+ antialias: true,
+ premultipliedAlpha: true,
+ preserveDrawingBuffer: false}) {
var options = {
'alpha': alpha,
'depth': depth,
@@ -2011,7 +2108,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
/**
* An opaque canvas object representing a gradient.
@@ -2047,7 +2143,9 @@
@Native("CanvasGradient")
class CanvasGradient extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory CanvasGradient._() { throw new UnsupportedError("Not supported"); }
+ factory CanvasGradient._() {
+ throw new UnsupportedError("Not supported");
+ }
/**
* Adds a color stop to this gradient at the offset.
@@ -2060,13 +2158,12 @@
*/
@DomName('CanvasGradient.addColorStop')
@DocsEditable()
- void addColorStop(num offset, String color) native;
+ void addColorStop(num offset, String color) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
/**
* An opaque object representing a pattern of image, canvas, or video.
@@ -2100,27 +2197,31 @@
@Native("CanvasPattern")
class CanvasPattern extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory CanvasPattern._() { throw new UnsupportedError("Not supported"); }
+ factory CanvasPattern._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CanvasPattern.setTransform')
@DocsEditable()
@Experimental() // untriaged
- void setTransform(Matrix transform) native;
+ void setTransform(Matrix transform) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
abstract class CanvasRenderingContext {
CanvasElement get canvas;
}
@DomName('CanvasRenderingContext2D')
@Native("CanvasRenderingContext2D")
-class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingContext {
+class CanvasRenderingContext2D extends Interceptor
+ implements CanvasRenderingContext {
// To suppress missing implicit constructor warnings.
- factory CanvasRenderingContext2D._() { throw new UnsupportedError("Not supported"); }
+ factory CanvasRenderingContext2D._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CanvasRenderingContext2D.canvas')
@DocsEditable()
@@ -2233,33 +2334,34 @@
_addHitRegion_2();
return;
}
+
@JSName('addHitRegion')
@DomName('CanvasRenderingContext2D.addHitRegion')
@DocsEditable()
@Experimental() // untriaged
- void _addHitRegion_1(options) native;
+ void _addHitRegion_1(options) native ;
@JSName('addHitRegion')
@DomName('CanvasRenderingContext2D.addHitRegion')
@DocsEditable()
@Experimental() // untriaged
- void _addHitRegion_2() native;
+ void _addHitRegion_2() native ;
@DomName('CanvasRenderingContext2D.beginPath')
@DocsEditable()
- void beginPath() native;
+ void beginPath() native ;
@DomName('CanvasRenderingContext2D.clearHitRegions')
@DocsEditable()
@Experimental() // untriaged
- void clearHitRegions() native;
+ void clearHitRegions() native ;
@DomName('CanvasRenderingContext2D.clearRect')
@DocsEditable()
- void clearRect(num x, num y, num width, num height) native;
+ void clearRect(num x, num y, num width, num height) native ;
@DomName('CanvasRenderingContext2D.clip')
@DocsEditable()
- void clip([path_OR_winding, String winding]) native;
+ void clip([path_OR_winding, String winding]) native ;
@DomName('CanvasRenderingContext2D.createImageData')
@DocsEditable()
@@ -2270,41 +2372,44 @@
return convertNativeToDart_ImageData(_createImageData_1(imagedata_1));
}
if (sh != null && (imagedata_OR_sw is num)) {
- return convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh));
+ return convertNativeToDart_ImageData(
+ _createImageData_2(imagedata_OR_sw, sh));
}
throw new ArgumentError("Incorrect number or type of arguments");
}
+
@JSName('createImageData')
@DomName('CanvasRenderingContext2D.createImageData')
@DocsEditable()
@Creates('ImageData|=Object')
- _createImageData_1(imagedata) native;
+ _createImageData_1(imagedata) native ;
@JSName('createImageData')
@DomName('CanvasRenderingContext2D.createImageData')
@DocsEditable()
@Creates('ImageData|=Object')
- _createImageData_2(num sw, sh) native;
+ _createImageData_2(num sw, sh) native ;
@DomName('CanvasRenderingContext2D.createLinearGradient')
@DocsEditable()
- CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native;
+ CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native ;
@DomName('CanvasRenderingContext2D.createPattern')
@DocsEditable()
- CanvasPattern createPattern(Object image, String repetitionType) native;
+ CanvasPattern createPattern(Object image, String repetitionType) native ;
@DomName('CanvasRenderingContext2D.createRadialGradient')
@DocsEditable()
- CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1) native;
+ CanvasGradient createRadialGradient(
+ num x0, num y0, num r0, num x1, num y1, num r1) native ;
@DomName('CanvasRenderingContext2D.drawFocusIfNeeded')
@DocsEditable()
@Experimental() // untriaged
- void drawFocusIfNeeded(element_OR_path, [Element element]) native;
+ void drawFocusIfNeeded(element_OR_path, [Element element]) native ;
@DomName('CanvasRenderingContext2D.fillRect')
@DocsEditable()
- void fillRect(num x, num y, num width, num height) native;
+ void fillRect(num x, num y, num width, num height) native ;
@DomName('CanvasRenderingContext2D.getContextAttributes')
@DocsEditable()
@@ -2313,12 +2418,13 @@
Map getContextAttributes() {
return convertNativeToDart_Dictionary(_getContextAttributes_1());
}
+
@JSName('getContextAttributes')
@DomName('CanvasRenderingContext2D.getContextAttributes')
@DocsEditable()
// http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL
@Experimental()
- _getContextAttributes_1() native;
+ _getContextAttributes_1() native ;
@DomName('CanvasRenderingContext2D.getImageData')
@DocsEditable()
@@ -2326,158 +2432,172 @@
ImageData getImageData(num sx, num sy, num sw, num sh) {
return convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh));
}
+
@JSName('getImageData')
@DomName('CanvasRenderingContext2D.getImageData')
@DocsEditable()
@Creates('ImageData|=Object')
- _getImageData_1(sx, sy, sw, sh) native;
+ _getImageData_1(sx, sy, sw, sh) native ;
@JSName('getLineDash')
@DomName('CanvasRenderingContext2D.getLineDash')
@DocsEditable()
- List<num> _getLineDash() native;
+ List<num> _getLineDash() native ;
@DomName('CanvasRenderingContext2D.isContextLost')
@DocsEditable()
@Experimental() // untriaged
- bool isContextLost() native;
+ bool isContextLost() native ;
@DomName('CanvasRenderingContext2D.isPointInPath')
@DocsEditable()
- bool isPointInPath(path_OR_x, num x_OR_y, [winding_OR_y, String winding]) native;
+ bool isPointInPath(path_OR_x, num x_OR_y, [winding_OR_y, String winding])
+ native ;
@DomName('CanvasRenderingContext2D.isPointInStroke')
@DocsEditable()
- bool isPointInStroke(path_OR_x, num x_OR_y, [num y]) native;
+ bool isPointInStroke(path_OR_x, num x_OR_y, [num y]) native ;
@DomName('CanvasRenderingContext2D.measureText')
@DocsEditable()
- TextMetrics measureText(String text) native;
+ TextMetrics measureText(String text) native ;
@DomName('CanvasRenderingContext2D.putImageData')
@DocsEditable()
- void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) {
- if (dirtyX == null && dirtyY == null && dirtyWidth == null && dirtyHeight == null) {
+ void putImageData(ImageData imagedata, num dx, num dy,
+ [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) {
+ if (dirtyX == null &&
+ dirtyY == null &&
+ dirtyWidth == null &&
+ dirtyHeight == null) {
var imagedata_1 = convertDartToNative_ImageData(imagedata);
_putImageData_1(imagedata_1, dx, dy);
return;
}
- if (dirtyHeight != null && dirtyWidth != null && dirtyY != null && dirtyX != null) {
+ if (dirtyHeight != null &&
+ dirtyWidth != null &&
+ dirtyY != null &&
+ dirtyX != null) {
var imagedata_1 = convertDartToNative_ImageData(imagedata);
- _putImageData_2(imagedata_1, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight);
+ _putImageData_2(
+ imagedata_1, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}
+
@JSName('putImageData')
@DomName('CanvasRenderingContext2D.putImageData')
@DocsEditable()
- void _putImageData_1(imagedata, dx, dy) native;
+ void _putImageData_1(imagedata, dx, dy) native ;
@JSName('putImageData')
@DomName('CanvasRenderingContext2D.putImageData')
@DocsEditable()
- void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native;
+ void _putImageData_2(
+ imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native ;
@DomName('CanvasRenderingContext2D.removeHitRegion')
@DocsEditable()
@Experimental() // untriaged
- void removeHitRegion(String id) native;
+ void removeHitRegion(String id) native ;
@DomName('CanvasRenderingContext2D.resetTransform')
@DocsEditable()
@Experimental() // untriaged
- void resetTransform() native;
+ void resetTransform() native ;
@DomName('CanvasRenderingContext2D.restore')
@DocsEditable()
- void restore() native;
+ void restore() native ;
@DomName('CanvasRenderingContext2D.rotate')
@DocsEditable()
- void rotate(num angle) native;
+ void rotate(num angle) native ;
@DomName('CanvasRenderingContext2D.save')
@DocsEditable()
- void save() native;
+ void save() native ;
@DomName('CanvasRenderingContext2D.scale')
@DocsEditable()
- void scale(num x, num y) native;
+ void scale(num x, num y) native ;
@DomName('CanvasRenderingContext2D.scrollPathIntoView')
@DocsEditable()
@Experimental() // untriaged
- void scrollPathIntoView([Path2D path]) native;
+ void scrollPathIntoView([Path2D path]) native ;
@DomName('CanvasRenderingContext2D.setTransform')
@DocsEditable()
- void setTransform(num a, num b, num c, num d, num e, num f) native;
+ void setTransform(num a, num b, num c, num d, num e, num f) native ;
@DomName('CanvasRenderingContext2D.stroke')
@DocsEditable()
- void stroke([Path2D path]) native;
+ void stroke([Path2D path]) native ;
@DomName('CanvasRenderingContext2D.strokeRect')
@DocsEditable()
- void strokeRect(num x, num y, num width, num height) native;
+ void strokeRect(num x, num y, num width, num height) native ;
@DomName('CanvasRenderingContext2D.strokeText')
@DocsEditable()
- void strokeText(String text, num x, num y, [num maxWidth]) native;
+ void strokeText(String text, num x, num y, [num maxWidth]) native ;
@DomName('CanvasRenderingContext2D.transform')
@DocsEditable()
- void transform(num a, num b, num c, num d, num e, num f) native;
+ void transform(num a, num b, num c, num d, num e, num f) native ;
@DomName('CanvasRenderingContext2D.translate')
@DocsEditable()
- void translate(num x, num y) native;
+ void translate(num x, num y) native ;
// From CanvasPathMethods
@JSName('arc')
@DomName('CanvasRenderingContext2D.arc')
@DocsEditable()
- void _arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native;
+ void _arc(num x, num y, num radius, num startAngle, num endAngle,
+ bool anticlockwise) native ;
@DomName('CanvasRenderingContext2D.arcTo')
@DocsEditable()
- void arcTo(num x1, num y1, num x2, num y2, num radius) native;
+ void arcTo(num x1, num y1, num x2, num y2, num radius) native ;
@DomName('CanvasRenderingContext2D.bezierCurveTo')
@DocsEditable()
- void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) native;
+ void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y)
+ native ;
@DomName('CanvasRenderingContext2D.closePath')
@DocsEditable()
- void closePath() native;
+ void closePath() native ;
@DomName('CanvasRenderingContext2D.ellipse')
@DocsEditable()
@Experimental() // untriaged
- void ellipse(num x, num y, num radiusX, num radiusY, num rotation, num startAngle, num endAngle, bool anticlockwise) native;
+ void ellipse(num x, num y, num radiusX, num radiusY, num rotation,
+ num startAngle, num endAngle, bool anticlockwise) native ;
@DomName('CanvasRenderingContext2D.lineTo')
@DocsEditable()
- void lineTo(num x, num y) native;
+ void lineTo(num x, num y) native ;
@DomName('CanvasRenderingContext2D.moveTo')
@DocsEditable()
- void moveTo(num x, num y) native;
+ void moveTo(num x, num y) native ;
@DomName('CanvasRenderingContext2D.quadraticCurveTo')
@DocsEditable()
- void quadraticCurveTo(num cpx, num cpy, num x, num y) native;
+ void quadraticCurveTo(num cpx, num cpy, num x, num y) native ;
@DomName('CanvasRenderingContext2D.rect')
@DocsEditable()
- void rect(num x, num y, num width, num height) native;
-
+ void rect(num x, num y, num width, num height) native ;
@DomName('CanvasRenderingContext2D.createImageDataFromImageData')
@DocsEditable()
ImageData createImageDataFromImageData(ImageData imagedata) =>
- JS('ImageData', '#.createImageData(#)', this, imagedata);
+ JS('ImageData', '#.createImageData(#)', this, imagedata);
/**
* Sets the color used inside shapes.
@@ -2516,16 +2636,17 @@
}
@DomName('CanvasRenderingContext2D.arc')
- void arc(num x, num y, num radius, num startAngle, num endAngle,
+ void arc(num x, num y, num radius, num startAngle, num endAngle,
[bool anticlockwise = false]) {
// TODO(terry): This should not be needed: dartbug.com/20939.
JS('void', '#.arc(#, #, #, #, #, #)', this, x, y, radius, startAngle,
- endAngle, anticlockwise);
+ endAngle, anticlockwise);
}
@DomName('CanvasRenderingContext2D.createPatternFromImage')
- CanvasPattern createPatternFromImage(ImageElement image, String repetitionType) =>
- JS('CanvasPattern', '#.createPattern(#, #)', this, image, repetitionType);
+ CanvasPattern createPatternFromImage(
+ ImageElement image, String repetitionType) =>
+ JS('CanvasPattern', '#.createPattern(#, #)', this, image, repetitionType);
/**
* Draws an image from a CanvasImageSource to an area of this canvas.
@@ -2571,13 +2692,11 @@
void drawImageToRect(CanvasImageSource source, Rectangle destRect,
{Rectangle sourceRect}) {
if (sourceRect == null) {
- drawImageScaled(source,
- destRect.left,
- destRect.top,
- destRect.width,
- destRect.height);
+ drawImageScaled(
+ source, destRect.left, destRect.top, destRect.width, destRect.height);
} else {
- drawImageScaledFromSource(source,
+ drawImageScaledFromSource(
+ source,
sourceRect.left,
sourceRect.top,
sourceRect.width,
@@ -2620,7 +2739,7 @@
*/
@DomName('CanvasRenderingContext2D.drawImage')
@JSName('drawImage')
- void drawImage(CanvasImageSource source, num destX, num destY) native;
+ void drawImage(CanvasImageSource source, num destX, num destY) native ;
/**
* Draws an image from a CanvasImageSource to an area of this canvas.
@@ -2650,8 +2769,8 @@
*/
@DomName('CanvasRenderingContext2D.drawImage')
@JSName('drawImage')
- void drawImageScaled(CanvasImageSource source,
- num destX, num destY, num destWidth, num destHeight) native;
+ void drawImageScaled(CanvasImageSource source, num destX, num destY,
+ num destWidth, num destHeight) native ;
/**
* Draws an image from a CanvasImageSource to an area of this canvas.
@@ -2684,9 +2803,16 @@
*/
@DomName('CanvasRenderingContext2D.drawImage')
@JSName('drawImage')
- void drawImageScaledFromSource(CanvasImageSource source,
- num sourceX, num sourceY, num sourceWidth, num sourceHeight,
- num destX, num destY, num destWidth, num destHeight) native;
+ void drawImageScaledFromSource(
+ CanvasImageSource source,
+ num sourceX,
+ num sourceY,
+ num sourceWidth,
+ num sourceHeight,
+ num destX,
+ num destY,
+ num destWidth,
+ num destHeight) native ;
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@@ -2695,8 +2821,8 @@
@DomName('CanvasRenderingContext2D.lineDashOffset')
// TODO(14316): Firefox has this functionality with mozDashOffset, but it
// needs to be polyfilled.
- num get lineDashOffset => JS('num',
- '#.lineDashOffset || #.webkitLineDashOffset', this, this);
+ num get lineDashOffset =>
+ JS('num', '#.lineDashOffset || #.webkitLineDashOffset', this, this);
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@@ -2706,9 +2832,15 @@
// TODO(14316): Firefox has this functionality with mozDashOffset, but it
// needs to be polyfilled.
set lineDashOffset(num value) {
- JS('void',
- 'typeof #.lineDashOffset != "undefined" ? #.lineDashOffset = # : '
- '#.webkitLineDashOffset = #', this, this, value, this, value);
+ JS(
+ 'void',
+ 'typeof #.lineDashOffset != "undefined" ? #.lineDashOffset = # : '
+ '#.webkitLineDashOffset = #',
+ this,
+ this,
+ value,
+ this,
+ value);
}
@SupportedBrowser(SupportedBrowser.CHROME)
@@ -2723,7 +2855,7 @@
return JS('List<num>', '#.getLineDash()', this);
} else if (JS('bool', '!!#.webkitLineDash', this)) {
return JS('List<num>', '#.webkitLineDash', this);
- }
+ }
}
@SupportedBrowser(SupportedBrowser.CHROME)
@@ -2741,7 +2873,6 @@
}
}
-
/**
* Draws text to the canvas.
*
@@ -2780,13 +2911,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CharacterData')
@Native("CharacterData")
-class CharacterData extends Node implements NonDocumentTypeChildNode, ChildNode {
+class CharacterData extends Node
+ implements NonDocumentTypeChildNode, ChildNode {
// To suppress missing implicit constructor warnings.
- factory CharacterData._() { throw new UnsupportedError("Not supported"); }
+ factory CharacterData._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CharacterData.data')
@DocsEditable()
@@ -2798,35 +2931,35 @@
@DomName('CharacterData.appendData')
@DocsEditable()
- void appendData(String data) native;
+ void appendData(String data) native ;
@DomName('CharacterData.deleteData')
@DocsEditable()
- void deleteData(int offset, int count) native;
+ void deleteData(int offset, int count) native ;
@DomName('CharacterData.insertData')
@DocsEditable()
- void insertData(int offset, String data) native;
+ void insertData(int offset, String data) native ;
@DomName('CharacterData.replaceData')
@DocsEditable()
- void replaceData(int offset, int count, String data) native;
+ void replaceData(int offset, int count, String data) native ;
@DomName('CharacterData.substringData')
@DocsEditable()
- String substringData(int offset, int count) native;
+ String substringData(int offset, int count) native ;
// From ChildNode
@DomName('CharacterData.after')
@DocsEditable()
@Experimental() // untriaged
- void after(Object nodes) native;
+ void after(Object nodes) native ;
@DomName('CharacterData.before')
@DocsEditable()
@Experimental() // untriaged
- void before(Object nodes) native;
+ void before(Object nodes) native ;
// From NonDocumentTypeChildNode
@@ -2842,13 +2975,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('ChildNode')
@Experimental() // untriaged
abstract class ChildNode extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory ChildNode._() { throw new UnsupportedError("Not supported"); }
+ factory ChildNode._() {
+ throw new UnsupportedError("Not supported");
+ }
void after(Object nodes);
@@ -2860,27 +2994,29 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CHROMIUMValuebuffer')
@Experimental() // untriaged
@Native("CHROMIUMValuebuffer")
class ChromiumValuebuffer extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory ChromiumValuebuffer._() { throw new UnsupportedError("Not supported"); }
+ factory ChromiumValuebuffer._() {
+ throw new UnsupportedError("Not supported");
+ }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CircularGeofencingRegion')
@Experimental() // untriaged
@Native("CircularGeofencingRegion")
class CircularGeofencingRegion extends GeofencingRegion {
// To suppress missing implicit constructor warnings.
- factory CircularGeofencingRegion._() { throw new UnsupportedError("Not supported"); }
+ factory CircularGeofencingRegion._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CircularGeofencingRegion.CircularGeofencingRegion')
@DocsEditable()
@@ -2888,7 +3024,8 @@
var init_1 = convertDartToNative_Dictionary(init);
return CircularGeofencingRegion._create_1(init_1);
}
- static CircularGeofencingRegion _create_1(init) => JS('CircularGeofencingRegion', 'new CircularGeofencingRegion(#)', init);
+ static CircularGeofencingRegion _create_1(init) =>
+ JS('CircularGeofencingRegion', 'new CircularGeofencingRegion(#)', init);
@DomName('CircularGeofencingRegion.MAX_RADIUS')
@DocsEditable()
@@ -2919,14 +3056,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Client')
@Experimental() // untriaged
@Native("Client")
class Client extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory Client._() { throw new UnsupportedError("Not supported"); }
+ factory Client._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('Client.frameType')
@DocsEditable()
@@ -2946,7 +3084,8 @@
@DomName('Client.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) {
+ void postMessage(/*SerializedScriptValue*/ message,
+ [List<MessagePort> transfer]) {
if (transfer != null) {
var message_1 = convertDartToNative_SerializedScriptValue(message);
_postMessage_1(message_1, transfer);
@@ -2956,34 +3095,36 @@
_postMessage_2(message_1);
return;
}
+
@JSName('postMessage')
@DomName('Client.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void _postMessage_1(message, List<MessagePort> transfer) native;
+ void _postMessage_1(message, List<MessagePort> transfer) native ;
@JSName('postMessage')
@DomName('Client.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void _postMessage_2(message) native;
+ void _postMessage_2(message) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Clients')
@Experimental() // untriaged
@Native("Clients")
class Clients extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory Clients._() { throw new UnsupportedError("Not supported"); }
+ factory Clients._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('Clients.claim')
@DocsEditable()
@Experimental() // untriaged
- Future claim() native;
+ Future claim() native ;
@DomName('Clients.matchAll')
@DocsEditable()
@@ -2995,34 +3136,36 @@
}
return _matchAll_2();
}
+
@JSName('matchAll')
@DomName('Clients.matchAll')
@DocsEditable()
@Experimental() // untriaged
- Future _matchAll_1(options) native;
+ Future _matchAll_1(options) native ;
@JSName('matchAll')
@DomName('Clients.matchAll')
@DocsEditable()
@Experimental() // untriaged
- Future _matchAll_2() native;
+ Future _matchAll_2() native ;
@DomName('Clients.openWindow')
@DocsEditable()
@Experimental() // untriaged
- Future openWindow(String url) native;
+ Future openWindow(String url) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('ClipboardEvent')
@Experimental() // untriaged
@Native("ClipboardEvent")
class ClipboardEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory ClipboardEvent._() { throw new UnsupportedError("Not supported"); }
+ factory ClipboardEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('ClipboardEvent.clipboardData')
@DocsEditable()
@@ -3033,13 +3176,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CloseEvent')
@Native("CloseEvent")
class CloseEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory CloseEvent._() { throw new UnsupportedError("Not supported"); }
+ factory CloseEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CloseEvent.CloseEvent')
@DocsEditable()
@@ -3050,8 +3194,10 @@
}
return CloseEvent._create_2(type);
}
- static CloseEvent _create_1(type, eventInitDict) => JS('CloseEvent', 'new CloseEvent(#,#)', type, eventInitDict);
- static CloseEvent _create_2(type) => JS('CloseEvent', 'new CloseEvent(#)', type);
+ static CloseEvent _create_1(type, eventInitDict) =>
+ JS('CloseEvent', 'new CloseEvent(#,#)', type, eventInitDict);
+ static CloseEvent _create_2(type) =>
+ JS('CloseEvent', 'new CloseEvent(#)', type);
@DomName('CloseEvent.code')
@DocsEditable()
@@ -3069,7 +3215,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Comment')
@Native("Comment")
@@ -3081,7 +3226,9 @@
return JS('Comment', '#.createComment("")', document);
}
// To suppress missing implicit constructor warnings.
- factory Comment._() { throw new UnsupportedError("Not supported"); }
+ factory Comment._() {
+ throw new UnsupportedError("Not supported");
+ }
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -3089,13 +3236,15 @@
// WARNING: Do not edit - generated code.
-
@DomName('CompositionEvent')
@Native("CompositionEvent")
class CompositionEvent extends UIEvent {
factory CompositionEvent(String type,
- {bool canBubble: false, bool cancelable: false, Window view,
- String data, String locale}) {
+ {bool canBubble: false,
+ bool cancelable: false,
+ Window view,
+ String data,
+ String locale}) {
if (view == null) {
view = window;
}
@@ -3103,8 +3252,8 @@
if (Device.isFirefox) {
// Firefox requires the locale parameter that isn't supported elsewhere.
- JS('void', '#.initCompositionEvent(#, #, #, #, #, #)',
- e, type, canBubble, cancelable, view, data, locale);
+ JS('void', '#.initCompositionEvent(#, #, #, #, #, #)', e, type, canBubble,
+ cancelable, view, data, locale);
} else {
e._initCompositionEvent(type, canBubble, cancelable, view, data);
}
@@ -3112,7 +3261,6 @@
return e;
}
-
@DomName('CompositionEvent.CompositionEvent')
@DocsEditable()
factory CompositionEvent._(String type, [Map eventInitDict]) {
@@ -3122,8 +3270,10 @@
}
return CompositionEvent._create_2(type);
}
- static CompositionEvent _create_1(type, eventInitDict) => JS('CompositionEvent', 'new CompositionEvent(#,#)', type, eventInitDict);
- static CompositionEvent _create_2(type) => JS('CompositionEvent', 'new CompositionEvent(#)', type);
+ static CompositionEvent _create_1(type, eventInitDict) =>
+ JS('CompositionEvent', 'new CompositionEvent(#,#)', type, eventInitDict);
+ static CompositionEvent _create_2(type) =>
+ JS('CompositionEvent', 'new CompositionEvent(#)', type);
@DomName('CompositionEvent.data')
@DocsEditable()
@@ -3132,28 +3282,30 @@
@JSName('initCompositionEvent')
@DomName('CompositionEvent.initCompositionEvent')
@DocsEditable()
- void _initCompositionEvent(String type, bool bubbles, bool cancelable, Window view, String data) native;
-
+ void _initCompositionEvent(String type, bool bubbles, bool cancelable,
+ Window view, String data) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CompositorProxy')
@Experimental() // untriaged
@Native("CompositorProxy")
class CompositorProxy extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory CompositorProxy._() { throw new UnsupportedError("Not supported"); }
+ factory CompositorProxy._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CompositorProxy.CompositorProxy')
@DocsEditable()
factory CompositorProxy(Element element, List<String> attributeArray) {
return CompositorProxy._create_1(element, attributeArray);
}
- static CompositorProxy _create_1(element, attributeArray) => JS('CompositorProxy', 'new CompositorProxy(#,#)', element, attributeArray);
+ static CompositorProxy _create_1(element, attributeArray) => JS(
+ 'CompositorProxy', 'new CompositorProxy(#,#)', element, attributeArray);
@DomName('CompositorProxy.opacity')
@DocsEditable()
@@ -3178,47 +3330,52 @@
@DomName('CompositorProxy.disconnect')
@DocsEditable()
@Experimental() // untriaged
- void disconnect() native;
+ void disconnect() native ;
@DomName('CompositorProxy.supports')
@DocsEditable()
@Experimental() // untriaged
- bool supports(String attribute) native;
+ bool supports(String attribute) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CompositorWorker')
@Experimental() // untriaged
@Native("CompositorWorker")
class CompositorWorker extends EventTarget implements AbstractWorker {
// To suppress missing implicit constructor warnings.
- factory CompositorWorker._() { throw new UnsupportedError("Not supported"); }
+ factory CompositorWorker._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CompositorWorker.errorEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
+ static const EventStreamProvider<Event> errorEvent =
+ const EventStreamProvider<Event>('error');
@DomName('CompositorWorker.messageEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
+ static const EventStreamProvider<MessageEvent> messageEvent =
+ const EventStreamProvider<MessageEvent>('message');
@DomName('CompositorWorker.CompositorWorker')
@DocsEditable()
factory CompositorWorker(String scriptUrl) {
return CompositorWorker._create_1(scriptUrl);
}
- static CompositorWorker _create_1(scriptUrl) => JS('CompositorWorker', 'new CompositorWorker(#)', scriptUrl);
+ static CompositorWorker _create_1(scriptUrl) =>
+ JS('CompositorWorker', 'new CompositorWorker(#)', scriptUrl);
@DomName('CompositorWorker.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) {
+ void postMessage(/*SerializedScriptValue*/ message,
+ [List<MessagePort> transfer]) {
if (transfer != null) {
var message_1 = convertDartToNative_SerializedScriptValue(message);
_postMessage_1(message_1, transfer);
@@ -3228,21 +3385,22 @@
_postMessage_2(message_1);
return;
}
+
@JSName('postMessage')
@DomName('CompositorWorker.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void _postMessage_1(message, List<MessagePort> transfer) native;
+ void _postMessage_1(message, List<MessagePort> transfer) native ;
@JSName('postMessage')
@DomName('CompositorWorker.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void _postMessage_2(message) native;
+ void _postMessage_2(message) native ;
@DomName('CompositorWorker.terminate')
@DocsEditable()
@Experimental() // untriaged
- void terminate() native;
+ void terminate() native ;
@DomName('CompositorWorker.onerror')
@DocsEditable()
@@ -3258,24 +3416,26 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CompositorWorkerGlobalScope')
@Experimental() // untriaged
@Native("CompositorWorkerGlobalScope")
class CompositorWorkerGlobalScope extends WorkerGlobalScope {
// To suppress missing implicit constructor warnings.
- factory CompositorWorkerGlobalScope._() { throw new UnsupportedError("Not supported"); }
+ factory CompositorWorkerGlobalScope._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CompositorWorkerGlobalScope.messageEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
+ static const EventStreamProvider<MessageEvent> messageEvent =
+ const EventStreamProvider<MessageEvent>('message');
@DomName('CompositorWorkerGlobalScope.cancelAnimationFrame')
@DocsEditable()
@Experimental() // untriaged
- void cancelAnimationFrame(int handle) native;
+ void cancelAnimationFrame(int handle) native ;
@DomName('CompositorWorkerGlobalScope.postMessage')
@DocsEditable()
@@ -3290,21 +3450,22 @@
_postMessage_2(message_1);
return;
}
+
@JSName('postMessage')
@DomName('CompositorWorkerGlobalScope.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void _postMessage_1(message, List<MessagePort> transfer) native;
+ void _postMessage_1(message, List<MessagePort> transfer) native ;
@JSName('postMessage')
@DomName('CompositorWorkerGlobalScope.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void _postMessage_2(message) native;
+ void _postMessage_2(message) native ;
@DomName('CompositorWorkerGlobalScope.requestAnimationFrame')
@DocsEditable()
@Experimental() // untriaged
- int requestAnimationFrame(FrameRequestCallback callback) native;
+ int requestAnimationFrame(FrameRequestCallback callback) native ;
@DomName('CompositorWorkerGlobalScope.onmessage')
@DocsEditable()
@@ -3315,10 +3476,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DomName('Console')
class Console {
-
const Console._safe();
static const Console _safeConsole = const Console._safe();
@@ -3326,130 +3485,132 @@
bool get _isConsoleDefined => JS('bool', 'typeof console != "undefined"');
@DomName('Console.memory')
- MemoryInfo get memory => _isConsoleDefined ?
- JS('MemoryInfo', 'console.memory') : null;
+ MemoryInfo get memory =>
+ _isConsoleDefined ? JS('MemoryInfo', 'console.memory') : null;
@DomName('Console.assertCondition')
- void assertCondition(bool condition, Object arg) => _isConsoleDefined ?
- JS('void', 'console.assertCondition(#, #)', condition, arg) : null;
+ void assertCondition(bool condition, Object arg) => _isConsoleDefined
+ ? JS('void', 'console.assertCondition(#, #)', condition, arg)
+ : null;
@DomName('Console.clear')
- void clear(Object arg) => _isConsoleDefined ?
- JS('void', 'console.clear(#)', arg) : null;
+ void clear(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.clear(#)', arg) : null;
@DomName('Console.count')
- void count(Object arg) => _isConsoleDefined ?
- JS('void', 'console.count(#)', arg) : null;
+ void count(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.count(#)', arg) : null;
@DomName('Console.debug')
- void debug(Object arg) => _isConsoleDefined ?
- JS('void', 'console.debug(#)', arg) : null;
+ void debug(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.debug(#)', arg) : null;
@DomName('Console.dir')
- void dir(Object arg) => _isConsoleDefined ?
- JS('void', 'console.dir(#)', arg) : null;
+ void dir(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.dir(#)', arg) : null;
@DomName('Console.dirxml')
- void dirxml(Object arg) => _isConsoleDefined ?
- JS('void', 'console.dirxml(#)', arg) : null;
+ void dirxml(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.dirxml(#)', arg) : null;
@DomName('Console.error')
- void error(Object arg) => _isConsoleDefined ?
- JS('void', 'console.error(#)', arg) : null;
+ void error(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.error(#)', arg) : null;
@DomName('Console.group')
- void group(Object arg) => _isConsoleDefined ?
- JS('void', 'console.group(#)', arg) : null;
+ void group(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.group(#)', arg) : null;
@DomName('Console.groupCollapsed')
- void groupCollapsed(Object arg) => _isConsoleDefined ?
- JS('void', 'console.groupCollapsed(#)', arg) : null;
+ void groupCollapsed(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.groupCollapsed(#)', arg) : null;
@DomName('Console.groupEnd')
- void groupEnd() => _isConsoleDefined ?
- JS('void', 'console.groupEnd()') : null;
+ void groupEnd() =>
+ _isConsoleDefined ? JS('void', 'console.groupEnd()') : null;
@DomName('Console.info')
- void info(Object arg) => _isConsoleDefined ?
- JS('void', 'console.info(#)', arg) : null;
+ void info(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.info(#)', arg) : null;
@DomName('Console.log')
- void log(Object arg) => _isConsoleDefined ?
- JS('void', 'console.log(#)', arg) : null;
+ void log(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.log(#)', arg) : null;
@DomName('Console.markTimeline')
- void markTimeline(Object arg) => _isConsoleDefined ?
- JS('void', 'console.markTimeline(#)', arg) : null;
+ void markTimeline(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.markTimeline(#)', arg) : null;
@DomName('Console.profile')
- void profile(String title) => _isConsoleDefined ?
- JS('void', 'console.profile(#)', title) : null;
+ void profile(String title) =>
+ _isConsoleDefined ? JS('void', 'console.profile(#)', title) : null;
@DomName('Console.profileEnd')
- void profileEnd(String title) => _isConsoleDefined ?
- JS('void', 'console.profileEnd(#)', title) : null;
+ void profileEnd(String title) =>
+ _isConsoleDefined ? JS('void', 'console.profileEnd(#)', title) : null;
@DomName('Console.table')
- void table(Object arg) => _isConsoleDefined ?
- JS('void', 'console.table(#)', arg) : null;
+ void table(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.table(#)', arg) : null;
@DomName('Console.time')
- void time(String title) => _isConsoleDefined ?
- JS('void', 'console.time(#)', title) : null;
+ void time(String title) =>
+ _isConsoleDefined ? JS('void', 'console.time(#)', title) : null;
@DomName('Console.timeEnd')
- void timeEnd(String title) => _isConsoleDefined ?
- JS('void', 'console.timeEnd(#)', title) : null;
+ void timeEnd(String title) =>
+ _isConsoleDefined ? JS('void', 'console.timeEnd(#)', title) : null;
@DomName('Console.timeStamp')
- void timeStamp(Object arg) => _isConsoleDefined ?
- JS('void', 'console.timeStamp(#)', arg) : null;
+ void timeStamp(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.timeStamp(#)', arg) : null;
@DomName('Console.trace')
- void trace(Object arg) => _isConsoleDefined ?
- JS('void', 'console.trace(#)', arg) : null;
+ void trace(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.trace(#)', arg) : null;
@DomName('Console.warn')
- void warn(Object arg) => _isConsoleDefined ?
- JS('void', 'console.warn(#)', arg) : null;
+ void warn(Object arg) =>
+ _isConsoleDefined ? JS('void', 'console.warn(#)', arg) : null;
// To suppress missing implicit constructor warnings.
- factory Console._() { throw new UnsupportedError("Not supported"); }
-
+ factory Console._() {
+ throw new UnsupportedError("Not supported");
+ }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('ConsoleBase')
@Experimental() // untriaged
@Native("ConsoleBase")
class ConsoleBase extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory ConsoleBase._() { throw new UnsupportedError("Not supported"); }
+ factory ConsoleBase._() {
+ throw new UnsupportedError("Not supported");
+ }
@JSName('assert')
@DomName('ConsoleBase.assert')
@DocsEditable()
@Experimental() // untriaged
- void assertCondition(bool condition, Object arg) native;
+ void assertCondition(bool condition, Object arg) native ;
@DomName('ConsoleBase.timeline')
@DocsEditable()
@Experimental() // untriaged
- void timeline(String title) native;
+ void timeline(String title) native ;
@DomName('ConsoleBase.timelineEnd')
@DocsEditable()
@Experimental() // untriaged
- void timelineEnd(String title) native;
+ void timelineEnd(String title) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLContentElement')
@SupportedBrowser(SupportedBrowser.CHROME, '26')
@@ -3458,7 +3619,9 @@
@Native("HTMLContentElement")
class ContentElement extends HtmlElement {
// To suppress missing implicit constructor warnings.
- factory ContentElement._() { throw new UnsupportedError("Not supported"); }
+ factory ContentElement._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('HTMLContentElement.HTMLContentElement')
@DocsEditable()
@@ -3481,19 +3644,20 @@
@DocsEditable()
@Returns('NodeList')
@Creates('NodeList')
- List<Node> getDistributedNodes() native;
+ List<Node> getDistributedNodes() native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Coordinates')
@Native("Coordinates")
class Coordinates extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory Coordinates._() { throw new UnsupportedError("Not supported"); }
+ factory Coordinates._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('Coordinates.accuracy')
@DocsEditable()
@@ -3527,14 +3691,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Credential')
@Experimental() // untriaged
@Native("Credential")
class Credential extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory Credential._() { throw new UnsupportedError("Not supported"); }
+ factory Credential._() {
+ throw new UnsupportedError("Not supported");
+ }
@JSName('iconURL')
@DomName('Credential.iconURL')
@@ -3561,19 +3726,20 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CredentialsContainer')
@Experimental() // untriaged
@Native("CredentialsContainer")
class CredentialsContainer extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory CredentialsContainer._() { throw new UnsupportedError("Not supported"); }
+ factory CredentialsContainer._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CredentialsContainer.notifySignedIn')
@DocsEditable()
@Experimental() // untriaged
- Future notifySignedIn(Credential credential) native;
+ Future notifySignedIn(Credential credential) native ;
@DomName('CredentialsContainer.request')
@DocsEditable()
@@ -3585,34 +3751,36 @@
}
return _request_2();
}
+
@JSName('request')
@DomName('CredentialsContainer.request')
@DocsEditable()
@Experimental() // untriaged
- Future _request_1(options) native;
+ Future _request_1(options) native ;
@JSName('request')
@DomName('CredentialsContainer.request')
@DocsEditable()
@Experimental() // untriaged
- Future _request_2() native;
+ Future _request_2() native ;
@DomName('CredentialsContainer.requireUserMediation')
@DocsEditable()
@Experimental() // untriaged
- Future requireUserMediation() native;
+ Future requireUserMediation() native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CrossOriginConnectEvent')
@Experimental() // untriaged
@Native("CrossOriginConnectEvent")
class CrossOriginConnectEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory CrossOriginConnectEvent._() { throw new UnsupportedError("Not supported"); }
+ factory CrossOriginConnectEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CrossOriginConnectEvent.client')
@DocsEditable()
@@ -3622,20 +3790,21 @@
@DomName('CrossOriginConnectEvent.acceptConnection')
@DocsEditable()
@Experimental() // untriaged
- void acceptConnection(Future shouldAccept) native;
+ void acceptConnection(Future shouldAccept) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CrossOriginServiceWorkerClient')
@Experimental() // untriaged
@Native("CrossOriginServiceWorkerClient")
class CrossOriginServiceWorkerClient extends EventTarget {
// To suppress missing implicit constructor warnings.
- factory CrossOriginServiceWorkerClient._() { throw new UnsupportedError("Not supported"); }
+ factory CrossOriginServiceWorkerClient._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CrossOriginServiceWorkerClient.origin')
@DocsEditable()
@@ -3650,7 +3819,8 @@
@DomName('CrossOriginServiceWorkerClient.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) {
+ void postMessage(/*SerializedScriptValue*/ message,
+ [List<MessagePort> transfer]) {
if (transfer != null) {
var message_1 = convertDartToNative_SerializedScriptValue(message);
_postMessage_1(message_1, transfer);
@@ -3660,22 +3830,22 @@
_postMessage_2(message_1);
return;
}
+
@JSName('postMessage')
@DomName('CrossOriginServiceWorkerClient.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void _postMessage_1(message, List<MessagePort> transfer) native;
+ void _postMessage_1(message, List<MessagePort> transfer) native ;
@JSName('postMessage')
@DomName('CrossOriginServiceWorkerClient.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void _postMessage_2(message) native;
+ void _postMessage_2(message) native ;
}
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DomName('Crypto')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@@ -3683,16 +3853,18 @@
// http://www.w3.org/TR/WebCryptoAPI/
@Native("Crypto")
class Crypto extends Interceptor {
-
TypedData getRandomValues(TypedData array) {
return _getRandomValues(array);
}
// To suppress missing implicit constructor warnings.
- factory Crypto._() { throw new UnsupportedError("Not supported"); }
+ factory Crypto._() {
+ throw new UnsupportedError("Not supported");
+ }
/// Checks if this type is supported on the current platform.
- static bool get supported => JS('bool', '!!(window.crypto && window.crypto.getRandomValues)');
+ static bool get supported =>
+ JS('bool', '!!(window.crypto && window.crypto.getRandomValues)');
@DomName('Crypto.subtle')
@DocsEditable()
@@ -3704,21 +3876,21 @@
@DocsEditable()
@Creates('TypedData')
@Returns('TypedData|Null')
- TypedData _getRandomValues(TypedData array) native;
-
+ TypedData _getRandomValues(TypedData array) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CryptoKey')
@Experimental() // untriaged
@Native("CryptoKey")
class CryptoKey extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory CryptoKey._() { throw new UnsupportedError("Not supported"); }
+ factory CryptoKey._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CryptoKey.algorithm')
@DocsEditable()
@@ -3745,7 +3917,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSS')
// http://www.w3.org/TR/css3-conditional/#the-css-interface
@@ -3753,22 +3924,23 @@
@Native("CSS")
class Css extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory Css._() { throw new UnsupportedError("Not supported"); }
+ factory Css._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSS.supports')
@DocsEditable()
- static bool supports(String property, String value) native;
+ static bool supports(String property, String value) native ;
@JSName('supports')
@DomName('CSS.supports')
@DocsEditable()
- static bool supportsCondition(String conditionText) native;
+ static bool supportsCondition(String conditionText) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSCharsetRule')
// http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface
@@ -3776,7 +3948,9 @@
@Native("CSSCharsetRule")
class CssCharsetRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssCharsetRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssCharsetRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSCharsetRule.encoding')
@DocsEditable()
@@ -3786,13 +3960,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSFontFaceRule')
@Native("CSSFontFaceRule")
class CssFontFaceRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssFontFaceRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSFontFaceRule.style')
@DocsEditable()
@@ -3802,14 +3977,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSGroupingRule')
@Experimental() // untriaged
@Native("CSSGroupingRule")
class CssGroupingRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssGroupingRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssGroupingRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSGroupingRule.cssRules')
@DocsEditable()
@@ -3821,24 +3997,25 @@
@DomName('CSSGroupingRule.deleteRule')
@DocsEditable()
@Experimental() // untriaged
- void deleteRule(int index) native;
+ void deleteRule(int index) native ;
@DomName('CSSGroupingRule.insertRule')
@DocsEditable()
@Experimental() // untriaged
- int insertRule(String rule, int index) native;
+ int insertRule(String rule, int index) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSImportRule')
@Native("CSSImportRule")
class CssImportRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssImportRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssImportRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSImportRule.href')
@DocsEditable()
@@ -3856,14 +4033,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSKeyframeRule')
@Experimental() // untriaged
@Native("CSSKeyframeRule,MozCSSKeyframeRule,WebKitCSSKeyframeRule")
class CssKeyframeRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssKeyframeRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssKeyframeRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSKeyframeRule.keyText')
@DocsEditable()
@@ -3879,14 +4057,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSKeyframesRule')
@Experimental() // untriaged
@Native("CSSKeyframesRule,MozCSSKeyframesRule,WebKitCSSKeyframesRule")
class CssKeyframesRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssKeyframesRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssKeyframesRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSKeyframesRule.cssRules')
@DocsEditable()
@@ -3903,34 +4082,35 @@
@DomName('CSSKeyframesRule.__getter__')
@DocsEditable()
@Experimental() // untriaged
- CssKeyframeRule __getter__(int index) native;
+ CssKeyframeRule __getter__(int index) native ;
@DomName('CSSKeyframesRule.appendRule')
@DocsEditable()
@Experimental() // untriaged
- void appendRule(String rule) native;
+ void appendRule(String rule) native ;
@DomName('CSSKeyframesRule.deleteRule')
@DocsEditable()
@Experimental() // untriaged
- void deleteRule(String select) native;
+ void deleteRule(String select) native ;
@DomName('CSSKeyframesRule.findRule')
@DocsEditable()
@Experimental() // untriaged
- CssKeyframeRule findRule(String select) native;
+ CssKeyframeRule findRule(String select) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSMediaRule')
@Native("CSSMediaRule")
class CssMediaRule extends CssGroupingRule {
// To suppress missing implicit constructor warnings.
- factory CssMediaRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssMediaRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSMediaRule.media')
@DocsEditable()
@@ -3940,13 +4120,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSPageRule')
@Native("CSSPageRule")
class CssPageRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssPageRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssPageRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSPageRule.selectorText')
@DocsEditable()
@@ -3960,13 +4141,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSRule')
@Native("CSSRule")
class CssRule extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory CssRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSRule.CHARSET_RULE')
@DocsEditable()
@@ -4050,11 +4232,9 @@
// Source of CSS properties:
// CSSPropertyNames.in
-
@DomName('CSSStyleDeclaration')
@Native("CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties")
-class CssStyleDeclaration extends Interceptor with
- CssStyleDeclarationBase {
+class CssStyleDeclaration extends Interceptor with CssStyleDeclarationBase {
factory CssStyleDeclaration() => new CssStyleDeclaration.css('');
factory CssStyleDeclaration.css(String css) {
@@ -4093,11 +4273,10 @@
return JS('bool', '# in #', propertyName, this);
}
-
@DomName('CSSStyleDeclaration.setProperty')
void setProperty(String propertyName, String value, [String priority]) {
- return _setPropertyHelper(_browserPropertyName(propertyName),
- value, priority);
+ return _setPropertyHelper(
+ _browserPropertyName(propertyName), value, priority);
}
String _browserPropertyName(String propertyName) {
@@ -4114,19 +4293,21 @@
static final _propertyCache = JS('', '{}');
static String _readCache(String key) =>
- JS('String|Null', '#[#]', _propertyCache, key);
+ JS('String|Null', '#[#]', _propertyCache, key);
static void _writeCache(String key, String value) {
JS('void', '#[#] = #', _propertyCache, key, value);
}
static String _camelCase(String hyphenated) {
var replacedMs = JS('String', r'#.replace(/^-ms-/, "ms-")', hyphenated);
- return JS('String',
+ return JS(
+ 'String',
r'#.replace(/-([\da-z])/ig, (_, letter) => letter.toUpperCase())',
replacedMs);
}
- void _setPropertyHelper(String propertyName, String value, [String priority]) {
+ void _setPropertyHelper(String propertyName, String value,
+ [String priority]) {
if (value == null) value = '';
if (priority == null) priority = '';
JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority);
@@ -4138,8 +4319,11 @@
static bool get supportsTransitions {
return document.body.style.supportsProperty('transition');
}
+
// To suppress missing implicit constructor warnings.
- factory CssStyleDeclaration._() { throw new UnsupportedError("Not supported"); }
+ factory CssStyleDeclaration._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSStyleDeclaration.cssText')
@DocsEditable()
@@ -4155,21 +4339,20 @@
@DomName('CSSStyleDeclaration.getPropertyPriority')
@DocsEditable()
- String getPropertyPriority(String property) native;
+ String getPropertyPriority(String property) native ;
@JSName('getPropertyValue')
@DomName('CSSStyleDeclaration.getPropertyValue')
@DocsEditable()
- String _getPropertyValue(String property) native;
+ String _getPropertyValue(String property) native ;
@DomName('CSSStyleDeclaration.item')
@DocsEditable()
- String item(int index) native;
+ String item(int index) native ;
@DomName('CSSStyleDeclaration.removeProperty')
@DocsEditable()
- String removeProperty(String property) native;
-
+ String removeProperty(String property) native ;
/** Gets the value of "background" */
String get background => this._background;
@@ -4178,10 +4361,11 @@
set background(String value) {
_background = value == null ? '' : value;
}
+
@Returns('String')
@JSName('background')
String _background;
-
+
/** Gets the value of "background-attachment" */
String get backgroundAttachment => this._backgroundAttachment;
@@ -4189,10 +4373,11 @@
set backgroundAttachment(String value) {
_backgroundAttachment = value == null ? '' : value;
}
+
@Returns('String')
@JSName('backgroundAttachment')
String _backgroundAttachment;
-
+
/** Gets the value of "background-color" */
String get backgroundColor => this._backgroundColor;
@@ -4200,10 +4385,11 @@
set backgroundColor(String value) {
_backgroundColor = value == null ? '' : value;
}
+
@Returns('String')
@JSName('backgroundColor')
String _backgroundColor;
-
+
/** Gets the value of "background-image" */
String get backgroundImage => this._backgroundImage;
@@ -4211,10 +4397,11 @@
set backgroundImage(String value) {
_backgroundImage = value == null ? '' : value;
}
+
@Returns('String')
@JSName('backgroundImage')
String _backgroundImage;
-
+
/** Gets the value of "background-position" */
String get backgroundPosition => this._backgroundPosition;
@@ -4222,10 +4409,11 @@
set backgroundPosition(String value) {
_backgroundPosition = value == null ? '' : value;
}
+
@Returns('String')
@JSName('backgroundPosition')
String _backgroundPosition;
-
+
/** Gets the value of "background-repeat" */
String get backgroundRepeat => this._backgroundRepeat;
@@ -4233,10 +4421,11 @@
set backgroundRepeat(String value) {
_backgroundRepeat = value == null ? '' : value;
}
+
@Returns('String')
@JSName('backgroundRepeat')
String _backgroundRepeat;
-
+
/** Gets the value of "border" */
String get border => this._border;
@@ -4244,10 +4433,11 @@
set border(String value) {
_border = value == null ? '' : value;
}
+
@Returns('String')
@JSName('border')
String _border;
-
+
/** Gets the value of "border-bottom" */
String get borderBottom => this._borderBottom;
@@ -4255,10 +4445,11 @@
set borderBottom(String value) {
_borderBottom = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderBottom')
String _borderBottom;
-
+
/** Gets the value of "border-bottom-color" */
String get borderBottomColor => this._borderBottomColor;
@@ -4266,10 +4457,11 @@
set borderBottomColor(String value) {
_borderBottomColor = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderBottomColor')
String _borderBottomColor;
-
+
/** Gets the value of "border-bottom-style" */
String get borderBottomStyle => this._borderBottomStyle;
@@ -4277,10 +4469,11 @@
set borderBottomStyle(String value) {
_borderBottomStyle = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderBottomStyle')
String _borderBottomStyle;
-
+
/** Gets the value of "border-bottom-width" */
String get borderBottomWidth => this._borderBottomWidth;
@@ -4288,10 +4481,11 @@
set borderBottomWidth(String value) {
_borderBottomWidth = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderBottomWidth')
String _borderBottomWidth;
-
+
/** Gets the value of "border-collapse" */
String get borderCollapse => this._borderCollapse;
@@ -4299,10 +4493,11 @@
set borderCollapse(String value) {
_borderCollapse = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderCollapse')
String _borderCollapse;
-
+
/** Gets the value of "border-color" */
String get borderColor => this._borderColor;
@@ -4310,10 +4505,11 @@
set borderColor(String value) {
_borderColor = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderColor')
String _borderColor;
-
+
/** Gets the value of "border-left" */
String get borderLeft => this._borderLeft;
@@ -4321,10 +4517,11 @@
set borderLeft(String value) {
_borderLeft = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderLeft')
String _borderLeft;
-
+
/** Gets the value of "border-left-color" */
String get borderLeftColor => this._borderLeftColor;
@@ -4332,10 +4529,11 @@
set borderLeftColor(String value) {
_borderLeftColor = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderLeftColor')
String _borderLeftColor;
-
+
/** Gets the value of "border-left-style" */
String get borderLeftStyle => this._borderLeftStyle;
@@ -4343,10 +4541,11 @@
set borderLeftStyle(String value) {
_borderLeftStyle = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderLeftStyle')
String _borderLeftStyle;
-
+
/** Gets the value of "border-left-width" */
String get borderLeftWidth => this._borderLeftWidth;
@@ -4354,10 +4553,11 @@
set borderLeftWidth(String value) {
_borderLeftWidth = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderLeftWidth')
String _borderLeftWidth;
-
+
/** Gets the value of "border-right" */
String get borderRight => this._borderRight;
@@ -4365,10 +4565,11 @@
set borderRight(String value) {
_borderRight = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderRight')
String _borderRight;
-
+
/** Gets the value of "border-right-color" */
String get borderRightColor => this._borderRightColor;
@@ -4376,10 +4577,11 @@
set borderRightColor(String value) {
_borderRightColor = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderRightColor')
String _borderRightColor;
-
+
/** Gets the value of "border-right-style" */
String get borderRightStyle => this._borderRightStyle;
@@ -4387,10 +4589,11 @@
set borderRightStyle(String value) {
_borderRightStyle = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderRightStyle')
String _borderRightStyle;
-
+
/** Gets the value of "border-right-width" */
String get borderRightWidth => this._borderRightWidth;
@@ -4398,10 +4601,11 @@
set borderRightWidth(String value) {
_borderRightWidth = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderRightWidth')
String _borderRightWidth;
-
+
/** Gets the value of "border-spacing" */
String get borderSpacing => this._borderSpacing;
@@ -4409,10 +4613,11 @@
set borderSpacing(String value) {
_borderSpacing = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderSpacing')
String _borderSpacing;
-
+
/** Gets the value of "border-style" */
String get borderStyle => this._borderStyle;
@@ -4420,10 +4625,11 @@
set borderStyle(String value) {
_borderStyle = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderStyle')
String _borderStyle;
-
+
/** Gets the value of "border-top" */
String get borderTop => this._borderTop;
@@ -4431,10 +4637,11 @@
set borderTop(String value) {
_borderTop = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderTop')
String _borderTop;
-
+
/** Gets the value of "border-top-color" */
String get borderTopColor => this._borderTopColor;
@@ -4442,10 +4649,11 @@
set borderTopColor(String value) {
_borderTopColor = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderTopColor')
String _borderTopColor;
-
+
/** Gets the value of "border-top-style" */
String get borderTopStyle => this._borderTopStyle;
@@ -4453,10 +4661,11 @@
set borderTopStyle(String value) {
_borderTopStyle = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderTopStyle')
String _borderTopStyle;
-
+
/** Gets the value of "border-top-width" */
String get borderTopWidth => this._borderTopWidth;
@@ -4464,10 +4673,11 @@
set borderTopWidth(String value) {
_borderTopWidth = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderTopWidth')
String _borderTopWidth;
-
+
/** Gets the value of "border-width" */
String get borderWidth => this._borderWidth;
@@ -4475,10 +4685,11 @@
set borderWidth(String value) {
_borderWidth = value == null ? '' : value;
}
+
@Returns('String')
@JSName('borderWidth')
String _borderWidth;
-
+
/** Gets the value of "bottom" */
String get bottom => this._bottom;
@@ -4486,10 +4697,11 @@
set bottom(String value) {
_bottom = value == null ? '' : value;
}
+
@Returns('String')
@JSName('bottom')
String _bottom;
-
+
/** Gets the value of "caption-side" */
String get captionSide => this._captionSide;
@@ -4497,10 +4709,11 @@
set captionSide(String value) {
_captionSide = value == null ? '' : value;
}
+
@Returns('String')
@JSName('captionSide')
String _captionSide;
-
+
/** Gets the value of "clear" */
String get clear => this._clear;
@@ -4508,10 +4721,11 @@
set clear(String value) {
_clear = value == null ? '' : value;
}
+
@Returns('String')
@JSName('clear')
String _clear;
-
+
/** Gets the value of "clip" */
String get clip => this._clip;
@@ -4519,10 +4733,11 @@
set clip(String value) {
_clip = value == null ? '' : value;
}
+
@Returns('String')
@JSName('clip')
String _clip;
-
+
/** Gets the value of "color" */
String get color => this._color;
@@ -4530,10 +4745,11 @@
set color(String value) {
_color = value == null ? '' : value;
}
+
@Returns('String')
@JSName('color')
String _color;
-
+
/** Gets the value of "content" */
String get content => this._content;
@@ -4541,10 +4757,11 @@
set content(String value) {
_content = value == null ? '' : value;
}
+
@Returns('String')
@JSName('content')
String _content;
-
+
/** Gets the value of "cursor" */
String get cursor => this._cursor;
@@ -4552,10 +4769,11 @@
set cursor(String value) {
_cursor = value == null ? '' : value;
}
+
@Returns('String')
@JSName('cursor')
String _cursor;
-
+
/** Gets the value of "direction" */
String get direction => this._direction;
@@ -4563,10 +4781,11 @@
set direction(String value) {
_direction = value == null ? '' : value;
}
+
@Returns('String')
@JSName('direction')
String _direction;
-
+
/** Gets the value of "display" */
String get display => this._display;
@@ -4574,10 +4793,11 @@
set display(String value) {
_display = value == null ? '' : value;
}
+
@Returns('String')
@JSName('display')
String _display;
-
+
/** Gets the value of "empty-cells" */
String get emptyCells => this._emptyCells;
@@ -4585,10 +4805,11 @@
set emptyCells(String value) {
_emptyCells = value == null ? '' : value;
}
+
@Returns('String')
@JSName('emptyCells')
String _emptyCells;
-
+
/** Gets the value of "font" */
String get font => this._font;
@@ -4596,10 +4817,11 @@
set font(String value) {
_font = value == null ? '' : value;
}
+
@Returns('String')
@JSName('font')
String _font;
-
+
/** Gets the value of "font-family" */
String get fontFamily => this._fontFamily;
@@ -4607,10 +4829,11 @@
set fontFamily(String value) {
_fontFamily = value == null ? '' : value;
}
+
@Returns('String')
@JSName('fontFamily')
String _fontFamily;
-
+
/** Gets the value of "font-size" */
String get fontSize => this._fontSize;
@@ -4618,10 +4841,11 @@
set fontSize(String value) {
_fontSize = value == null ? '' : value;
}
+
@Returns('String')
@JSName('fontSize')
String _fontSize;
-
+
/** Gets the value of "font-style" */
String get fontStyle => this._fontStyle;
@@ -4629,10 +4853,11 @@
set fontStyle(String value) {
_fontStyle = value == null ? '' : value;
}
+
@Returns('String')
@JSName('fontStyle')
String _fontStyle;
-
+
/** Gets the value of "font-variant" */
String get fontVariant => this._fontVariant;
@@ -4640,10 +4865,11 @@
set fontVariant(String value) {
_fontVariant = value == null ? '' : value;
}
+
@Returns('String')
@JSName('fontVariant')
String _fontVariant;
-
+
/** Gets the value of "font-weight" */
String get fontWeight => this._fontWeight;
@@ -4651,10 +4877,11 @@
set fontWeight(String value) {
_fontWeight = value == null ? '' : value;
}
+
@Returns('String')
@JSName('fontWeight')
String _fontWeight;
-
+
/** Gets the value of "height" */
String get height => this._height;
@@ -4662,10 +4889,11 @@
set height(String value) {
_height = value == null ? '' : value;
}
+
@Returns('String')
@JSName('height')
String _height;
-
+
/** Gets the value of "left" */
String get left => this._left;
@@ -4673,10 +4901,11 @@
set left(String value) {
_left = value == null ? '' : value;
}
+
@Returns('String')
@JSName('left')
String _left;
-
+
/** Gets the value of "letter-spacing" */
String get letterSpacing => this._letterSpacing;
@@ -4684,10 +4913,11 @@
set letterSpacing(String value) {
_letterSpacing = value == null ? '' : value;
}
+
@Returns('String')
@JSName('letterSpacing')
String _letterSpacing;
-
+
/** Gets the value of "line-height" */
String get lineHeight => this._lineHeight;
@@ -4695,10 +4925,11 @@
set lineHeight(String value) {
_lineHeight = value == null ? '' : value;
}
+
@Returns('String')
@JSName('lineHeight')
String _lineHeight;
-
+
/** Gets the value of "list-style" */
String get listStyle => this._listStyle;
@@ -4706,10 +4937,11 @@
set listStyle(String value) {
_listStyle = value == null ? '' : value;
}
+
@Returns('String')
@JSName('listStyle')
String _listStyle;
-
+
/** Gets the value of "list-style-image" */
String get listStyleImage => this._listStyleImage;
@@ -4717,10 +4949,11 @@
set listStyleImage(String value) {
_listStyleImage = value == null ? '' : value;
}
+
@Returns('String')
@JSName('listStyleImage')
String _listStyleImage;
-
+
/** Gets the value of "list-style-position" */
String get listStylePosition => this._listStylePosition;
@@ -4728,10 +4961,11 @@
set listStylePosition(String value) {
_listStylePosition = value == null ? '' : value;
}
+
@Returns('String')
@JSName('listStylePosition')
String _listStylePosition;
-
+
/** Gets the value of "list-style-type" */
String get listStyleType => this._listStyleType;
@@ -4739,10 +4973,11 @@
set listStyleType(String value) {
_listStyleType = value == null ? '' : value;
}
+
@Returns('String')
@JSName('listStyleType')
String _listStyleType;
-
+
/** Gets the value of "margin" */
String get margin => this._margin;
@@ -4750,10 +4985,11 @@
set margin(String value) {
_margin = value == null ? '' : value;
}
+
@Returns('String')
@JSName('margin')
String _margin;
-
+
/** Gets the value of "margin-bottom" */
String get marginBottom => this._marginBottom;
@@ -4761,10 +4997,11 @@
set marginBottom(String value) {
_marginBottom = value == null ? '' : value;
}
+
@Returns('String')
@JSName('marginBottom')
String _marginBottom;
-
+
/** Gets the value of "margin-left" */
String get marginLeft => this._marginLeft;
@@ -4772,10 +5009,11 @@
set marginLeft(String value) {
_marginLeft = value == null ? '' : value;
}
+
@Returns('String')
@JSName('marginLeft')
String _marginLeft;
-
+
/** Gets the value of "margin-right" */
String get marginRight => this._marginRight;
@@ -4783,10 +5021,11 @@
set marginRight(String value) {
_marginRight = value == null ? '' : value;
}
+
@Returns('String')
@JSName('marginRight')
String _marginRight;
-
+
/** Gets the value of "margin-top" */
String get marginTop => this._marginTop;
@@ -4794,10 +5033,11 @@
set marginTop(String value) {
_marginTop = value == null ? '' : value;
}
+
@Returns('String')
@JSName('marginTop')
String _marginTop;
-
+
/** Gets the value of "max-height" */
String get maxHeight => this._maxHeight;
@@ -4805,10 +5045,11 @@
set maxHeight(String value) {
_maxHeight = value == null ? '' : value;
}
+
@Returns('String')
@JSName('maxHeight')
String _maxHeight;
-
+
/** Gets the value of "max-width" */
String get maxWidth => this._maxWidth;
@@ -4816,10 +5057,11 @@
set maxWidth(String value) {
_maxWidth = value == null ? '' : value;
}
+
@Returns('String')
@JSName('maxWidth')
String _maxWidth;
-
+
/** Gets the value of "min-height" */
String get minHeight => this._minHeight;
@@ -4827,10 +5069,11 @@
set minHeight(String value) {
_minHeight = value == null ? '' : value;
}
+
@Returns('String')
@JSName('minHeight')
String _minHeight;
-
+
/** Gets the value of "min-width" */
String get minWidth => this._minWidth;
@@ -4838,10 +5081,11 @@
set minWidth(String value) {
_minWidth = value == null ? '' : value;
}
+
@Returns('String')
@JSName('minWidth')
String _minWidth;
-
+
/** Gets the value of "outline" */
String get outline => this._outline;
@@ -4849,10 +5093,11 @@
set outline(String value) {
_outline = value == null ? '' : value;
}
+
@Returns('String')
@JSName('outline')
String _outline;
-
+
/** Gets the value of "outline-color" */
String get outlineColor => this._outlineColor;
@@ -4860,10 +5105,11 @@
set outlineColor(String value) {
_outlineColor = value == null ? '' : value;
}
+
@Returns('String')
@JSName('outlineColor')
String _outlineColor;
-
+
/** Gets the value of "outline-style" */
String get outlineStyle => this._outlineStyle;
@@ -4871,10 +5117,11 @@
set outlineStyle(String value) {
_outlineStyle = value == null ? '' : value;
}
+
@Returns('String')
@JSName('outlineStyle')
String _outlineStyle;
-
+
/** Gets the value of "outline-width" */
String get outlineWidth => this._outlineWidth;
@@ -4882,10 +5129,11 @@
set outlineWidth(String value) {
_outlineWidth = value == null ? '' : value;
}
+
@Returns('String')
@JSName('outlineWidth')
String _outlineWidth;
-
+
/** Gets the value of "overflow" */
String get overflow => this._overflow;
@@ -4893,10 +5141,11 @@
set overflow(String value) {
_overflow = value == null ? '' : value;
}
+
@Returns('String')
@JSName('overflow')
String _overflow;
-
+
/** Gets the value of "padding" */
String get padding => this._padding;
@@ -4904,10 +5153,11 @@
set padding(String value) {
_padding = value == null ? '' : value;
}
+
@Returns('String')
@JSName('padding')
String _padding;
-
+
/** Gets the value of "padding-bottom" */
String get paddingBottom => this._paddingBottom;
@@ -4915,10 +5165,11 @@
set paddingBottom(String value) {
_paddingBottom = value == null ? '' : value;
}
+
@Returns('String')
@JSName('paddingBottom')
String _paddingBottom;
-
+
/** Gets the value of "padding-left" */
String get paddingLeft => this._paddingLeft;
@@ -4926,10 +5177,11 @@
set paddingLeft(String value) {
_paddingLeft = value == null ? '' : value;
}
+
@Returns('String')
@JSName('paddingLeft')
String _paddingLeft;
-
+
/** Gets the value of "padding-right" */
String get paddingRight => this._paddingRight;
@@ -4937,10 +5189,11 @@
set paddingRight(String value) {
_paddingRight = value == null ? '' : value;
}
+
@Returns('String')
@JSName('paddingRight')
String _paddingRight;
-
+
/** Gets the value of "padding-top" */
String get paddingTop => this._paddingTop;
@@ -4948,10 +5201,11 @@
set paddingTop(String value) {
_paddingTop = value == null ? '' : value;
}
+
@Returns('String')
@JSName('paddingTop')
String _paddingTop;
-
+
/** Gets the value of "page-break-after" */
String get pageBreakAfter => this._pageBreakAfter;
@@ -4959,10 +5213,11 @@
set pageBreakAfter(String value) {
_pageBreakAfter = value == null ? '' : value;
}
+
@Returns('String')
@JSName('pageBreakAfter')
String _pageBreakAfter;
-
+
/** Gets the value of "page-break-before" */
String get pageBreakBefore => this._pageBreakBefore;
@@ -4970,10 +5225,11 @@
set pageBreakBefore(String value) {
_pageBreakBefore = value == null ? '' : value;
}
+
@Returns('String')
@JSName('pageBreakBefore')
String _pageBreakBefore;
-
+
/** Gets the value of "page-break-inside" */
String get pageBreakInside => this._pageBreakInside;
@@ -4981,10 +5237,11 @@
set pageBreakInside(String value) {
_pageBreakInside = value == null ? '' : value;
}
+
@Returns('String')
@JSName('pageBreakInside')
String _pageBreakInside;
-
+
/** Gets the value of "position" */
String get position => this._position;
@@ -4992,10 +5249,11 @@
set position(String value) {
_position = value == null ? '' : value;
}
+
@Returns('String')
@JSName('position')
String _position;
-
+
/** Gets the value of "quotes" */
String get quotes => this._quotes;
@@ -5003,10 +5261,11 @@
set quotes(String value) {
_quotes = value == null ? '' : value;
}
+
@Returns('String')
@JSName('quotes')
String _quotes;
-
+
/** Gets the value of "right" */
String get right => this._right;
@@ -5014,10 +5273,11 @@
set right(String value) {
_right = value == null ? '' : value;
}
+
@Returns('String')
@JSName('right')
String _right;
-
+
/** Gets the value of "table-layout" */
String get tableLayout => this._tableLayout;
@@ -5025,10 +5285,11 @@
set tableLayout(String value) {
_tableLayout = value == null ? '' : value;
}
+
@Returns('String')
@JSName('tableLayout')
String _tableLayout;
-
+
/** Gets the value of "text-align" */
String get textAlign => this._textAlign;
@@ -5036,10 +5297,11 @@
set textAlign(String value) {
_textAlign = value == null ? '' : value;
}
+
@Returns('String')
@JSName('textAlign')
String _textAlign;
-
+
/** Gets the value of "text-decoration" */
String get textDecoration => this._textDecoration;
@@ -5047,10 +5309,11 @@
set textDecoration(String value) {
_textDecoration = value == null ? '' : value;
}
+
@Returns('String')
@JSName('textDecoration')
String _textDecoration;
-
+
/** Gets the value of "text-indent" */
String get textIndent => this._textIndent;
@@ -5058,10 +5321,11 @@
set textIndent(String value) {
_textIndent = value == null ? '' : value;
}
+
@Returns('String')
@JSName('textIndent')
String _textIndent;
-
+
/** Gets the value of "text-transform" */
String get textTransform => this._textTransform;
@@ -5069,10 +5333,11 @@
set textTransform(String value) {
_textTransform = value == null ? '' : value;
}
+
@Returns('String')
@JSName('textTransform')
String _textTransform;
-
+
/** Gets the value of "top" */
String get top => this._top;
@@ -5080,10 +5345,11 @@
set top(String value) {
_top = value == null ? '' : value;
}
+
@Returns('String')
@JSName('top')
String _top;
-
+
/** Gets the value of "unicode-bidi" */
String get unicodeBidi => this._unicodeBidi;
@@ -5091,10 +5357,11 @@
set unicodeBidi(String value) {
_unicodeBidi = value == null ? '' : value;
}
+
@Returns('String')
@JSName('unicodeBidi')
String _unicodeBidi;
-
+
/** Gets the value of "vertical-align" */
String get verticalAlign => this._verticalAlign;
@@ -5102,10 +5369,11 @@
set verticalAlign(String value) {
_verticalAlign = value == null ? '' : value;
}
+
@Returns('String')
@JSName('verticalAlign')
String _verticalAlign;
-
+
/** Gets the value of "visibility" */
String get visibility => this._visibility;
@@ -5113,10 +5381,11 @@
set visibility(String value) {
_visibility = value == null ? '' : value;
}
+
@Returns('String')
@JSName('visibility')
String _visibility;
-
+
/** Gets the value of "white-space" */
String get whiteSpace => this._whiteSpace;
@@ -5124,10 +5393,11 @@
set whiteSpace(String value) {
_whiteSpace = value == null ? '' : value;
}
+
@Returns('String')
@JSName('whiteSpace')
String _whiteSpace;
-
+
/** Gets the value of "width" */
String get width => this._width;
@@ -5135,10 +5405,11 @@
set width(String value) {
_width = value == null ? '' : value;
}
+
@Returns('String')
@JSName('width')
String _width;
-
+
/** Gets the value of "word-spacing" */
String get wordSpacing => this._wordSpacing;
@@ -5146,10 +5417,11 @@
set wordSpacing(String value) {
_wordSpacing = value == null ? '' : value;
}
+
@Returns('String')
@JSName('wordSpacing')
String _wordSpacing;
-
+
/** Gets the value of "z-index" */
String get zIndex => this._zIndex;
@@ -5157,10 +5429,10 @@
set zIndex(String value) {
_zIndex = value == null ? '' : value;
}
+
@Returns('String')
@JSName('zIndex')
String _zIndex;
-
}
class _CssStyleDeclarationSet extends Object with CssStyleDeclarationBase {
@@ -5168,20 +5440,19 @@
Iterable<CssStyleDeclaration> _elementCssStyleDeclarationSetIterable;
_CssStyleDeclarationSet(this._elementIterable) {
- _elementCssStyleDeclarationSetIterable = new List.from(
- _elementIterable).map((e) => e.style);
+ _elementCssStyleDeclarationSetIterable =
+ new List.from(_elementIterable).map((e) => e.style);
}
String getPropertyValue(String propertyName) =>
- _elementCssStyleDeclarationSetIterable.first.getPropertyValue(
- propertyName);
+ _elementCssStyleDeclarationSetIterable.first
+ .getPropertyValue(propertyName);
void setProperty(String propertyName, String value, [String priority]) {
- _elementCssStyleDeclarationSetIterable.forEach((e) =>
- e.setProperty(propertyName, value, priority));
+ _elementCssStyleDeclarationSetIterable
+ .forEach((e) => e.setProperty(propertyName, value, priority));
}
-
void _setAll(String propertyName, String value) {
value = value == null ? '' : value;
for (Element element in _elementIterable) {
@@ -5193,452 +5464,451 @@
set background(String value) {
_setAll('background', value);
}
-
+
/** Sets the value of "background-attachment" */
set backgroundAttachment(String value) {
_setAll('backgroundAttachment', value);
}
-
+
/** Sets the value of "background-color" */
set backgroundColor(String value) {
_setAll('backgroundColor', value);
}
-
+
/** Sets the value of "background-image" */
set backgroundImage(String value) {
_setAll('backgroundImage', value);
}
-
+
/** Sets the value of "background-position" */
set backgroundPosition(String value) {
_setAll('backgroundPosition', value);
}
-
+
/** Sets the value of "background-repeat" */
set backgroundRepeat(String value) {
_setAll('backgroundRepeat', value);
}
-
+
/** Sets the value of "border" */
set border(String value) {
_setAll('border', value);
}
-
+
/** Sets the value of "border-bottom" */
set borderBottom(String value) {
_setAll('borderBottom', value);
}
-
+
/** Sets the value of "border-bottom-color" */
set borderBottomColor(String value) {
_setAll('borderBottomColor', value);
}
-
+
/** Sets the value of "border-bottom-style" */
set borderBottomStyle(String value) {
_setAll('borderBottomStyle', value);
}
-
+
/** Sets the value of "border-bottom-width" */
set borderBottomWidth(String value) {
_setAll('borderBottomWidth', value);
}
-
+
/** Sets the value of "border-collapse" */
set borderCollapse(String value) {
_setAll('borderCollapse', value);
}
-
+
/** Sets the value of "border-color" */
set borderColor(String value) {
_setAll('borderColor', value);
}
-
+
/** Sets the value of "border-left" */
set borderLeft(String value) {
_setAll('borderLeft', value);
}
-
+
/** Sets the value of "border-left-color" */
set borderLeftColor(String value) {
_setAll('borderLeftColor', value);
}
-
+
/** Sets the value of "border-left-style" */
set borderLeftStyle(String value) {
_setAll('borderLeftStyle', value);
}
-
+
/** Sets the value of "border-left-width" */
set borderLeftWidth(String value) {
_setAll('borderLeftWidth', value);
}
-
+
/** Sets the value of "border-right" */
set borderRight(String value) {
_setAll('borderRight', value);
}
-
+
/** Sets the value of "border-right-color" */
set borderRightColor(String value) {
_setAll('borderRightColor', value);
}
-
+
/** Sets the value of "border-right-style" */
set borderRightStyle(String value) {
_setAll('borderRightStyle', value);
}
-
+
/** Sets the value of "border-right-width" */
set borderRightWidth(String value) {
_setAll('borderRightWidth', value);
}
-
+
/** Sets the value of "border-spacing" */
set borderSpacing(String value) {
_setAll('borderSpacing', value);
}
-
+
/** Sets the value of "border-style" */
set borderStyle(String value) {
_setAll('borderStyle', value);
}
-
+
/** Sets the value of "border-top" */
set borderTop(String value) {
_setAll('borderTop', value);
}
-
+
/** Sets the value of "border-top-color" */
set borderTopColor(String value) {
_setAll('borderTopColor', value);
}
-
+
/** Sets the value of "border-top-style" */
set borderTopStyle(String value) {
_setAll('borderTopStyle', value);
}
-
+
/** Sets the value of "border-top-width" */
set borderTopWidth(String value) {
_setAll('borderTopWidth', value);
}
-
+
/** Sets the value of "border-width" */
set borderWidth(String value) {
_setAll('borderWidth', value);
}
-
+
/** Sets the value of "bottom" */
set bottom(String value) {
_setAll('bottom', value);
}
-
+
/** Sets the value of "caption-side" */
set captionSide(String value) {
_setAll('captionSide', value);
}
-
+
/** Sets the value of "clear" */
set clear(String value) {
_setAll('clear', value);
}
-
+
/** Sets the value of "clip" */
set clip(String value) {
_setAll('clip', value);
}
-
+
/** Sets the value of "color" */
set color(String value) {
_setAll('color', value);
}
-
+
/** Sets the value of "content" */
set content(String value) {
_setAll('content', value);
}
-
+
/** Sets the value of "cursor" */
set cursor(String value) {
_setAll('cursor', value);
}
-
+
/** Sets the value of "direction" */
set direction(String value) {
_setAll('direction', value);
}
-
+
/** Sets the value of "display" */
set display(String value) {
_setAll('display', value);
}
-
+
/** Sets the value of "empty-cells" */
set emptyCells(String value) {
_setAll('emptyCells', value);
}
-
+
/** Sets the value of "font" */
set font(String value) {
_setAll('font', value);
}
-
+
/** Sets the value of "font-family" */
set fontFamily(String value) {
_setAll('fontFamily', value);
}
-
+
/** Sets the value of "font-size" */
set fontSize(String value) {
_setAll('fontSize', value);
}
-
+
/** Sets the value of "font-style" */
set fontStyle(String value) {
_setAll('fontStyle', value);
}
-
+
/** Sets the value of "font-variant" */
set fontVariant(String value) {
_setAll('fontVariant', value);
}
-
+
/** Sets the value of "font-weight" */
set fontWeight(String value) {
_setAll('fontWeight', value);
}
-
+
/** Sets the value of "height" */
set height(String value) {
_setAll('height', value);
}
-
+
/** Sets the value of "left" */
set left(String value) {
_setAll('left', value);
}
-
+
/** Sets the value of "letter-spacing" */
set letterSpacing(String value) {
_setAll('letterSpacing', value);
}
-
+
/** Sets the value of "line-height" */
set lineHeight(String value) {
_setAll('lineHeight', value);
}
-
+
/** Sets the value of "list-style" */
set listStyle(String value) {
_setAll('listStyle', value);
}
-
+
/** Sets the value of "list-style-image" */
set listStyleImage(String value) {
_setAll('listStyleImage', value);
}
-
+
/** Sets the value of "list-style-position" */
set listStylePosition(String value) {
_setAll('listStylePosition', value);
}
-
+
/** Sets the value of "list-style-type" */
set listStyleType(String value) {
_setAll('listStyleType', value);
}
-
+
/** Sets the value of "margin" */
set margin(String value) {
_setAll('margin', value);
}
-
+
/** Sets the value of "margin-bottom" */
set marginBottom(String value) {
_setAll('marginBottom', value);
}
-
+
/** Sets the value of "margin-left" */
set marginLeft(String value) {
_setAll('marginLeft', value);
}
-
+
/** Sets the value of "margin-right" */
set marginRight(String value) {
_setAll('marginRight', value);
}
-
+
/** Sets the value of "margin-top" */
set marginTop(String value) {
_setAll('marginTop', value);
}
-
+
/** Sets the value of "max-height" */
set maxHeight(String value) {
_setAll('maxHeight', value);
}
-
+
/** Sets the value of "max-width" */
set maxWidth(String value) {
_setAll('maxWidth', value);
}
-
+
/** Sets the value of "min-height" */
set minHeight(String value) {
_setAll('minHeight', value);
}
-
+
/** Sets the value of "min-width" */
set minWidth(String value) {
_setAll('minWidth', value);
}
-
+
/** Sets the value of "outline" */
set outline(String value) {
_setAll('outline', value);
}
-
+
/** Sets the value of "outline-color" */
set outlineColor(String value) {
_setAll('outlineColor', value);
}
-
+
/** Sets the value of "outline-style" */
set outlineStyle(String value) {
_setAll('outlineStyle', value);
}
-
+
/** Sets the value of "outline-width" */
set outlineWidth(String value) {
_setAll('outlineWidth', value);
}
-
+
/** Sets the value of "overflow" */
set overflow(String value) {
_setAll('overflow', value);
}
-
+
/** Sets the value of "padding" */
set padding(String value) {
_setAll('padding', value);
}
-
+
/** Sets the value of "padding-bottom" */
set paddingBottom(String value) {
_setAll('paddingBottom', value);
}
-
+
/** Sets the value of "padding-left" */
set paddingLeft(String value) {
_setAll('paddingLeft', value);
}
-
+
/** Sets the value of "padding-right" */
set paddingRight(String value) {
_setAll('paddingRight', value);
}
-
+
/** Sets the value of "padding-top" */
set paddingTop(String value) {
_setAll('paddingTop', value);
}
-
+
/** Sets the value of "page-break-after" */
set pageBreakAfter(String value) {
_setAll('pageBreakAfter', value);
}
-
+
/** Sets the value of "page-break-before" */
set pageBreakBefore(String value) {
_setAll('pageBreakBefore', value);
}
-
+
/** Sets the value of "page-break-inside" */
set pageBreakInside(String value) {
_setAll('pageBreakInside', value);
}
-
+
/** Sets the value of "position" */
set position(String value) {
_setAll('position', value);
}
-
+
/** Sets the value of "quotes" */
set quotes(String value) {
_setAll('quotes', value);
}
-
+
/** Sets the value of "right" */
set right(String value) {
_setAll('right', value);
}
-
+
/** Sets the value of "table-layout" */
set tableLayout(String value) {
_setAll('tableLayout', value);
}
-
+
/** Sets the value of "text-align" */
set textAlign(String value) {
_setAll('textAlign', value);
}
-
+
/** Sets the value of "text-decoration" */
set textDecoration(String value) {
_setAll('textDecoration', value);
}
-
+
/** Sets the value of "text-indent" */
set textIndent(String value) {
_setAll('textIndent', value);
}
-
+
/** Sets the value of "text-transform" */
set textTransform(String value) {
_setAll('textTransform', value);
}
-
+
/** Sets the value of "top" */
set top(String value) {
_setAll('top', value);
}
-
+
/** Sets the value of "unicode-bidi" */
set unicodeBidi(String value) {
_setAll('unicodeBidi', value);
}
-
+
/** Sets the value of "vertical-align" */
set verticalAlign(String value) {
_setAll('verticalAlign', value);
}
-
+
/** Sets the value of "visibility" */
set visibility(String value) {
_setAll('visibility', value);
}
-
+
/** Sets the value of "white-space" */
set whiteSpace(String value) {
_setAll('whiteSpace', value);
}
-
+
/** Sets the value of "width" */
set width(String value) {
_setAll('width', value);
}
-
+
/** Sets the value of "word-spacing" */
set wordSpacing(String value) {
_setAll('wordSpacing', value);
}
-
+
/** Sets the value of "z-index" */
set zIndex(String value) {
_setAll('zIndex', value);
}
-
// Important note: CssStyleDeclarationSet does NOT implement every method
// available in CssStyleDeclaration. Some of the methods don't make so much
@@ -5652,8 +5922,7 @@
void setProperty(String propertyName, String value, [String priority]);
/** Gets the value of "align-content" */
- String get alignContent =>
- getPropertyValue('align-content');
+ String get alignContent => getPropertyValue('align-content');
/** Sets the value of "align-content" */
set alignContent(String value) {
@@ -5661,8 +5930,7 @@
}
/** Gets the value of "align-items" */
- String get alignItems =>
- getPropertyValue('align-items');
+ String get alignItems => getPropertyValue('align-items');
/** Sets the value of "align-items" */
set alignItems(String value) {
@@ -5670,8 +5938,7 @@
}
/** Gets the value of "align-self" */
- String get alignSelf =>
- getPropertyValue('align-self');
+ String get alignSelf => getPropertyValue('align-self');
/** Sets the value of "align-self" */
set alignSelf(String value) {
@@ -5679,8 +5946,7 @@
}
/** Gets the value of "animation" */
- String get animation =>
- getPropertyValue('animation');
+ String get animation => getPropertyValue('animation');
/** Sets the value of "animation" */
set animation(String value) {
@@ -5688,8 +5954,7 @@
}
/** Gets the value of "animation-delay" */
- String get animationDelay =>
- getPropertyValue('animation-delay');
+ String get animationDelay => getPropertyValue('animation-delay');
/** Sets the value of "animation-delay" */
set animationDelay(String value) {
@@ -5697,8 +5962,7 @@
}
/** Gets the value of "animation-direction" */
- String get animationDirection =>
- getPropertyValue('animation-direction');
+ String get animationDirection => getPropertyValue('animation-direction');
/** Sets the value of "animation-direction" */
set animationDirection(String value) {
@@ -5706,8 +5970,7 @@
}
/** Gets the value of "animation-duration" */
- String get animationDuration =>
- getPropertyValue('animation-duration');
+ String get animationDuration => getPropertyValue('animation-duration');
/** Sets the value of "animation-duration" */
set animationDuration(String value) {
@@ -5715,8 +5978,7 @@
}
/** Gets the value of "animation-fill-mode" */
- String get animationFillMode =>
- getPropertyValue('animation-fill-mode');
+ String get animationFillMode => getPropertyValue('animation-fill-mode');
/** Sets the value of "animation-fill-mode" */
set animationFillMode(String value) {
@@ -5725,7 +5987,7 @@
/** Gets the value of "animation-iteration-count" */
String get animationIterationCount =>
- getPropertyValue('animation-iteration-count');
+ getPropertyValue('animation-iteration-count');
/** Sets the value of "animation-iteration-count" */
set animationIterationCount(String value) {
@@ -5733,8 +5995,7 @@
}
/** Gets the value of "animation-name" */
- String get animationName =>
- getPropertyValue('animation-name');
+ String get animationName => getPropertyValue('animation-name');
/** Sets the value of "animation-name" */
set animationName(String value) {
@@ -5742,8 +6003,7 @@
}
/** Gets the value of "animation-play-state" */
- String get animationPlayState =>
- getPropertyValue('animation-play-state');
+ String get animationPlayState => getPropertyValue('animation-play-state');
/** Sets the value of "animation-play-state" */
set animationPlayState(String value) {
@@ -5752,7 +6012,7 @@
/** Gets the value of "animation-timing-function" */
String get animationTimingFunction =>
- getPropertyValue('animation-timing-function');
+ getPropertyValue('animation-timing-function');
/** Sets the value of "animation-timing-function" */
set animationTimingFunction(String value) {
@@ -5760,8 +6020,7 @@
}
/** Gets the value of "app-region" */
- String get appRegion =>
- getPropertyValue('app-region');
+ String get appRegion => getPropertyValue('app-region');
/** Sets the value of "app-region" */
set appRegion(String value) {
@@ -5769,8 +6028,7 @@
}
/** Gets the value of "appearance" */
- String get appearance =>
- getPropertyValue('appearance');
+ String get appearance => getPropertyValue('appearance');
/** Sets the value of "appearance" */
set appearance(String value) {
@@ -5778,8 +6036,7 @@
}
/** Gets the value of "aspect-ratio" */
- String get aspectRatio =>
- getPropertyValue('aspect-ratio');
+ String get aspectRatio => getPropertyValue('aspect-ratio');
/** Sets the value of "aspect-ratio" */
set aspectRatio(String value) {
@@ -5787,8 +6044,7 @@
}
/** Gets the value of "backface-visibility" */
- String get backfaceVisibility =>
- getPropertyValue('backface-visibility');
+ String get backfaceVisibility => getPropertyValue('backface-visibility');
/** Sets the value of "backface-visibility" */
set backfaceVisibility(String value) {
@@ -5796,8 +6052,7 @@
}
/** Gets the value of "background" */
- String get background =>
- getPropertyValue('background');
+ String get background => getPropertyValue('background');
/** Sets the value of "background" */
set background(String value) {
@@ -5805,8 +6060,7 @@
}
/** Gets the value of "background-attachment" */
- String get backgroundAttachment =>
- getPropertyValue('background-attachment');
+ String get backgroundAttachment => getPropertyValue('background-attachment');
/** Sets the value of "background-attachment" */
set backgroundAttachment(String value) {
@@ -5814,8 +6068,7 @@
}
/** Gets the value of "background-blend-mode" */
- String get backgroundBlendMode =>
- getPropertyValue('background-blend-mode');
+ String get backgroundBlendMode => getPropertyValue('background-blend-mode');
/** Sets the value of "background-blend-mode" */
set backgroundBlendMode(String value) {
@@ -5823,8 +6076,7 @@
}
/** Gets the value of "background-clip" */
- String get backgroundClip =>
- getPropertyValue('background-clip');
+ String get backgroundClip => getPropertyValue('background-clip');
/** Sets the value of "background-clip" */
set backgroundClip(String value) {
@@ -5832,8 +6084,7 @@
}
/** Gets the value of "background-color" */
- String get backgroundColor =>
- getPropertyValue('background-color');
+ String get backgroundColor => getPropertyValue('background-color');
/** Sets the value of "background-color" */
set backgroundColor(String value) {
@@ -5841,8 +6092,7 @@
}
/** Gets the value of "background-composite" */
- String get backgroundComposite =>
- getPropertyValue('background-composite');
+ String get backgroundComposite => getPropertyValue('background-composite');
/** Sets the value of "background-composite" */
set backgroundComposite(String value) {
@@ -5850,8 +6100,7 @@
}
/** Gets the value of "background-image" */
- String get backgroundImage =>
- getPropertyValue('background-image');
+ String get backgroundImage => getPropertyValue('background-image');
/** Sets the value of "background-image" */
set backgroundImage(String value) {
@@ -5859,8 +6108,7 @@
}
/** Gets the value of "background-origin" */
- String get backgroundOrigin =>
- getPropertyValue('background-origin');
+ String get backgroundOrigin => getPropertyValue('background-origin');
/** Sets the value of "background-origin" */
set backgroundOrigin(String value) {
@@ -5868,8 +6116,7 @@
}
/** Gets the value of "background-position" */
- String get backgroundPosition =>
- getPropertyValue('background-position');
+ String get backgroundPosition => getPropertyValue('background-position');
/** Sets the value of "background-position" */
set backgroundPosition(String value) {
@@ -5877,8 +6124,7 @@
}
/** Gets the value of "background-position-x" */
- String get backgroundPositionX =>
- getPropertyValue('background-position-x');
+ String get backgroundPositionX => getPropertyValue('background-position-x');
/** Sets the value of "background-position-x" */
set backgroundPositionX(String value) {
@@ -5886,8 +6132,7 @@
}
/** Gets the value of "background-position-y" */
- String get backgroundPositionY =>
- getPropertyValue('background-position-y');
+ String get backgroundPositionY => getPropertyValue('background-position-y');
/** Sets the value of "background-position-y" */
set backgroundPositionY(String value) {
@@ -5895,8 +6140,7 @@
}
/** Gets the value of "background-repeat" */
- String get backgroundRepeat =>
- getPropertyValue('background-repeat');
+ String get backgroundRepeat => getPropertyValue('background-repeat');
/** Sets the value of "background-repeat" */
set backgroundRepeat(String value) {
@@ -5904,8 +6148,7 @@
}
/** Gets the value of "background-repeat-x" */
- String get backgroundRepeatX =>
- getPropertyValue('background-repeat-x');
+ String get backgroundRepeatX => getPropertyValue('background-repeat-x');
/** Sets the value of "background-repeat-x" */
set backgroundRepeatX(String value) {
@@ -5913,8 +6156,7 @@
}
/** Gets the value of "background-repeat-y" */
- String get backgroundRepeatY =>
- getPropertyValue('background-repeat-y');
+ String get backgroundRepeatY => getPropertyValue('background-repeat-y');
/** Sets the value of "background-repeat-y" */
set backgroundRepeatY(String value) {
@@ -5922,8 +6164,7 @@
}
/** Gets the value of "background-size" */
- String get backgroundSize =>
- getPropertyValue('background-size');
+ String get backgroundSize => getPropertyValue('background-size');
/** Sets the value of "background-size" */
set backgroundSize(String value) {
@@ -5931,8 +6172,7 @@
}
/** Gets the value of "border" */
- String get border =>
- getPropertyValue('border');
+ String get border => getPropertyValue('border');
/** Sets the value of "border" */
set border(String value) {
@@ -5940,8 +6180,7 @@
}
/** Gets the value of "border-after" */
- String get borderAfter =>
- getPropertyValue('border-after');
+ String get borderAfter => getPropertyValue('border-after');
/** Sets the value of "border-after" */
set borderAfter(String value) {
@@ -5949,8 +6188,7 @@
}
/** Gets the value of "border-after-color" */
- String get borderAfterColor =>
- getPropertyValue('border-after-color');
+ String get borderAfterColor => getPropertyValue('border-after-color');
/** Sets the value of "border-after-color" */
set borderAfterColor(String value) {
@@ -5958,8 +6196,7 @@
}
/** Gets the value of "border-after-style" */
- String get borderAfterStyle =>
- getPropertyValue('border-after-style');
+ String get borderAfterStyle => getPropertyValue('border-after-style');
/** Sets the value of "border-after-style" */
set borderAfterStyle(String value) {
@@ -5967,8 +6204,7 @@
}
/** Gets the value of "border-after-width" */
- String get borderAfterWidth =>
- getPropertyValue('border-after-width');
+ String get borderAfterWidth => getPropertyValue('border-after-width');
/** Sets the value of "border-after-width" */
set borderAfterWidth(String value) {
@@ -5976,8 +6212,7 @@
}
/** Gets the value of "border-before" */
- String get borderBefore =>
- getPropertyValue('border-before');
+ String get borderBefore => getPropertyValue('border-before');
/** Sets the value of "border-before" */
set borderBefore(String value) {
@@ -5985,8 +6220,7 @@
}
/** Gets the value of "border-before-color" */
- String get borderBeforeColor =>
- getPropertyValue('border-before-color');
+ String get borderBeforeColor => getPropertyValue('border-before-color');
/** Sets the value of "border-before-color" */
set borderBeforeColor(String value) {
@@ -5994,8 +6228,7 @@
}
/** Gets the value of "border-before-style" */
- String get borderBeforeStyle =>
- getPropertyValue('border-before-style');
+ String get borderBeforeStyle => getPropertyValue('border-before-style');
/** Sets the value of "border-before-style" */
set borderBeforeStyle(String value) {
@@ -6003,8 +6236,7 @@
}
/** Gets the value of "border-before-width" */
- String get borderBeforeWidth =>
- getPropertyValue('border-before-width');
+ String get borderBeforeWidth => getPropertyValue('border-before-width');
/** Sets the value of "border-before-width" */
set borderBeforeWidth(String value) {
@@ -6012,8 +6244,7 @@
}
/** Gets the value of "border-bottom" */
- String get borderBottom =>
- getPropertyValue('border-bottom');
+ String get borderBottom => getPropertyValue('border-bottom');
/** Sets the value of "border-bottom" */
set borderBottom(String value) {
@@ -6021,8 +6252,7 @@
}
/** Gets the value of "border-bottom-color" */
- String get borderBottomColor =>
- getPropertyValue('border-bottom-color');
+ String get borderBottomColor => getPropertyValue('border-bottom-color');
/** Sets the value of "border-bottom-color" */
set borderBottomColor(String value) {
@@ -6031,7 +6261,7 @@
/** Gets the value of "border-bottom-left-radius" */
String get borderBottomLeftRadius =>
- getPropertyValue('border-bottom-left-radius');
+ getPropertyValue('border-bottom-left-radius');
/** Sets the value of "border-bottom-left-radius" */
set borderBottomLeftRadius(String value) {
@@ -6040,7 +6270,7 @@
/** Gets the value of "border-bottom-right-radius" */
String get borderBottomRightRadius =>
- getPropertyValue('border-bottom-right-radius');
+ getPropertyValue('border-bottom-right-radius');
/** Sets the value of "border-bottom-right-radius" */
set borderBottomRightRadius(String value) {
@@ -6048,8 +6278,7 @@
}
/** Gets the value of "border-bottom-style" */
- String get borderBottomStyle =>
- getPropertyValue('border-bottom-style');
+ String get borderBottomStyle => getPropertyValue('border-bottom-style');
/** Sets the value of "border-bottom-style" */
set borderBottomStyle(String value) {
@@ -6057,8 +6286,7 @@
}
/** Gets the value of "border-bottom-width" */
- String get borderBottomWidth =>
- getPropertyValue('border-bottom-width');
+ String get borderBottomWidth => getPropertyValue('border-bottom-width');
/** Sets the value of "border-bottom-width" */
set borderBottomWidth(String value) {
@@ -6066,8 +6294,7 @@
}
/** Gets the value of "border-collapse" */
- String get borderCollapse =>
- getPropertyValue('border-collapse');
+ String get borderCollapse => getPropertyValue('border-collapse');
/** Sets the value of "border-collapse" */
set borderCollapse(String value) {
@@ -6075,8 +6302,7 @@
}
/** Gets the value of "border-color" */
- String get borderColor =>
- getPropertyValue('border-color');
+ String get borderColor => getPropertyValue('border-color');
/** Sets the value of "border-color" */
set borderColor(String value) {
@@ -6084,8 +6310,7 @@
}
/** Gets the value of "border-end" */
- String get borderEnd =>
- getPropertyValue('border-end');
+ String get borderEnd => getPropertyValue('border-end');
/** Sets the value of "border-end" */
set borderEnd(String value) {
@@ -6093,8 +6318,7 @@
}
/** Gets the value of "border-end-color" */
- String get borderEndColor =>
- getPropertyValue('border-end-color');
+ String get borderEndColor => getPropertyValue('border-end-color');
/** Sets the value of "border-end-color" */
set borderEndColor(String value) {
@@ -6102,8 +6326,7 @@
}
/** Gets the value of "border-end-style" */
- String get borderEndStyle =>
- getPropertyValue('border-end-style');
+ String get borderEndStyle => getPropertyValue('border-end-style');
/** Sets the value of "border-end-style" */
set borderEndStyle(String value) {
@@ -6111,8 +6334,7 @@
}
/** Gets the value of "border-end-width" */
- String get borderEndWidth =>
- getPropertyValue('border-end-width');
+ String get borderEndWidth => getPropertyValue('border-end-width');
/** Sets the value of "border-end-width" */
set borderEndWidth(String value) {
@@ -6120,8 +6342,7 @@
}
/** Gets the value of "border-fit" */
- String get borderFit =>
- getPropertyValue('border-fit');
+ String get borderFit => getPropertyValue('border-fit');
/** Sets the value of "border-fit" */
set borderFit(String value) {
@@ -6130,7 +6351,7 @@
/** Gets the value of "border-horizontal-spacing" */
String get borderHorizontalSpacing =>
- getPropertyValue('border-horizontal-spacing');
+ getPropertyValue('border-horizontal-spacing');
/** Sets the value of "border-horizontal-spacing" */
set borderHorizontalSpacing(String value) {
@@ -6138,8 +6359,7 @@
}
/** Gets the value of "border-image" */
- String get borderImage =>
- getPropertyValue('border-image');
+ String get borderImage => getPropertyValue('border-image');
/** Sets the value of "border-image" */
set borderImage(String value) {
@@ -6147,8 +6367,7 @@
}
/** Gets the value of "border-image-outset" */
- String get borderImageOutset =>
- getPropertyValue('border-image-outset');
+ String get borderImageOutset => getPropertyValue('border-image-outset');
/** Sets the value of "border-image-outset" */
set borderImageOutset(String value) {
@@ -6156,8 +6375,7 @@
}
/** Gets the value of "border-image-repeat" */
- String get borderImageRepeat =>
- getPropertyValue('border-image-repeat');
+ String get borderImageRepeat => getPropertyValue('border-image-repeat');
/** Sets the value of "border-image-repeat" */
set borderImageRepeat(String value) {
@@ -6165,8 +6383,7 @@
}
/** Gets the value of "border-image-slice" */
- String get borderImageSlice =>
- getPropertyValue('border-image-slice');
+ String get borderImageSlice => getPropertyValue('border-image-slice');
/** Sets the value of "border-image-slice" */
set borderImageSlice(String value) {
@@ -6174,8 +6391,7 @@
}
/** Gets the value of "border-image-source" */
- String get borderImageSource =>
- getPropertyValue('border-image-source');
+ String get borderImageSource => getPropertyValue('border-image-source');
/** Sets the value of "border-image-source" */
set borderImageSource(String value) {
@@ -6183,8 +6399,7 @@
}
/** Gets the value of "border-image-width" */
- String get borderImageWidth =>
- getPropertyValue('border-image-width');
+ String get borderImageWidth => getPropertyValue('border-image-width');
/** Sets the value of "border-image-width" */
set borderImageWidth(String value) {
@@ -6192,8 +6407,7 @@
}
/** Gets the value of "border-left" */
- String get borderLeft =>
- getPropertyValue('border-left');
+ String get borderLeft => getPropertyValue('border-left');
/** Sets the value of "border-left" */
set borderLeft(String value) {
@@ -6201,8 +6415,7 @@
}
/** Gets the value of "border-left-color" */
- String get borderLeftColor =>
- getPropertyValue('border-left-color');
+ String get borderLeftColor => getPropertyValue('border-left-color');
/** Sets the value of "border-left-color" */
set borderLeftColor(String value) {
@@ -6210,8 +6423,7 @@
}
/** Gets the value of "border-left-style" */
- String get borderLeftStyle =>
- getPropertyValue('border-left-style');
+ String get borderLeftStyle => getPropertyValue('border-left-style');
/** Sets the value of "border-left-style" */
set borderLeftStyle(String value) {
@@ -6219,8 +6431,7 @@
}
/** Gets the value of "border-left-width" */
- String get borderLeftWidth =>
- getPropertyValue('border-left-width');
+ String get borderLeftWidth => getPropertyValue('border-left-width');
/** Sets the value of "border-left-width" */
set borderLeftWidth(String value) {
@@ -6228,8 +6439,7 @@
}
/** Gets the value of "border-radius" */
- String get borderRadius =>
- getPropertyValue('border-radius');
+ String get borderRadius => getPropertyValue('border-radius');
/** Sets the value of "border-radius" */
set borderRadius(String value) {
@@ -6237,8 +6447,7 @@
}
/** Gets the value of "border-right" */
- String get borderRight =>
- getPropertyValue('border-right');
+ String get borderRight => getPropertyValue('border-right');
/** Sets the value of "border-right" */
set borderRight(String value) {
@@ -6246,8 +6455,7 @@
}
/** Gets the value of "border-right-color" */
- String get borderRightColor =>
- getPropertyValue('border-right-color');
+ String get borderRightColor => getPropertyValue('border-right-color');
/** Sets the value of "border-right-color" */
set borderRightColor(String value) {
@@ -6255,8 +6463,7 @@
}
/** Gets the value of "border-right-style" */
- String get borderRightStyle =>
- getPropertyValue('border-right-style');
+ String get borderRightStyle => getPropertyValue('border-right-style');
/** Sets the value of "border-right-style" */
set borderRightStyle(String value) {
@@ -6264,8 +6471,7 @@
}
/** Gets the value of "border-right-width" */
- String get borderRightWidth =>
- getPropertyValue('border-right-width');
+ String get borderRightWidth => getPropertyValue('border-right-width');
/** Sets the value of "border-right-width" */
set borderRightWidth(String value) {
@@ -6273,8 +6479,7 @@
}
/** Gets the value of "border-spacing" */
- String get borderSpacing =>
- getPropertyValue('border-spacing');
+ String get borderSpacing => getPropertyValue('border-spacing');
/** Sets the value of "border-spacing" */
set borderSpacing(String value) {
@@ -6282,8 +6487,7 @@
}
/** Gets the value of "border-start" */
- String get borderStart =>
- getPropertyValue('border-start');
+ String get borderStart => getPropertyValue('border-start');
/** Sets the value of "border-start" */
set borderStart(String value) {
@@ -6291,8 +6495,7 @@
}
/** Gets the value of "border-start-color" */
- String get borderStartColor =>
- getPropertyValue('border-start-color');
+ String get borderStartColor => getPropertyValue('border-start-color');
/** Sets the value of "border-start-color" */
set borderStartColor(String value) {
@@ -6300,8 +6503,7 @@
}
/** Gets the value of "border-start-style" */
- String get borderStartStyle =>
- getPropertyValue('border-start-style');
+ String get borderStartStyle => getPropertyValue('border-start-style');
/** Sets the value of "border-start-style" */
set borderStartStyle(String value) {
@@ -6309,8 +6511,7 @@
}
/** Gets the value of "border-start-width" */
- String get borderStartWidth =>
- getPropertyValue('border-start-width');
+ String get borderStartWidth => getPropertyValue('border-start-width');
/** Sets the value of "border-start-width" */
set borderStartWidth(String value) {
@@ -6318,8 +6519,7 @@
}
/** Gets the value of "border-style" */
- String get borderStyle =>
- getPropertyValue('border-style');
+ String get borderStyle => getPropertyValue('border-style');
/** Sets the value of "border-style" */
set borderStyle(String value) {
@@ -6327,8 +6527,7 @@
}
/** Gets the value of "border-top" */
- String get borderTop =>
- getPropertyValue('border-top');
+ String get borderTop => getPropertyValue('border-top');
/** Sets the value of "border-top" */
set borderTop(String value) {
@@ -6336,8 +6535,7 @@
}
/** Gets the value of "border-top-color" */
- String get borderTopColor =>
- getPropertyValue('border-top-color');
+ String get borderTopColor => getPropertyValue('border-top-color');
/** Sets the value of "border-top-color" */
set borderTopColor(String value) {
@@ -6345,8 +6543,7 @@
}
/** Gets the value of "border-top-left-radius" */
- String get borderTopLeftRadius =>
- getPropertyValue('border-top-left-radius');
+ String get borderTopLeftRadius => getPropertyValue('border-top-left-radius');
/** Sets the value of "border-top-left-radius" */
set borderTopLeftRadius(String value) {
@@ -6355,7 +6552,7 @@
/** Gets the value of "border-top-right-radius" */
String get borderTopRightRadius =>
- getPropertyValue('border-top-right-radius');
+ getPropertyValue('border-top-right-radius');
/** Sets the value of "border-top-right-radius" */
set borderTopRightRadius(String value) {
@@ -6363,8 +6560,7 @@
}
/** Gets the value of "border-top-style" */
- String get borderTopStyle =>
- getPropertyValue('border-top-style');
+ String get borderTopStyle => getPropertyValue('border-top-style');
/** Sets the value of "border-top-style" */
set borderTopStyle(String value) {
@@ -6372,8 +6568,7 @@
}
/** Gets the value of "border-top-width" */
- String get borderTopWidth =>
- getPropertyValue('border-top-width');
+ String get borderTopWidth => getPropertyValue('border-top-width');
/** Sets the value of "border-top-width" */
set borderTopWidth(String value) {
@@ -6382,7 +6577,7 @@
/** Gets the value of "border-vertical-spacing" */
String get borderVerticalSpacing =>
- getPropertyValue('border-vertical-spacing');
+ getPropertyValue('border-vertical-spacing');
/** Sets the value of "border-vertical-spacing" */
set borderVerticalSpacing(String value) {
@@ -6390,8 +6585,7 @@
}
/** Gets the value of "border-width" */
- String get borderWidth =>
- getPropertyValue('border-width');
+ String get borderWidth => getPropertyValue('border-width');
/** Sets the value of "border-width" */
set borderWidth(String value) {
@@ -6399,8 +6593,7 @@
}
/** Gets the value of "bottom" */
- String get bottom =>
- getPropertyValue('bottom');
+ String get bottom => getPropertyValue('bottom');
/** Sets the value of "bottom" */
set bottom(String value) {
@@ -6408,8 +6601,7 @@
}
/** Gets the value of "box-align" */
- String get boxAlign =>
- getPropertyValue('box-align');
+ String get boxAlign => getPropertyValue('box-align');
/** Sets the value of "box-align" */
set boxAlign(String value) {
@@ -6417,8 +6609,7 @@
}
/** Gets the value of "box-decoration-break" */
- String get boxDecorationBreak =>
- getPropertyValue('box-decoration-break');
+ String get boxDecorationBreak => getPropertyValue('box-decoration-break');
/** Sets the value of "box-decoration-break" */
set boxDecorationBreak(String value) {
@@ -6426,8 +6617,7 @@
}
/** Gets the value of "box-direction" */
- String get boxDirection =>
- getPropertyValue('box-direction');
+ String get boxDirection => getPropertyValue('box-direction');
/** Sets the value of "box-direction" */
set boxDirection(String value) {
@@ -6435,8 +6625,7 @@
}
/** Gets the value of "box-flex" */
- String get boxFlex =>
- getPropertyValue('box-flex');
+ String get boxFlex => getPropertyValue('box-flex');
/** Sets the value of "box-flex" */
set boxFlex(String value) {
@@ -6444,8 +6633,7 @@
}
/** Gets the value of "box-flex-group" */
- String get boxFlexGroup =>
- getPropertyValue('box-flex-group');
+ String get boxFlexGroup => getPropertyValue('box-flex-group');
/** Sets the value of "box-flex-group" */
set boxFlexGroup(String value) {
@@ -6453,8 +6641,7 @@
}
/** Gets the value of "box-lines" */
- String get boxLines =>
- getPropertyValue('box-lines');
+ String get boxLines => getPropertyValue('box-lines');
/** Sets the value of "box-lines" */
set boxLines(String value) {
@@ -6462,8 +6649,7 @@
}
/** Gets the value of "box-ordinal-group" */
- String get boxOrdinalGroup =>
- getPropertyValue('box-ordinal-group');
+ String get boxOrdinalGroup => getPropertyValue('box-ordinal-group');
/** Sets the value of "box-ordinal-group" */
set boxOrdinalGroup(String value) {
@@ -6471,8 +6657,7 @@
}
/** Gets the value of "box-orient" */
- String get boxOrient =>
- getPropertyValue('box-orient');
+ String get boxOrient => getPropertyValue('box-orient');
/** Sets the value of "box-orient" */
set boxOrient(String value) {
@@ -6480,8 +6665,7 @@
}
/** Gets the value of "box-pack" */
- String get boxPack =>
- getPropertyValue('box-pack');
+ String get boxPack => getPropertyValue('box-pack');
/** Sets the value of "box-pack" */
set boxPack(String value) {
@@ -6489,8 +6673,7 @@
}
/** Gets the value of "box-reflect" */
- String get boxReflect =>
- getPropertyValue('box-reflect');
+ String get boxReflect => getPropertyValue('box-reflect');
/** Sets the value of "box-reflect" */
set boxReflect(String value) {
@@ -6498,8 +6681,7 @@
}
/** Gets the value of "box-shadow" */
- String get boxShadow =>
- getPropertyValue('box-shadow');
+ String get boxShadow => getPropertyValue('box-shadow');
/** Sets the value of "box-shadow" */
set boxShadow(String value) {
@@ -6507,8 +6689,7 @@
}
/** Gets the value of "box-sizing" */
- String get boxSizing =>
- getPropertyValue('box-sizing');
+ String get boxSizing => getPropertyValue('box-sizing');
/** Sets the value of "box-sizing" */
set boxSizing(String value) {
@@ -6516,8 +6697,7 @@
}
/** Gets the value of "caption-side" */
- String get captionSide =>
- getPropertyValue('caption-side');
+ String get captionSide => getPropertyValue('caption-side');
/** Sets the value of "caption-side" */
set captionSide(String value) {
@@ -6525,8 +6705,7 @@
}
/** Gets the value of "clear" */
- String get clear =>
- getPropertyValue('clear');
+ String get clear => getPropertyValue('clear');
/** Sets the value of "clear" */
set clear(String value) {
@@ -6534,8 +6713,7 @@
}
/** Gets the value of "clip" */
- String get clip =>
- getPropertyValue('clip');
+ String get clip => getPropertyValue('clip');
/** Sets the value of "clip" */
set clip(String value) {
@@ -6543,8 +6721,7 @@
}
/** Gets the value of "clip-path" */
- String get clipPath =>
- getPropertyValue('clip-path');
+ String get clipPath => getPropertyValue('clip-path');
/** Sets the value of "clip-path" */
set clipPath(String value) {
@@ -6552,8 +6729,7 @@
}
/** Gets the value of "color" */
- String get color =>
- getPropertyValue('color');
+ String get color => getPropertyValue('color');
/** Sets the value of "color" */
set color(String value) {
@@ -6561,8 +6737,7 @@
}
/** Gets the value of "column-break-after" */
- String get columnBreakAfter =>
- getPropertyValue('column-break-after');
+ String get columnBreakAfter => getPropertyValue('column-break-after');
/** Sets the value of "column-break-after" */
set columnBreakAfter(String value) {
@@ -6570,8 +6745,7 @@
}
/** Gets the value of "column-break-before" */
- String get columnBreakBefore =>
- getPropertyValue('column-break-before');
+ String get columnBreakBefore => getPropertyValue('column-break-before');
/** Sets the value of "column-break-before" */
set columnBreakBefore(String value) {
@@ -6579,8 +6753,7 @@
}
/** Gets the value of "column-break-inside" */
- String get columnBreakInside =>
- getPropertyValue('column-break-inside');
+ String get columnBreakInside => getPropertyValue('column-break-inside');
/** Sets the value of "column-break-inside" */
set columnBreakInside(String value) {
@@ -6588,8 +6761,7 @@
}
/** Gets the value of "column-count" */
- String get columnCount =>
- getPropertyValue('column-count');
+ String get columnCount => getPropertyValue('column-count');
/** Sets the value of "column-count" */
set columnCount(String value) {
@@ -6597,8 +6769,7 @@
}
/** Gets the value of "column-fill" */
- String get columnFill =>
- getPropertyValue('column-fill');
+ String get columnFill => getPropertyValue('column-fill');
/** Sets the value of "column-fill" */
set columnFill(String value) {
@@ -6606,8 +6777,7 @@
}
/** Gets the value of "column-gap" */
- String get columnGap =>
- getPropertyValue('column-gap');
+ String get columnGap => getPropertyValue('column-gap');
/** Sets the value of "column-gap" */
set columnGap(String value) {
@@ -6615,8 +6785,7 @@
}
/** Gets the value of "column-rule" */
- String get columnRule =>
- getPropertyValue('column-rule');
+ String get columnRule => getPropertyValue('column-rule');
/** Sets the value of "column-rule" */
set columnRule(String value) {
@@ -6624,8 +6793,7 @@
}
/** Gets the value of "column-rule-color" */
- String get columnRuleColor =>
- getPropertyValue('column-rule-color');
+ String get columnRuleColor => getPropertyValue('column-rule-color');
/** Sets the value of "column-rule-color" */
set columnRuleColor(String value) {
@@ -6633,8 +6801,7 @@
}
/** Gets the value of "column-rule-style" */
- String get columnRuleStyle =>
- getPropertyValue('column-rule-style');
+ String get columnRuleStyle => getPropertyValue('column-rule-style');
/** Sets the value of "column-rule-style" */
set columnRuleStyle(String value) {
@@ -6642,8 +6809,7 @@
}
/** Gets the value of "column-rule-width" */
- String get columnRuleWidth =>
- getPropertyValue('column-rule-width');
+ String get columnRuleWidth => getPropertyValue('column-rule-width');
/** Sets the value of "column-rule-width" */
set columnRuleWidth(String value) {
@@ -6651,8 +6817,7 @@
}
/** Gets the value of "column-span" */
- String get columnSpan =>
- getPropertyValue('column-span');
+ String get columnSpan => getPropertyValue('column-span');
/** Sets the value of "column-span" */
set columnSpan(String value) {
@@ -6660,8 +6825,7 @@
}
/** Gets the value of "column-width" */
- String get columnWidth =>
- getPropertyValue('column-width');
+ String get columnWidth => getPropertyValue('column-width');
/** Sets the value of "column-width" */
set columnWidth(String value) {
@@ -6669,8 +6833,7 @@
}
/** Gets the value of "columns" */
- String get columns =>
- getPropertyValue('columns');
+ String get columns => getPropertyValue('columns');
/** Sets the value of "columns" */
set columns(String value) {
@@ -6678,8 +6841,7 @@
}
/** Gets the value of "content" */
- String get content =>
- getPropertyValue('content');
+ String get content => getPropertyValue('content');
/** Sets the value of "content" */
set content(String value) {
@@ -6687,8 +6849,7 @@
}
/** Gets the value of "counter-increment" */
- String get counterIncrement =>
- getPropertyValue('counter-increment');
+ String get counterIncrement => getPropertyValue('counter-increment');
/** Sets the value of "counter-increment" */
set counterIncrement(String value) {
@@ -6696,8 +6857,7 @@
}
/** Gets the value of "counter-reset" */
- String get counterReset =>
- getPropertyValue('counter-reset');
+ String get counterReset => getPropertyValue('counter-reset');
/** Sets the value of "counter-reset" */
set counterReset(String value) {
@@ -6705,8 +6865,7 @@
}
/** Gets the value of "cursor" */
- String get cursor =>
- getPropertyValue('cursor');
+ String get cursor => getPropertyValue('cursor');
/** Sets the value of "cursor" */
set cursor(String value) {
@@ -6714,8 +6873,7 @@
}
/** Gets the value of "direction" */
- String get direction =>
- getPropertyValue('direction');
+ String get direction => getPropertyValue('direction');
/** Sets the value of "direction" */
set direction(String value) {
@@ -6723,8 +6881,7 @@
}
/** Gets the value of "display" */
- String get display =>
- getPropertyValue('display');
+ String get display => getPropertyValue('display');
/** Sets the value of "display" */
set display(String value) {
@@ -6732,8 +6889,7 @@
}
/** Gets the value of "empty-cells" */
- String get emptyCells =>
- getPropertyValue('empty-cells');
+ String get emptyCells => getPropertyValue('empty-cells');
/** Sets the value of "empty-cells" */
set emptyCells(String value) {
@@ -6741,8 +6897,7 @@
}
/** Gets the value of "filter" */
- String get filter =>
- getPropertyValue('filter');
+ String get filter => getPropertyValue('filter');
/** Sets the value of "filter" */
set filter(String value) {
@@ -6750,8 +6905,7 @@
}
/** Gets the value of "flex" */
- String get flex =>
- getPropertyValue('flex');
+ String get flex => getPropertyValue('flex');
/** Sets the value of "flex" */
set flex(String value) {
@@ -6759,8 +6913,7 @@
}
/** Gets the value of "flex-basis" */
- String get flexBasis =>
- getPropertyValue('flex-basis');
+ String get flexBasis => getPropertyValue('flex-basis');
/** Sets the value of "flex-basis" */
set flexBasis(String value) {
@@ -6768,8 +6921,7 @@
}
/** Gets the value of "flex-direction" */
- String get flexDirection =>
- getPropertyValue('flex-direction');
+ String get flexDirection => getPropertyValue('flex-direction');
/** Sets the value of "flex-direction" */
set flexDirection(String value) {
@@ -6777,8 +6929,7 @@
}
/** Gets the value of "flex-flow" */
- String get flexFlow =>
- getPropertyValue('flex-flow');
+ String get flexFlow => getPropertyValue('flex-flow');
/** Sets the value of "flex-flow" */
set flexFlow(String value) {
@@ -6786,8 +6937,7 @@
}
/** Gets the value of "flex-grow" */
- String get flexGrow =>
- getPropertyValue('flex-grow');
+ String get flexGrow => getPropertyValue('flex-grow');
/** Sets the value of "flex-grow" */
set flexGrow(String value) {
@@ -6795,8 +6945,7 @@
}
/** Gets the value of "flex-shrink" */
- String get flexShrink =>
- getPropertyValue('flex-shrink');
+ String get flexShrink => getPropertyValue('flex-shrink');
/** Sets the value of "flex-shrink" */
set flexShrink(String value) {
@@ -6804,8 +6953,7 @@
}
/** Gets the value of "flex-wrap" */
- String get flexWrap =>
- getPropertyValue('flex-wrap');
+ String get flexWrap => getPropertyValue('flex-wrap');
/** Sets the value of "flex-wrap" */
set flexWrap(String value) {
@@ -6813,8 +6961,7 @@
}
/** Gets the value of "float" */
- String get float =>
- getPropertyValue('float');
+ String get float => getPropertyValue('float');
/** Sets the value of "float" */
set float(String value) {
@@ -6822,8 +6969,7 @@
}
/** Gets the value of "font" */
- String get font =>
- getPropertyValue('font');
+ String get font => getPropertyValue('font');
/** Sets the value of "font" */
set font(String value) {
@@ -6831,8 +6977,7 @@
}
/** Gets the value of "font-family" */
- String get fontFamily =>
- getPropertyValue('font-family');
+ String get fontFamily => getPropertyValue('font-family');
/** Sets the value of "font-family" */
set fontFamily(String value) {
@@ -6840,8 +6985,7 @@
}
/** Gets the value of "font-feature-settings" */
- String get fontFeatureSettings =>
- getPropertyValue('font-feature-settings');
+ String get fontFeatureSettings => getPropertyValue('font-feature-settings');
/** Sets the value of "font-feature-settings" */
set fontFeatureSettings(String value) {
@@ -6849,8 +6993,7 @@
}
/** Gets the value of "font-kerning" */
- String get fontKerning =>
- getPropertyValue('font-kerning');
+ String get fontKerning => getPropertyValue('font-kerning');
/** Sets the value of "font-kerning" */
set fontKerning(String value) {
@@ -6858,8 +7001,7 @@
}
/** Gets the value of "font-size" */
- String get fontSize =>
- getPropertyValue('font-size');
+ String get fontSize => getPropertyValue('font-size');
/** Sets the value of "font-size" */
set fontSize(String value) {
@@ -6867,8 +7009,7 @@
}
/** Gets the value of "font-size-delta" */
- String get fontSizeDelta =>
- getPropertyValue('font-size-delta');
+ String get fontSizeDelta => getPropertyValue('font-size-delta');
/** Sets the value of "font-size-delta" */
set fontSizeDelta(String value) {
@@ -6876,8 +7017,7 @@
}
/** Gets the value of "font-smoothing" */
- String get fontSmoothing =>
- getPropertyValue('font-smoothing');
+ String get fontSmoothing => getPropertyValue('font-smoothing');
/** Sets the value of "font-smoothing" */
set fontSmoothing(String value) {
@@ -6885,8 +7025,7 @@
}
/** Gets the value of "font-stretch" */
- String get fontStretch =>
- getPropertyValue('font-stretch');
+ String get fontStretch => getPropertyValue('font-stretch');
/** Sets the value of "font-stretch" */
set fontStretch(String value) {
@@ -6894,8 +7033,7 @@
}
/** Gets the value of "font-style" */
- String get fontStyle =>
- getPropertyValue('font-style');
+ String get fontStyle => getPropertyValue('font-style');
/** Sets the value of "font-style" */
set fontStyle(String value) {
@@ -6903,8 +7041,7 @@
}
/** Gets the value of "font-variant" */
- String get fontVariant =>
- getPropertyValue('font-variant');
+ String get fontVariant => getPropertyValue('font-variant');
/** Sets the value of "font-variant" */
set fontVariant(String value) {
@@ -6912,8 +7049,7 @@
}
/** Gets the value of "font-variant-ligatures" */
- String get fontVariantLigatures =>
- getPropertyValue('font-variant-ligatures');
+ String get fontVariantLigatures => getPropertyValue('font-variant-ligatures');
/** Sets the value of "font-variant-ligatures" */
set fontVariantLigatures(String value) {
@@ -6921,8 +7057,7 @@
}
/** Gets the value of "font-weight" */
- String get fontWeight =>
- getPropertyValue('font-weight');
+ String get fontWeight => getPropertyValue('font-weight');
/** Sets the value of "font-weight" */
set fontWeight(String value) {
@@ -6930,8 +7065,7 @@
}
/** Gets the value of "grid" */
- String get grid =>
- getPropertyValue('grid');
+ String get grid => getPropertyValue('grid');
/** Sets the value of "grid" */
set grid(String value) {
@@ -6939,8 +7073,7 @@
}
/** Gets the value of "grid-area" */
- String get gridArea =>
- getPropertyValue('grid-area');
+ String get gridArea => getPropertyValue('grid-area');
/** Sets the value of "grid-area" */
set gridArea(String value) {
@@ -6948,8 +7081,7 @@
}
/** Gets the value of "grid-auto-columns" */
- String get gridAutoColumns =>
- getPropertyValue('grid-auto-columns');
+ String get gridAutoColumns => getPropertyValue('grid-auto-columns');
/** Sets the value of "grid-auto-columns" */
set gridAutoColumns(String value) {
@@ -6957,8 +7089,7 @@
}
/** Gets the value of "grid-auto-flow" */
- String get gridAutoFlow =>
- getPropertyValue('grid-auto-flow');
+ String get gridAutoFlow => getPropertyValue('grid-auto-flow');
/** Sets the value of "grid-auto-flow" */
set gridAutoFlow(String value) {
@@ -6966,8 +7097,7 @@
}
/** Gets the value of "grid-auto-rows" */
- String get gridAutoRows =>
- getPropertyValue('grid-auto-rows');
+ String get gridAutoRows => getPropertyValue('grid-auto-rows');
/** Sets the value of "grid-auto-rows" */
set gridAutoRows(String value) {
@@ -6975,8 +7105,7 @@
}
/** Gets the value of "grid-column" */
- String get gridColumn =>
- getPropertyValue('grid-column');
+ String get gridColumn => getPropertyValue('grid-column');
/** Sets the value of "grid-column" */
set gridColumn(String value) {
@@ -6984,8 +7113,7 @@
}
/** Gets the value of "grid-column-end" */
- String get gridColumnEnd =>
- getPropertyValue('grid-column-end');
+ String get gridColumnEnd => getPropertyValue('grid-column-end');
/** Sets the value of "grid-column-end" */
set gridColumnEnd(String value) {
@@ -6993,8 +7121,7 @@
}
/** Gets the value of "grid-column-start" */
- String get gridColumnStart =>
- getPropertyValue('grid-column-start');
+ String get gridColumnStart => getPropertyValue('grid-column-start');
/** Sets the value of "grid-column-start" */
set gridColumnStart(String value) {
@@ -7002,8 +7129,7 @@
}
/** Gets the value of "grid-row" */
- String get gridRow =>
- getPropertyValue('grid-row');
+ String get gridRow => getPropertyValue('grid-row');
/** Sets the value of "grid-row" */
set gridRow(String value) {
@@ -7011,8 +7137,7 @@
}
/** Gets the value of "grid-row-end" */
- String get gridRowEnd =>
- getPropertyValue('grid-row-end');
+ String get gridRowEnd => getPropertyValue('grid-row-end');
/** Sets the value of "grid-row-end" */
set gridRowEnd(String value) {
@@ -7020,8 +7145,7 @@
}
/** Gets the value of "grid-row-start" */
- String get gridRowStart =>
- getPropertyValue('grid-row-start');
+ String get gridRowStart => getPropertyValue('grid-row-start');
/** Sets the value of "grid-row-start" */
set gridRowStart(String value) {
@@ -7029,8 +7153,7 @@
}
/** Gets the value of "grid-template" */
- String get gridTemplate =>
- getPropertyValue('grid-template');
+ String get gridTemplate => getPropertyValue('grid-template');
/** Sets the value of "grid-template" */
set gridTemplate(String value) {
@@ -7038,8 +7161,7 @@
}
/** Gets the value of "grid-template-areas" */
- String get gridTemplateAreas =>
- getPropertyValue('grid-template-areas');
+ String get gridTemplateAreas => getPropertyValue('grid-template-areas');
/** Sets the value of "grid-template-areas" */
set gridTemplateAreas(String value) {
@@ -7047,8 +7169,7 @@
}
/** Gets the value of "grid-template-columns" */
- String get gridTemplateColumns =>
- getPropertyValue('grid-template-columns');
+ String get gridTemplateColumns => getPropertyValue('grid-template-columns');
/** Sets the value of "grid-template-columns" */
set gridTemplateColumns(String value) {
@@ -7056,8 +7177,7 @@
}
/** Gets the value of "grid-template-rows" */
- String get gridTemplateRows =>
- getPropertyValue('grid-template-rows');
+ String get gridTemplateRows => getPropertyValue('grid-template-rows');
/** Sets the value of "grid-template-rows" */
set gridTemplateRows(String value) {
@@ -7065,8 +7185,7 @@
}
/** Gets the value of "height" */
- String get height =>
- getPropertyValue('height');
+ String get height => getPropertyValue('height');
/** Sets the value of "height" */
set height(String value) {
@@ -7074,8 +7193,7 @@
}
/** Gets the value of "highlight" */
- String get highlight =>
- getPropertyValue('highlight');
+ String get highlight => getPropertyValue('highlight');
/** Sets the value of "highlight" */
set highlight(String value) {
@@ -7083,8 +7201,7 @@
}
/** Gets the value of "hyphenate-character" */
- String get hyphenateCharacter =>
- getPropertyValue('hyphenate-character');
+ String get hyphenateCharacter => getPropertyValue('hyphenate-character');
/** Sets the value of "hyphenate-character" */
set hyphenateCharacter(String value) {
@@ -7092,8 +7209,7 @@
}
/** Gets the value of "image-rendering" */
- String get imageRendering =>
- getPropertyValue('image-rendering');
+ String get imageRendering => getPropertyValue('image-rendering');
/** Sets the value of "image-rendering" */
set imageRendering(String value) {
@@ -7101,8 +7217,7 @@
}
/** Gets the value of "isolation" */
- String get isolation =>
- getPropertyValue('isolation');
+ String get isolation => getPropertyValue('isolation');
/** Sets the value of "isolation" */
set isolation(String value) {
@@ -7110,8 +7225,7 @@
}
/** Gets the value of "justify-content" */
- String get justifyContent =>
- getPropertyValue('justify-content');
+ String get justifyContent => getPropertyValue('justify-content');
/** Sets the value of "justify-content" */
set justifyContent(String value) {
@@ -7119,8 +7233,7 @@
}
/** Gets the value of "justify-self" */
- String get justifySelf =>
- getPropertyValue('justify-self');
+ String get justifySelf => getPropertyValue('justify-self');
/** Sets the value of "justify-self" */
set justifySelf(String value) {
@@ -7128,8 +7241,7 @@
}
/** Gets the value of "left" */
- String get left =>
- getPropertyValue('left');
+ String get left => getPropertyValue('left');
/** Sets the value of "left" */
set left(String value) {
@@ -7137,8 +7249,7 @@
}
/** Gets the value of "letter-spacing" */
- String get letterSpacing =>
- getPropertyValue('letter-spacing');
+ String get letterSpacing => getPropertyValue('letter-spacing');
/** Sets the value of "letter-spacing" */
set letterSpacing(String value) {
@@ -7146,8 +7257,7 @@
}
/** Gets the value of "line-box-contain" */
- String get lineBoxContain =>
- getPropertyValue('line-box-contain');
+ String get lineBoxContain => getPropertyValue('line-box-contain');
/** Sets the value of "line-box-contain" */
set lineBoxContain(String value) {
@@ -7155,8 +7265,7 @@
}
/** Gets the value of "line-break" */
- String get lineBreak =>
- getPropertyValue('line-break');
+ String get lineBreak => getPropertyValue('line-break');
/** Sets the value of "line-break" */
set lineBreak(String value) {
@@ -7164,8 +7273,7 @@
}
/** Gets the value of "line-clamp" */
- String get lineClamp =>
- getPropertyValue('line-clamp');
+ String get lineClamp => getPropertyValue('line-clamp');
/** Sets the value of "line-clamp" */
set lineClamp(String value) {
@@ -7173,8 +7281,7 @@
}
/** Gets the value of "line-height" */
- String get lineHeight =>
- getPropertyValue('line-height');
+ String get lineHeight => getPropertyValue('line-height');
/** Sets the value of "line-height" */
set lineHeight(String value) {
@@ -7182,8 +7289,7 @@
}
/** Gets the value of "list-style" */
- String get listStyle =>
- getPropertyValue('list-style');
+ String get listStyle => getPropertyValue('list-style');
/** Sets the value of "list-style" */
set listStyle(String value) {
@@ -7191,8 +7297,7 @@
}
/** Gets the value of "list-style-image" */
- String get listStyleImage =>
- getPropertyValue('list-style-image');
+ String get listStyleImage => getPropertyValue('list-style-image');
/** Sets the value of "list-style-image" */
set listStyleImage(String value) {
@@ -7200,8 +7305,7 @@
}
/** Gets the value of "list-style-position" */
- String get listStylePosition =>
- getPropertyValue('list-style-position');
+ String get listStylePosition => getPropertyValue('list-style-position');
/** Sets the value of "list-style-position" */
set listStylePosition(String value) {
@@ -7209,8 +7313,7 @@
}
/** Gets the value of "list-style-type" */
- String get listStyleType =>
- getPropertyValue('list-style-type');
+ String get listStyleType => getPropertyValue('list-style-type');
/** Sets the value of "list-style-type" */
set listStyleType(String value) {
@@ -7218,8 +7321,7 @@
}
/** Gets the value of "locale" */
- String get locale =>
- getPropertyValue('locale');
+ String get locale => getPropertyValue('locale');
/** Sets the value of "locale" */
set locale(String value) {
@@ -7227,8 +7329,7 @@
}
/** Gets the value of "logical-height" */
- String get logicalHeight =>
- getPropertyValue('logical-height');
+ String get logicalHeight => getPropertyValue('logical-height');
/** Sets the value of "logical-height" */
set logicalHeight(String value) {
@@ -7236,8 +7337,7 @@
}
/** Gets the value of "logical-width" */
- String get logicalWidth =>
- getPropertyValue('logical-width');
+ String get logicalWidth => getPropertyValue('logical-width');
/** Sets the value of "logical-width" */
set logicalWidth(String value) {
@@ -7245,8 +7345,7 @@
}
/** Gets the value of "margin" */
- String get margin =>
- getPropertyValue('margin');
+ String get margin => getPropertyValue('margin');
/** Sets the value of "margin" */
set margin(String value) {
@@ -7254,8 +7353,7 @@
}
/** Gets the value of "margin-after" */
- String get marginAfter =>
- getPropertyValue('margin-after');
+ String get marginAfter => getPropertyValue('margin-after');
/** Sets the value of "margin-after" */
set marginAfter(String value) {
@@ -7263,8 +7361,7 @@
}
/** Gets the value of "margin-after-collapse" */
- String get marginAfterCollapse =>
- getPropertyValue('margin-after-collapse');
+ String get marginAfterCollapse => getPropertyValue('margin-after-collapse');
/** Sets the value of "margin-after-collapse" */
set marginAfterCollapse(String value) {
@@ -7272,8 +7369,7 @@
}
/** Gets the value of "margin-before" */
- String get marginBefore =>
- getPropertyValue('margin-before');
+ String get marginBefore => getPropertyValue('margin-before');
/** Sets the value of "margin-before" */
set marginBefore(String value) {
@@ -7281,8 +7377,7 @@
}
/** Gets the value of "margin-before-collapse" */
- String get marginBeforeCollapse =>
- getPropertyValue('margin-before-collapse');
+ String get marginBeforeCollapse => getPropertyValue('margin-before-collapse');
/** Sets the value of "margin-before-collapse" */
set marginBeforeCollapse(String value) {
@@ -7290,8 +7385,7 @@
}
/** Gets the value of "margin-bottom" */
- String get marginBottom =>
- getPropertyValue('margin-bottom');
+ String get marginBottom => getPropertyValue('margin-bottom');
/** Sets the value of "margin-bottom" */
set marginBottom(String value) {
@@ -7299,8 +7393,7 @@
}
/** Gets the value of "margin-bottom-collapse" */
- String get marginBottomCollapse =>
- getPropertyValue('margin-bottom-collapse');
+ String get marginBottomCollapse => getPropertyValue('margin-bottom-collapse');
/** Sets the value of "margin-bottom-collapse" */
set marginBottomCollapse(String value) {
@@ -7308,8 +7401,7 @@
}
/** Gets the value of "margin-collapse" */
- String get marginCollapse =>
- getPropertyValue('margin-collapse');
+ String get marginCollapse => getPropertyValue('margin-collapse');
/** Sets the value of "margin-collapse" */
set marginCollapse(String value) {
@@ -7317,8 +7409,7 @@
}
/** Gets the value of "margin-end" */
- String get marginEnd =>
- getPropertyValue('margin-end');
+ String get marginEnd => getPropertyValue('margin-end');
/** Sets the value of "margin-end" */
set marginEnd(String value) {
@@ -7326,8 +7417,7 @@
}
/** Gets the value of "margin-left" */
- String get marginLeft =>
- getPropertyValue('margin-left');
+ String get marginLeft => getPropertyValue('margin-left');
/** Sets the value of "margin-left" */
set marginLeft(String value) {
@@ -7335,8 +7425,7 @@
}
/** Gets the value of "margin-right" */
- String get marginRight =>
- getPropertyValue('margin-right');
+ String get marginRight => getPropertyValue('margin-right');
/** Sets the value of "margin-right" */
set marginRight(String value) {
@@ -7344,8 +7433,7 @@
}
/** Gets the value of "margin-start" */
- String get marginStart =>
- getPropertyValue('margin-start');
+ String get marginStart => getPropertyValue('margin-start');
/** Sets the value of "margin-start" */
set marginStart(String value) {
@@ -7353,8 +7441,7 @@
}
/** Gets the value of "margin-top" */
- String get marginTop =>
- getPropertyValue('margin-top');
+ String get marginTop => getPropertyValue('margin-top');
/** Sets the value of "margin-top" */
set marginTop(String value) {
@@ -7362,8 +7449,7 @@
}
/** Gets the value of "margin-top-collapse" */
- String get marginTopCollapse =>
- getPropertyValue('margin-top-collapse');
+ String get marginTopCollapse => getPropertyValue('margin-top-collapse');
/** Sets the value of "margin-top-collapse" */
set marginTopCollapse(String value) {
@@ -7371,8 +7457,7 @@
}
/** Gets the value of "mask" */
- String get mask =>
- getPropertyValue('mask');
+ String get mask => getPropertyValue('mask');
/** Sets the value of "mask" */
set mask(String value) {
@@ -7380,8 +7465,7 @@
}
/** Gets the value of "mask-box-image" */
- String get maskBoxImage =>
- getPropertyValue('mask-box-image');
+ String get maskBoxImage => getPropertyValue('mask-box-image');
/** Sets the value of "mask-box-image" */
set maskBoxImage(String value) {
@@ -7389,8 +7473,7 @@
}
/** Gets the value of "mask-box-image-outset" */
- String get maskBoxImageOutset =>
- getPropertyValue('mask-box-image-outset');
+ String get maskBoxImageOutset => getPropertyValue('mask-box-image-outset');
/** Sets the value of "mask-box-image-outset" */
set maskBoxImageOutset(String value) {
@@ -7398,8 +7481,7 @@
}
/** Gets the value of "mask-box-image-repeat" */
- String get maskBoxImageRepeat =>
- getPropertyValue('mask-box-image-repeat');
+ String get maskBoxImageRepeat => getPropertyValue('mask-box-image-repeat');
/** Sets the value of "mask-box-image-repeat" */
set maskBoxImageRepeat(String value) {
@@ -7407,8 +7489,7 @@
}
/** Gets the value of "mask-box-image-slice" */
- String get maskBoxImageSlice =>
- getPropertyValue('mask-box-image-slice');
+ String get maskBoxImageSlice => getPropertyValue('mask-box-image-slice');
/** Sets the value of "mask-box-image-slice" */
set maskBoxImageSlice(String value) {
@@ -7416,8 +7497,7 @@
}
/** Gets the value of "mask-box-image-source" */
- String get maskBoxImageSource =>
- getPropertyValue('mask-box-image-source');
+ String get maskBoxImageSource => getPropertyValue('mask-box-image-source');
/** Sets the value of "mask-box-image-source" */
set maskBoxImageSource(String value) {
@@ -7425,8 +7505,7 @@
}
/** Gets the value of "mask-box-image-width" */
- String get maskBoxImageWidth =>
- getPropertyValue('mask-box-image-width');
+ String get maskBoxImageWidth => getPropertyValue('mask-box-image-width');
/** Sets the value of "mask-box-image-width" */
set maskBoxImageWidth(String value) {
@@ -7434,8 +7513,7 @@
}
/** Gets the value of "mask-clip" */
- String get maskClip =>
- getPropertyValue('mask-clip');
+ String get maskClip => getPropertyValue('mask-clip');
/** Sets the value of "mask-clip" */
set maskClip(String value) {
@@ -7443,8 +7521,7 @@
}
/** Gets the value of "mask-composite" */
- String get maskComposite =>
- getPropertyValue('mask-composite');
+ String get maskComposite => getPropertyValue('mask-composite');
/** Sets the value of "mask-composite" */
set maskComposite(String value) {
@@ -7452,8 +7529,7 @@
}
/** Gets the value of "mask-image" */
- String get maskImage =>
- getPropertyValue('mask-image');
+ String get maskImage => getPropertyValue('mask-image');
/** Sets the value of "mask-image" */
set maskImage(String value) {
@@ -7461,8 +7537,7 @@
}
/** Gets the value of "mask-origin" */
- String get maskOrigin =>
- getPropertyValue('mask-origin');
+ String get maskOrigin => getPropertyValue('mask-origin');
/** Sets the value of "mask-origin" */
set maskOrigin(String value) {
@@ -7470,8 +7545,7 @@
}
/** Gets the value of "mask-position" */
- String get maskPosition =>
- getPropertyValue('mask-position');
+ String get maskPosition => getPropertyValue('mask-position');
/** Sets the value of "mask-position" */
set maskPosition(String value) {
@@ -7479,8 +7553,7 @@
}
/** Gets the value of "mask-position-x" */
- String get maskPositionX =>
- getPropertyValue('mask-position-x');
+ String get maskPositionX => getPropertyValue('mask-position-x');
/** Sets the value of "mask-position-x" */
set maskPositionX(String value) {
@@ -7488,8 +7561,7 @@
}
/** Gets the value of "mask-position-y" */
- String get maskPositionY =>
- getPropertyValue('mask-position-y');
+ String get maskPositionY => getPropertyValue('mask-position-y');
/** Sets the value of "mask-position-y" */
set maskPositionY(String value) {
@@ -7497,8 +7569,7 @@
}
/** Gets the value of "mask-repeat" */
- String get maskRepeat =>
- getPropertyValue('mask-repeat');
+ String get maskRepeat => getPropertyValue('mask-repeat');
/** Sets the value of "mask-repeat" */
set maskRepeat(String value) {
@@ -7506,8 +7577,7 @@
}
/** Gets the value of "mask-repeat-x" */
- String get maskRepeatX =>
- getPropertyValue('mask-repeat-x');
+ String get maskRepeatX => getPropertyValue('mask-repeat-x');
/** Sets the value of "mask-repeat-x" */
set maskRepeatX(String value) {
@@ -7515,8 +7585,7 @@
}
/** Gets the value of "mask-repeat-y" */
- String get maskRepeatY =>
- getPropertyValue('mask-repeat-y');
+ String get maskRepeatY => getPropertyValue('mask-repeat-y');
/** Sets the value of "mask-repeat-y" */
set maskRepeatY(String value) {
@@ -7524,8 +7593,7 @@
}
/** Gets the value of "mask-size" */
- String get maskSize =>
- getPropertyValue('mask-size');
+ String get maskSize => getPropertyValue('mask-size');
/** Sets the value of "mask-size" */
set maskSize(String value) {
@@ -7533,8 +7601,7 @@
}
/** Gets the value of "mask-source-type" */
- String get maskSourceType =>
- getPropertyValue('mask-source-type');
+ String get maskSourceType => getPropertyValue('mask-source-type');
/** Sets the value of "mask-source-type" */
set maskSourceType(String value) {
@@ -7542,8 +7609,7 @@
}
/** Gets the value of "max-height" */
- String get maxHeight =>
- getPropertyValue('max-height');
+ String get maxHeight => getPropertyValue('max-height');
/** Sets the value of "max-height" */
set maxHeight(String value) {
@@ -7551,8 +7617,7 @@
}
/** Gets the value of "max-logical-height" */
- String get maxLogicalHeight =>
- getPropertyValue('max-logical-height');
+ String get maxLogicalHeight => getPropertyValue('max-logical-height');
/** Sets the value of "max-logical-height" */
set maxLogicalHeight(String value) {
@@ -7560,8 +7625,7 @@
}
/** Gets the value of "max-logical-width" */
- String get maxLogicalWidth =>
- getPropertyValue('max-logical-width');
+ String get maxLogicalWidth => getPropertyValue('max-logical-width');
/** Sets the value of "max-logical-width" */
set maxLogicalWidth(String value) {
@@ -7569,8 +7633,7 @@
}
/** Gets the value of "max-width" */
- String get maxWidth =>
- getPropertyValue('max-width');
+ String get maxWidth => getPropertyValue('max-width');
/** Sets the value of "max-width" */
set maxWidth(String value) {
@@ -7578,8 +7641,7 @@
}
/** Gets the value of "max-zoom" */
- String get maxZoom =>
- getPropertyValue('max-zoom');
+ String get maxZoom => getPropertyValue('max-zoom');
/** Sets the value of "max-zoom" */
set maxZoom(String value) {
@@ -7587,8 +7649,7 @@
}
/** Gets the value of "min-height" */
- String get minHeight =>
- getPropertyValue('min-height');
+ String get minHeight => getPropertyValue('min-height');
/** Sets the value of "min-height" */
set minHeight(String value) {
@@ -7596,8 +7657,7 @@
}
/** Gets the value of "min-logical-height" */
- String get minLogicalHeight =>
- getPropertyValue('min-logical-height');
+ String get minLogicalHeight => getPropertyValue('min-logical-height');
/** Sets the value of "min-logical-height" */
set minLogicalHeight(String value) {
@@ -7605,8 +7665,7 @@
}
/** Gets the value of "min-logical-width" */
- String get minLogicalWidth =>
- getPropertyValue('min-logical-width');
+ String get minLogicalWidth => getPropertyValue('min-logical-width');
/** Sets the value of "min-logical-width" */
set minLogicalWidth(String value) {
@@ -7614,8 +7673,7 @@
}
/** Gets the value of "min-width" */
- String get minWidth =>
- getPropertyValue('min-width');
+ String get minWidth => getPropertyValue('min-width');
/** Sets the value of "min-width" */
set minWidth(String value) {
@@ -7623,8 +7681,7 @@
}
/** Gets the value of "min-zoom" */
- String get minZoom =>
- getPropertyValue('min-zoom');
+ String get minZoom => getPropertyValue('min-zoom');
/** Sets the value of "min-zoom" */
set minZoom(String value) {
@@ -7632,8 +7689,7 @@
}
/** Gets the value of "mix-blend-mode" */
- String get mixBlendMode =>
- getPropertyValue('mix-blend-mode');
+ String get mixBlendMode => getPropertyValue('mix-blend-mode');
/** Sets the value of "mix-blend-mode" */
set mixBlendMode(String value) {
@@ -7641,8 +7697,7 @@
}
/** Gets the value of "object-fit" */
- String get objectFit =>
- getPropertyValue('object-fit');
+ String get objectFit => getPropertyValue('object-fit');
/** Sets the value of "object-fit" */
set objectFit(String value) {
@@ -7650,8 +7705,7 @@
}
/** Gets the value of "object-position" */
- String get objectPosition =>
- getPropertyValue('object-position');
+ String get objectPosition => getPropertyValue('object-position');
/** Sets the value of "object-position" */
set objectPosition(String value) {
@@ -7659,8 +7713,7 @@
}
/** Gets the value of "opacity" */
- String get opacity =>
- getPropertyValue('opacity');
+ String get opacity => getPropertyValue('opacity');
/** Sets the value of "opacity" */
set opacity(String value) {
@@ -7668,8 +7721,7 @@
}
/** Gets the value of "order" */
- String get order =>
- getPropertyValue('order');
+ String get order => getPropertyValue('order');
/** Sets the value of "order" */
set order(String value) {
@@ -7677,8 +7729,7 @@
}
/** Gets the value of "orientation" */
- String get orientation =>
- getPropertyValue('orientation');
+ String get orientation => getPropertyValue('orientation');
/** Sets the value of "orientation" */
set orientation(String value) {
@@ -7686,8 +7737,7 @@
}
/** Gets the value of "orphans" */
- String get orphans =>
- getPropertyValue('orphans');
+ String get orphans => getPropertyValue('orphans');
/** Sets the value of "orphans" */
set orphans(String value) {
@@ -7695,8 +7745,7 @@
}
/** Gets the value of "outline" */
- String get outline =>
- getPropertyValue('outline');
+ String get outline => getPropertyValue('outline');
/** Sets the value of "outline" */
set outline(String value) {
@@ -7704,8 +7753,7 @@
}
/** Gets the value of "outline-color" */
- String get outlineColor =>
- getPropertyValue('outline-color');
+ String get outlineColor => getPropertyValue('outline-color');
/** Sets the value of "outline-color" */
set outlineColor(String value) {
@@ -7713,8 +7761,7 @@
}
/** Gets the value of "outline-offset" */
- String get outlineOffset =>
- getPropertyValue('outline-offset');
+ String get outlineOffset => getPropertyValue('outline-offset');
/** Sets the value of "outline-offset" */
set outlineOffset(String value) {
@@ -7722,8 +7769,7 @@
}
/** Gets the value of "outline-style" */
- String get outlineStyle =>
- getPropertyValue('outline-style');
+ String get outlineStyle => getPropertyValue('outline-style');
/** Sets the value of "outline-style" */
set outlineStyle(String value) {
@@ -7731,8 +7777,7 @@
}
/** Gets the value of "outline-width" */
- String get outlineWidth =>
- getPropertyValue('outline-width');
+ String get outlineWidth => getPropertyValue('outline-width');
/** Sets the value of "outline-width" */
set outlineWidth(String value) {
@@ -7740,8 +7785,7 @@
}
/** Gets the value of "overflow" */
- String get overflow =>
- getPropertyValue('overflow');
+ String get overflow => getPropertyValue('overflow');
/** Sets the value of "overflow" */
set overflow(String value) {
@@ -7749,8 +7793,7 @@
}
/** Gets the value of "overflow-wrap" */
- String get overflowWrap =>
- getPropertyValue('overflow-wrap');
+ String get overflowWrap => getPropertyValue('overflow-wrap');
/** Sets the value of "overflow-wrap" */
set overflowWrap(String value) {
@@ -7758,8 +7801,7 @@
}
/** Gets the value of "overflow-x" */
- String get overflowX =>
- getPropertyValue('overflow-x');
+ String get overflowX => getPropertyValue('overflow-x');
/** Sets the value of "overflow-x" */
set overflowX(String value) {
@@ -7767,8 +7809,7 @@
}
/** Gets the value of "overflow-y" */
- String get overflowY =>
- getPropertyValue('overflow-y');
+ String get overflowY => getPropertyValue('overflow-y');
/** Sets the value of "overflow-y" */
set overflowY(String value) {
@@ -7776,8 +7817,7 @@
}
/** Gets the value of "padding" */
- String get padding =>
- getPropertyValue('padding');
+ String get padding => getPropertyValue('padding');
/** Sets the value of "padding" */
set padding(String value) {
@@ -7785,8 +7825,7 @@
}
/** Gets the value of "padding-after" */
- String get paddingAfter =>
- getPropertyValue('padding-after');
+ String get paddingAfter => getPropertyValue('padding-after');
/** Sets the value of "padding-after" */
set paddingAfter(String value) {
@@ -7794,8 +7833,7 @@
}
/** Gets the value of "padding-before" */
- String get paddingBefore =>
- getPropertyValue('padding-before');
+ String get paddingBefore => getPropertyValue('padding-before');
/** Sets the value of "padding-before" */
set paddingBefore(String value) {
@@ -7803,8 +7841,7 @@
}
/** Gets the value of "padding-bottom" */
- String get paddingBottom =>
- getPropertyValue('padding-bottom');
+ String get paddingBottom => getPropertyValue('padding-bottom');
/** Sets the value of "padding-bottom" */
set paddingBottom(String value) {
@@ -7812,8 +7849,7 @@
}
/** Gets the value of "padding-end" */
- String get paddingEnd =>
- getPropertyValue('padding-end');
+ String get paddingEnd => getPropertyValue('padding-end');
/** Sets the value of "padding-end" */
set paddingEnd(String value) {
@@ -7821,8 +7857,7 @@
}
/** Gets the value of "padding-left" */
- String get paddingLeft =>
- getPropertyValue('padding-left');
+ String get paddingLeft => getPropertyValue('padding-left');
/** Sets the value of "padding-left" */
set paddingLeft(String value) {
@@ -7830,8 +7865,7 @@
}
/** Gets the value of "padding-right" */
- String get paddingRight =>
- getPropertyValue('padding-right');
+ String get paddingRight => getPropertyValue('padding-right');
/** Sets the value of "padding-right" */
set paddingRight(String value) {
@@ -7839,8 +7873,7 @@
}
/** Gets the value of "padding-start" */
- String get paddingStart =>
- getPropertyValue('padding-start');
+ String get paddingStart => getPropertyValue('padding-start');
/** Sets the value of "padding-start" */
set paddingStart(String value) {
@@ -7848,8 +7881,7 @@
}
/** Gets the value of "padding-top" */
- String get paddingTop =>
- getPropertyValue('padding-top');
+ String get paddingTop => getPropertyValue('padding-top');
/** Sets the value of "padding-top" */
set paddingTop(String value) {
@@ -7857,8 +7889,7 @@
}
/** Gets the value of "page" */
- String get page =>
- getPropertyValue('page');
+ String get page => getPropertyValue('page');
/** Sets the value of "page" */
set page(String value) {
@@ -7866,8 +7897,7 @@
}
/** Gets the value of "page-break-after" */
- String get pageBreakAfter =>
- getPropertyValue('page-break-after');
+ String get pageBreakAfter => getPropertyValue('page-break-after');
/** Sets the value of "page-break-after" */
set pageBreakAfter(String value) {
@@ -7875,8 +7905,7 @@
}
/** Gets the value of "page-break-before" */
- String get pageBreakBefore =>
- getPropertyValue('page-break-before');
+ String get pageBreakBefore => getPropertyValue('page-break-before');
/** Sets the value of "page-break-before" */
set pageBreakBefore(String value) {
@@ -7884,8 +7913,7 @@
}
/** Gets the value of "page-break-inside" */
- String get pageBreakInside =>
- getPropertyValue('page-break-inside');
+ String get pageBreakInside => getPropertyValue('page-break-inside');
/** Sets the value of "page-break-inside" */
set pageBreakInside(String value) {
@@ -7893,8 +7921,7 @@
}
/** Gets the value of "perspective" */
- String get perspective =>
- getPropertyValue('perspective');
+ String get perspective => getPropertyValue('perspective');
/** Sets the value of "perspective" */
set perspective(String value) {
@@ -7902,8 +7929,7 @@
}
/** Gets the value of "perspective-origin" */
- String get perspectiveOrigin =>
- getPropertyValue('perspective-origin');
+ String get perspectiveOrigin => getPropertyValue('perspective-origin');
/** Sets the value of "perspective-origin" */
set perspectiveOrigin(String value) {
@@ -7911,8 +7937,7 @@
}
/** Gets the value of "perspective-origin-x" */
- String get perspectiveOriginX =>
- getPropertyValue('perspective-origin-x');
+ String get perspectiveOriginX => getPropertyValue('perspective-origin-x');
/** Sets the value of "perspective-origin-x" */
set perspectiveOriginX(String value) {
@@ -7920,8 +7945,7 @@
}
/** Gets the value of "perspective-origin-y" */
- String get perspectiveOriginY =>
- getPropertyValue('perspective-origin-y');
+ String get perspectiveOriginY => getPropertyValue('perspective-origin-y');
/** Sets the value of "perspective-origin-y" */
set perspectiveOriginY(String value) {
@@ -7929,8 +7953,7 @@
}
/** Gets the value of "pointer-events" */
- String get pointerEvents =>
- getPropertyValue('pointer-events');
+ String get pointerEvents => getPropertyValue('pointer-events');
/** Sets the value of "pointer-events" */
set pointerEvents(String value) {
@@ -7938,8 +7961,7 @@
}
/** Gets the value of "position" */
- String get position =>
- getPropertyValue('position');
+ String get position => getPropertyValue('position');
/** Sets the value of "position" */
set position(String value) {
@@ -7947,8 +7969,7 @@
}
/** Gets the value of "print-color-adjust" */
- String get printColorAdjust =>
- getPropertyValue('print-color-adjust');
+ String get printColorAdjust => getPropertyValue('print-color-adjust');
/** Sets the value of "print-color-adjust" */
set printColorAdjust(String value) {
@@ -7956,8 +7977,7 @@
}
/** Gets the value of "quotes" */
- String get quotes =>
- getPropertyValue('quotes');
+ String get quotes => getPropertyValue('quotes');
/** Sets the value of "quotes" */
set quotes(String value) {
@@ -7965,8 +7985,7 @@
}
/** Gets the value of "resize" */
- String get resize =>
- getPropertyValue('resize');
+ String get resize => getPropertyValue('resize');
/** Sets the value of "resize" */
set resize(String value) {
@@ -7974,8 +7993,7 @@
}
/** Gets the value of "right" */
- String get right =>
- getPropertyValue('right');
+ String get right => getPropertyValue('right');
/** Sets the value of "right" */
set right(String value) {
@@ -7983,8 +8001,7 @@
}
/** Gets the value of "rtl-ordering" */
- String get rtlOrdering =>
- getPropertyValue('rtl-ordering');
+ String get rtlOrdering => getPropertyValue('rtl-ordering');
/** Sets the value of "rtl-ordering" */
set rtlOrdering(String value) {
@@ -7992,8 +8009,7 @@
}
/** Gets the value of "ruby-position" */
- String get rubyPosition =>
- getPropertyValue('ruby-position');
+ String get rubyPosition => getPropertyValue('ruby-position');
/** Sets the value of "ruby-position" */
set rubyPosition(String value) {
@@ -8001,8 +8017,7 @@
}
/** Gets the value of "scroll-behavior" */
- String get scrollBehavior =>
- getPropertyValue('scroll-behavior');
+ String get scrollBehavior => getPropertyValue('scroll-behavior');
/** Sets the value of "scroll-behavior" */
set scrollBehavior(String value) {
@@ -8010,8 +8025,7 @@
}
/** Gets the value of "shape-image-threshold" */
- String get shapeImageThreshold =>
- getPropertyValue('shape-image-threshold');
+ String get shapeImageThreshold => getPropertyValue('shape-image-threshold');
/** Sets the value of "shape-image-threshold" */
set shapeImageThreshold(String value) {
@@ -8019,8 +8033,7 @@
}
/** Gets the value of "shape-margin" */
- String get shapeMargin =>
- getPropertyValue('shape-margin');
+ String get shapeMargin => getPropertyValue('shape-margin');
/** Sets the value of "shape-margin" */
set shapeMargin(String value) {
@@ -8028,8 +8041,7 @@
}
/** Gets the value of "shape-outside" */
- String get shapeOutside =>
- getPropertyValue('shape-outside');
+ String get shapeOutside => getPropertyValue('shape-outside');
/** Sets the value of "shape-outside" */
set shapeOutside(String value) {
@@ -8037,8 +8049,7 @@
}
/** Gets the value of "size" */
- String get size =>
- getPropertyValue('size');
+ String get size => getPropertyValue('size');
/** Sets the value of "size" */
set size(String value) {
@@ -8046,8 +8057,7 @@
}
/** Gets the value of "speak" */
- String get speak =>
- getPropertyValue('speak');
+ String get speak => getPropertyValue('speak');
/** Sets the value of "speak" */
set speak(String value) {
@@ -8055,8 +8065,7 @@
}
/** Gets the value of "src" */
- String get src =>
- getPropertyValue('src');
+ String get src => getPropertyValue('src');
/** Sets the value of "src" */
set src(String value) {
@@ -8064,8 +8073,7 @@
}
/** Gets the value of "tab-size" */
- String get tabSize =>
- getPropertyValue('tab-size');
+ String get tabSize => getPropertyValue('tab-size');
/** Sets the value of "tab-size" */
set tabSize(String value) {
@@ -8073,8 +8081,7 @@
}
/** Gets the value of "table-layout" */
- String get tableLayout =>
- getPropertyValue('table-layout');
+ String get tableLayout => getPropertyValue('table-layout');
/** Sets the value of "table-layout" */
set tableLayout(String value) {
@@ -8082,8 +8089,7 @@
}
/** Gets the value of "tap-highlight-color" */
- String get tapHighlightColor =>
- getPropertyValue('tap-highlight-color');
+ String get tapHighlightColor => getPropertyValue('tap-highlight-color');
/** Sets the value of "tap-highlight-color" */
set tapHighlightColor(String value) {
@@ -8091,8 +8097,7 @@
}
/** Gets the value of "text-align" */
- String get textAlign =>
- getPropertyValue('text-align');
+ String get textAlign => getPropertyValue('text-align');
/** Sets the value of "text-align" */
set textAlign(String value) {
@@ -8100,8 +8105,7 @@
}
/** Gets the value of "text-align-last" */
- String get textAlignLast =>
- getPropertyValue('text-align-last');
+ String get textAlignLast => getPropertyValue('text-align-last');
/** Sets the value of "text-align-last" */
set textAlignLast(String value) {
@@ -8109,8 +8113,7 @@
}
/** Gets the value of "text-combine" */
- String get textCombine =>
- getPropertyValue('text-combine');
+ String get textCombine => getPropertyValue('text-combine');
/** Sets the value of "text-combine" */
set textCombine(String value) {
@@ -8118,8 +8121,7 @@
}
/** Gets the value of "text-decoration" */
- String get textDecoration =>
- getPropertyValue('text-decoration');
+ String get textDecoration => getPropertyValue('text-decoration');
/** Sets the value of "text-decoration" */
set textDecoration(String value) {
@@ -8127,8 +8129,7 @@
}
/** Gets the value of "text-decoration-color" */
- String get textDecorationColor =>
- getPropertyValue('text-decoration-color');
+ String get textDecorationColor => getPropertyValue('text-decoration-color');
/** Sets the value of "text-decoration-color" */
set textDecorationColor(String value) {
@@ -8136,8 +8137,7 @@
}
/** Gets the value of "text-decoration-line" */
- String get textDecorationLine =>
- getPropertyValue('text-decoration-line');
+ String get textDecorationLine => getPropertyValue('text-decoration-line');
/** Sets the value of "text-decoration-line" */
set textDecorationLine(String value) {
@@ -8145,8 +8145,7 @@
}
/** Gets the value of "text-decoration-style" */
- String get textDecorationStyle =>
- getPropertyValue('text-decoration-style');
+ String get textDecorationStyle => getPropertyValue('text-decoration-style');
/** Sets the value of "text-decoration-style" */
set textDecorationStyle(String value) {
@@ -8155,7 +8154,7 @@
/** Gets the value of "text-decorations-in-effect" */
String get textDecorationsInEffect =>
- getPropertyValue('text-decorations-in-effect');
+ getPropertyValue('text-decorations-in-effect');
/** Sets the value of "text-decorations-in-effect" */
set textDecorationsInEffect(String value) {
@@ -8163,8 +8162,7 @@
}
/** Gets the value of "text-emphasis" */
- String get textEmphasis =>
- getPropertyValue('text-emphasis');
+ String get textEmphasis => getPropertyValue('text-emphasis');
/** Sets the value of "text-emphasis" */
set textEmphasis(String value) {
@@ -8172,8 +8170,7 @@
}
/** Gets the value of "text-emphasis-color" */
- String get textEmphasisColor =>
- getPropertyValue('text-emphasis-color');
+ String get textEmphasisColor => getPropertyValue('text-emphasis-color');
/** Sets the value of "text-emphasis-color" */
set textEmphasisColor(String value) {
@@ -8181,8 +8178,7 @@
}
/** Gets the value of "text-emphasis-position" */
- String get textEmphasisPosition =>
- getPropertyValue('text-emphasis-position');
+ String get textEmphasisPosition => getPropertyValue('text-emphasis-position');
/** Sets the value of "text-emphasis-position" */
set textEmphasisPosition(String value) {
@@ -8190,8 +8186,7 @@
}
/** Gets the value of "text-emphasis-style" */
- String get textEmphasisStyle =>
- getPropertyValue('text-emphasis-style');
+ String get textEmphasisStyle => getPropertyValue('text-emphasis-style');
/** Sets the value of "text-emphasis-style" */
set textEmphasisStyle(String value) {
@@ -8199,8 +8194,7 @@
}
/** Gets the value of "text-fill-color" */
- String get textFillColor =>
- getPropertyValue('text-fill-color');
+ String get textFillColor => getPropertyValue('text-fill-color');
/** Sets the value of "text-fill-color" */
set textFillColor(String value) {
@@ -8208,8 +8202,7 @@
}
/** Gets the value of "text-indent" */
- String get textIndent =>
- getPropertyValue('text-indent');
+ String get textIndent => getPropertyValue('text-indent');
/** Sets the value of "text-indent" */
set textIndent(String value) {
@@ -8217,8 +8210,7 @@
}
/** Gets the value of "text-justify" */
- String get textJustify =>
- getPropertyValue('text-justify');
+ String get textJustify => getPropertyValue('text-justify');
/** Sets the value of "text-justify" */
set textJustify(String value) {
@@ -8227,7 +8219,7 @@
/** Gets the value of "text-line-through-color" */
String get textLineThroughColor =>
- getPropertyValue('text-line-through-color');
+ getPropertyValue('text-line-through-color');
/** Sets the value of "text-line-through-color" */
set textLineThroughColor(String value) {
@@ -8235,8 +8227,7 @@
}
/** Gets the value of "text-line-through-mode" */
- String get textLineThroughMode =>
- getPropertyValue('text-line-through-mode');
+ String get textLineThroughMode => getPropertyValue('text-line-through-mode');
/** Sets the value of "text-line-through-mode" */
set textLineThroughMode(String value) {
@@ -8245,7 +8236,7 @@
/** Gets the value of "text-line-through-style" */
String get textLineThroughStyle =>
- getPropertyValue('text-line-through-style');
+ getPropertyValue('text-line-through-style');
/** Sets the value of "text-line-through-style" */
set textLineThroughStyle(String value) {
@@ -8254,7 +8245,7 @@
/** Gets the value of "text-line-through-width" */
String get textLineThroughWidth =>
- getPropertyValue('text-line-through-width');
+ getPropertyValue('text-line-through-width');
/** Sets the value of "text-line-through-width" */
set textLineThroughWidth(String value) {
@@ -8262,8 +8253,7 @@
}
/** Gets the value of "text-orientation" */
- String get textOrientation =>
- getPropertyValue('text-orientation');
+ String get textOrientation => getPropertyValue('text-orientation');
/** Sets the value of "text-orientation" */
set textOrientation(String value) {
@@ -8271,8 +8261,7 @@
}
/** Gets the value of "text-overflow" */
- String get textOverflow =>
- getPropertyValue('text-overflow');
+ String get textOverflow => getPropertyValue('text-overflow');
/** Sets the value of "text-overflow" */
set textOverflow(String value) {
@@ -8280,8 +8269,7 @@
}
/** Gets the value of "text-overline-color" */
- String get textOverlineColor =>
- getPropertyValue('text-overline-color');
+ String get textOverlineColor => getPropertyValue('text-overline-color');
/** Sets the value of "text-overline-color" */
set textOverlineColor(String value) {
@@ -8289,8 +8277,7 @@
}
/** Gets the value of "text-overline-mode" */
- String get textOverlineMode =>
- getPropertyValue('text-overline-mode');
+ String get textOverlineMode => getPropertyValue('text-overline-mode');
/** Sets the value of "text-overline-mode" */
set textOverlineMode(String value) {
@@ -8298,8 +8285,7 @@
}
/** Gets the value of "text-overline-style" */
- String get textOverlineStyle =>
- getPropertyValue('text-overline-style');
+ String get textOverlineStyle => getPropertyValue('text-overline-style');
/** Sets the value of "text-overline-style" */
set textOverlineStyle(String value) {
@@ -8307,8 +8293,7 @@
}
/** Gets the value of "text-overline-width" */
- String get textOverlineWidth =>
- getPropertyValue('text-overline-width');
+ String get textOverlineWidth => getPropertyValue('text-overline-width');
/** Sets the value of "text-overline-width" */
set textOverlineWidth(String value) {
@@ -8316,8 +8301,7 @@
}
/** Gets the value of "text-rendering" */
- String get textRendering =>
- getPropertyValue('text-rendering');
+ String get textRendering => getPropertyValue('text-rendering');
/** Sets the value of "text-rendering" */
set textRendering(String value) {
@@ -8325,8 +8309,7 @@
}
/** Gets the value of "text-security" */
- String get textSecurity =>
- getPropertyValue('text-security');
+ String get textSecurity => getPropertyValue('text-security');
/** Sets the value of "text-security" */
set textSecurity(String value) {
@@ -8334,8 +8317,7 @@
}
/** Gets the value of "text-shadow" */
- String get textShadow =>
- getPropertyValue('text-shadow');
+ String get textShadow => getPropertyValue('text-shadow');
/** Sets the value of "text-shadow" */
set textShadow(String value) {
@@ -8343,8 +8325,7 @@
}
/** Gets the value of "text-stroke" */
- String get textStroke =>
- getPropertyValue('text-stroke');
+ String get textStroke => getPropertyValue('text-stroke');
/** Sets the value of "text-stroke" */
set textStroke(String value) {
@@ -8352,8 +8333,7 @@
}
/** Gets the value of "text-stroke-color" */
- String get textStrokeColor =>
- getPropertyValue('text-stroke-color');
+ String get textStrokeColor => getPropertyValue('text-stroke-color');
/** Sets the value of "text-stroke-color" */
set textStrokeColor(String value) {
@@ -8361,8 +8341,7 @@
}
/** Gets the value of "text-stroke-width" */
- String get textStrokeWidth =>
- getPropertyValue('text-stroke-width');
+ String get textStrokeWidth => getPropertyValue('text-stroke-width');
/** Sets the value of "text-stroke-width" */
set textStrokeWidth(String value) {
@@ -8370,8 +8349,7 @@
}
/** Gets the value of "text-transform" */
- String get textTransform =>
- getPropertyValue('text-transform');
+ String get textTransform => getPropertyValue('text-transform');
/** Sets the value of "text-transform" */
set textTransform(String value) {
@@ -8379,8 +8357,7 @@
}
/** Gets the value of "text-underline-color" */
- String get textUnderlineColor =>
- getPropertyValue('text-underline-color');
+ String get textUnderlineColor => getPropertyValue('text-underline-color');
/** Sets the value of "text-underline-color" */
set textUnderlineColor(String value) {
@@ -8388,8 +8365,7 @@
}
/** Gets the value of "text-underline-mode" */
- String get textUnderlineMode =>
- getPropertyValue('text-underline-mode');
+ String get textUnderlineMode => getPropertyValue('text-underline-mode');
/** Sets the value of "text-underline-mode" */
set textUnderlineMode(String value) {
@@ -8398,7 +8374,7 @@
/** Gets the value of "text-underline-position" */
String get textUnderlinePosition =>
- getPropertyValue('text-underline-position');
+ getPropertyValue('text-underline-position');
/** Sets the value of "text-underline-position" */
set textUnderlinePosition(String value) {
@@ -8406,8 +8382,7 @@
}
/** Gets the value of "text-underline-style" */
- String get textUnderlineStyle =>
- getPropertyValue('text-underline-style');
+ String get textUnderlineStyle => getPropertyValue('text-underline-style');
/** Sets the value of "text-underline-style" */
set textUnderlineStyle(String value) {
@@ -8415,8 +8390,7 @@
}
/** Gets the value of "text-underline-width" */
- String get textUnderlineWidth =>
- getPropertyValue('text-underline-width');
+ String get textUnderlineWidth => getPropertyValue('text-underline-width');
/** Sets the value of "text-underline-width" */
set textUnderlineWidth(String value) {
@@ -8424,8 +8398,7 @@
}
/** Gets the value of "top" */
- String get top =>
- getPropertyValue('top');
+ String get top => getPropertyValue('top');
/** Sets the value of "top" */
set top(String value) {
@@ -8433,8 +8406,7 @@
}
/** Gets the value of "touch-action" */
- String get touchAction =>
- getPropertyValue('touch-action');
+ String get touchAction => getPropertyValue('touch-action');
/** Sets the value of "touch-action" */
set touchAction(String value) {
@@ -8442,8 +8414,7 @@
}
/** Gets the value of "touch-action-delay" */
- String get touchActionDelay =>
- getPropertyValue('touch-action-delay');
+ String get touchActionDelay => getPropertyValue('touch-action-delay');
/** Sets the value of "touch-action-delay" */
set touchActionDelay(String value) {
@@ -8451,8 +8422,7 @@
}
/** Gets the value of "transform" */
- String get transform =>
- getPropertyValue('transform');
+ String get transform => getPropertyValue('transform');
/** Sets the value of "transform" */
set transform(String value) {
@@ -8460,8 +8430,7 @@
}
/** Gets the value of "transform-origin" */
- String get transformOrigin =>
- getPropertyValue('transform-origin');
+ String get transformOrigin => getPropertyValue('transform-origin');
/** Sets the value of "transform-origin" */
set transformOrigin(String value) {
@@ -8469,8 +8438,7 @@
}
/** Gets the value of "transform-origin-x" */
- String get transformOriginX =>
- getPropertyValue('transform-origin-x');
+ String get transformOriginX => getPropertyValue('transform-origin-x');
/** Sets the value of "transform-origin-x" */
set transformOriginX(String value) {
@@ -8478,8 +8446,7 @@
}
/** Gets the value of "transform-origin-y" */
- String get transformOriginY =>
- getPropertyValue('transform-origin-y');
+ String get transformOriginY => getPropertyValue('transform-origin-y');
/** Sets the value of "transform-origin-y" */
set transformOriginY(String value) {
@@ -8487,8 +8454,7 @@
}
/** Gets the value of "transform-origin-z" */
- String get transformOriginZ =>
- getPropertyValue('transform-origin-z');
+ String get transformOriginZ => getPropertyValue('transform-origin-z');
/** Sets the value of "transform-origin-z" */
set transformOriginZ(String value) {
@@ -8496,22 +8462,22 @@
}
/** Gets the value of "transform-style" */
- String get transformStyle =>
- getPropertyValue('transform-style');
+ String get transformStyle => getPropertyValue('transform-style');
/** Sets the value of "transform-style" */
set transformStyle(String value) {
setProperty('transform-style', value, '');
}
- /** Gets the value of "transition" */@SupportedBrowser(SupportedBrowser.CHROME)
+ /** Gets the value of "transition" */ @SupportedBrowser(
+ SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
- String get transition =>
- getPropertyValue('transition');
+ String get transition => getPropertyValue('transition');
- /** Sets the value of "transition" */@SupportedBrowser(SupportedBrowser.CHROME)
+ /** Sets the value of "transition" */ @SupportedBrowser(
+ SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
@@ -8520,8 +8486,7 @@
}
/** Gets the value of "transition-delay" */
- String get transitionDelay =>
- getPropertyValue('transition-delay');
+ String get transitionDelay => getPropertyValue('transition-delay');
/** Sets the value of "transition-delay" */
set transitionDelay(String value) {
@@ -8529,8 +8494,7 @@
}
/** Gets the value of "transition-duration" */
- String get transitionDuration =>
- getPropertyValue('transition-duration');
+ String get transitionDuration => getPropertyValue('transition-duration');
/** Sets the value of "transition-duration" */
set transitionDuration(String value) {
@@ -8538,8 +8502,7 @@
}
/** Gets the value of "transition-property" */
- String get transitionProperty =>
- getPropertyValue('transition-property');
+ String get transitionProperty => getPropertyValue('transition-property');
/** Sets the value of "transition-property" */
set transitionProperty(String value) {
@@ -8548,7 +8511,7 @@
/** Gets the value of "transition-timing-function" */
String get transitionTimingFunction =>
- getPropertyValue('transition-timing-function');
+ getPropertyValue('transition-timing-function');
/** Sets the value of "transition-timing-function" */
set transitionTimingFunction(String value) {
@@ -8556,8 +8519,7 @@
}
/** Gets the value of "unicode-bidi" */
- String get unicodeBidi =>
- getPropertyValue('unicode-bidi');
+ String get unicodeBidi => getPropertyValue('unicode-bidi');
/** Sets the value of "unicode-bidi" */
set unicodeBidi(String value) {
@@ -8565,8 +8527,7 @@
}
/** Gets the value of "unicode-range" */
- String get unicodeRange =>
- getPropertyValue('unicode-range');
+ String get unicodeRange => getPropertyValue('unicode-range');
/** Sets the value of "unicode-range" */
set unicodeRange(String value) {
@@ -8574,8 +8535,7 @@
}
/** Gets the value of "user-drag" */
- String get userDrag =>
- getPropertyValue('user-drag');
+ String get userDrag => getPropertyValue('user-drag');
/** Sets the value of "user-drag" */
set userDrag(String value) {
@@ -8583,8 +8543,7 @@
}
/** Gets the value of "user-modify" */
- String get userModify =>
- getPropertyValue('user-modify');
+ String get userModify => getPropertyValue('user-modify');
/** Sets the value of "user-modify" */
set userModify(String value) {
@@ -8592,8 +8551,7 @@
}
/** Gets the value of "user-select" */
- String get userSelect =>
- getPropertyValue('user-select');
+ String get userSelect => getPropertyValue('user-select');
/** Sets the value of "user-select" */
set userSelect(String value) {
@@ -8601,8 +8559,7 @@
}
/** Gets the value of "user-zoom" */
- String get userZoom =>
- getPropertyValue('user-zoom');
+ String get userZoom => getPropertyValue('user-zoom');
/** Sets the value of "user-zoom" */
set userZoom(String value) {
@@ -8610,8 +8567,7 @@
}
/** Gets the value of "vertical-align" */
- String get verticalAlign =>
- getPropertyValue('vertical-align');
+ String get verticalAlign => getPropertyValue('vertical-align');
/** Sets the value of "vertical-align" */
set verticalAlign(String value) {
@@ -8619,8 +8575,7 @@
}
/** Gets the value of "visibility" */
- String get visibility =>
- getPropertyValue('visibility');
+ String get visibility => getPropertyValue('visibility');
/** Sets the value of "visibility" */
set visibility(String value) {
@@ -8628,8 +8583,7 @@
}
/** Gets the value of "white-space" */
- String get whiteSpace =>
- getPropertyValue('white-space');
+ String get whiteSpace => getPropertyValue('white-space');
/** Sets the value of "white-space" */
set whiteSpace(String value) {
@@ -8637,8 +8591,7 @@
}
/** Gets the value of "widows" */
- String get widows =>
- getPropertyValue('widows');
+ String get widows => getPropertyValue('widows');
/** Sets the value of "widows" */
set widows(String value) {
@@ -8646,8 +8599,7 @@
}
/** Gets the value of "width" */
- String get width =>
- getPropertyValue('width');
+ String get width => getPropertyValue('width');
/** Sets the value of "width" */
set width(String value) {
@@ -8655,8 +8607,7 @@
}
/** Gets the value of "will-change" */
- String get willChange =>
- getPropertyValue('will-change');
+ String get willChange => getPropertyValue('will-change');
/** Sets the value of "will-change" */
set willChange(String value) {
@@ -8664,8 +8615,7 @@
}
/** Gets the value of "word-break" */
- String get wordBreak =>
- getPropertyValue('word-break');
+ String get wordBreak => getPropertyValue('word-break');
/** Sets the value of "word-break" */
set wordBreak(String value) {
@@ -8673,8 +8623,7 @@
}
/** Gets the value of "word-spacing" */
- String get wordSpacing =>
- getPropertyValue('word-spacing');
+ String get wordSpacing => getPropertyValue('word-spacing');
/** Sets the value of "word-spacing" */
set wordSpacing(String value) {
@@ -8682,8 +8631,7 @@
}
/** Gets the value of "word-wrap" */
- String get wordWrap =>
- getPropertyValue('word-wrap');
+ String get wordWrap => getPropertyValue('word-wrap');
/** Sets the value of "word-wrap" */
set wordWrap(String value) {
@@ -8691,8 +8639,7 @@
}
/** Gets the value of "wrap-flow" */
- String get wrapFlow =>
- getPropertyValue('wrap-flow');
+ String get wrapFlow => getPropertyValue('wrap-flow');
/** Sets the value of "wrap-flow" */
set wrapFlow(String value) {
@@ -8700,8 +8647,7 @@
}
/** Gets the value of "wrap-through" */
- String get wrapThrough =>
- getPropertyValue('wrap-through');
+ String get wrapThrough => getPropertyValue('wrap-through');
/** Sets the value of "wrap-through" */
set wrapThrough(String value) {
@@ -8709,8 +8655,7 @@
}
/** Gets the value of "writing-mode" */
- String get writingMode =>
- getPropertyValue('writing-mode');
+ String get writingMode => getPropertyValue('writing-mode');
/** Sets the value of "writing-mode" */
set writingMode(String value) {
@@ -8718,8 +8663,7 @@
}
/** Gets the value of "z-index" */
- String get zIndex =>
- getPropertyValue('z-index');
+ String get zIndex => getPropertyValue('z-index');
/** Sets the value of "z-index" */
set zIndex(String value) {
@@ -8727,8 +8671,7 @@
}
/** Gets the value of "zoom" */
- String get zoom =>
- getPropertyValue('zoom');
+ String get zoom => getPropertyValue('zoom');
/** Sets the value of "zoom" */
set zoom(String value) {
@@ -8739,13 +8682,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSStyleRule')
@Native("CSSStyleRule")
class CssStyleRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssStyleRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssStyleRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSStyleRule.selectorText')
@DocsEditable()
@@ -8759,13 +8703,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSStyleSheet')
@Native("CSSStyleSheet")
class CssStyleSheet extends StyleSheet {
// To suppress missing implicit constructor warnings.
- factory CssStyleSheet._() { throw new UnsupportedError("Not supported"); }
+ factory CssStyleSheet._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSStyleSheet.cssRules')
@DocsEditable()
@@ -8787,32 +8732,33 @@
@DomName('CSSStyleSheet.addRule')
@DocsEditable()
@Experimental() // non-standard
- int addRule(String selector, String style, [int index]) native;
+ int addRule(String selector, String style, [int index]) native ;
@DomName('CSSStyleSheet.deleteRule')
@DocsEditable()
- void deleteRule(int index) native;
+ void deleteRule(int index) native ;
@DomName('CSSStyleSheet.insertRule')
@DocsEditable()
- int insertRule(String rule, [int index]) native;
+ int insertRule(String rule, [int index]) native ;
@DomName('CSSStyleSheet.removeRule')
@DocsEditable()
@Experimental() // non-standard
- void removeRule(int index) native;
+ void removeRule(int index) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSSupportsRule')
@Native("CSSSupportsRule")
class CssSupportsRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssSupportsRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssSupportsRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSSupportsRule.conditionText')
@DocsEditable()
@@ -8826,24 +8772,25 @@
@DomName('CSSSupportsRule.deleteRule')
@DocsEditable()
- void deleteRule(int index) native;
+ void deleteRule(int index) native ;
@DomName('CSSSupportsRule.insertRule')
@DocsEditable()
- int insertRule(String rule, int index) native;
+ int insertRule(String rule, int index) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('CSSViewportRule')
@Experimental() // untriaged
@Native("CSSViewportRule")
class CssViewportRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssViewportRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssViewportRule._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('CSSViewportRule.style')
@DocsEditable()
@@ -8856,16 +8803,14 @@
// WARNING: Do not edit - generated code.
-
@DomName('CustomEvent')
@Native("CustomEvent")
class CustomEvent extends Event {
- @Creates('Null') // Set from Dart code; does not instantiate a native type.
+ @Creates('Null') // Set from Dart code; does not instantiate a native type.
var _dartDetail;
factory CustomEvent(String type,
{bool canBubble: true, bool cancelable: true, Object detail}) {
-
final CustomEvent e = document._createEvent('CustomEvent');
e._dartDetail = detail;
@@ -8876,7 +8821,7 @@
try {
detail = convertDartToNative_SerializedScriptValue(detail);
e._initCustomEvent(type, canBubble, cancelable, detail);
- } catch(_) {
+ } catch (_) {
e._initCustomEvent(type, canBubble, cancelable, null);
}
} else {
@@ -8903,13 +8848,16 @@
}
return CustomEvent._create_2(type);
}
- static CustomEvent _create_1(type, eventInitDict) => JS('CustomEvent', 'new CustomEvent(#,#)', type, eventInitDict);
- static CustomEvent _create_2(type) => JS('CustomEvent', 'new CustomEvent(#)', type);
+ static CustomEvent _create_1(type, eventInitDict) =>
+ JS('CustomEvent', 'new CustomEvent(#,#)', type, eventInitDict);
+ static CustomEvent _create_2(type) =>
+ JS('CustomEvent', 'new CustomEvent(#)', type);
@DomName('CustomEvent._detail')
@DocsEditable()
@Experimental() // untriaged
- dynamic get _detail => convertNativeToDart_SerializedScriptValue(this._get__detail);
+ dynamic get _detail =>
+ convertNativeToDart_SerializedScriptValue(this._get__detail);
@JSName('detail')
@DomName('CustomEvent._detail')
@DocsEditable()
@@ -8920,20 +8868,21 @@
@JSName('initCustomEvent')
@DomName('CustomEvent.initCustomEvent')
@DocsEditable()
- void _initCustomEvent(String type, bool bubbles, bool cancelable, Object detail) native;
-
+ void _initCustomEvent(
+ String type, bool bubbles, bool cancelable, Object detail) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLDListElement')
@Native("HTMLDListElement")
class DListElement extends HtmlElement {
// To suppress missing implicit constructor warnings.
- factory DListElement._() { throw new UnsupportedError("Not supported"); }
+ factory DListElement._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('HTMLDListElement.HTMLDListElement')
@DocsEditable()
@@ -8949,7 +8898,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLDataListElement')
@SupportedBrowser(SupportedBrowser.CHROME)
@@ -8959,7 +8907,9 @@
@Native("HTMLDataListElement")
class DataListElement extends HtmlElement {
// To suppress missing implicit constructor warnings.
- factory DataListElement._() { throw new UnsupportedError("Not supported"); }
+ factory DataListElement._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('HTMLDataListElement.HTMLDataListElement')
@DocsEditable()
@@ -8984,14 +8934,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DataTransfer')
@Experimental() // untriaged
@Native("DataTransfer")
class DataTransfer extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DataTransfer._() { throw new UnsupportedError("Not supported"); }
+ factory DataTransfer._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DataTransfer.dropEffect')
@DocsEditable()
@@ -9023,28 +8974,27 @@
@DomName('DataTransfer.clearData')
@DocsEditable()
@Experimental() // untriaged
- void clearData([String format]) native;
+ void clearData([String format]) native ;
@DomName('DataTransfer.getData')
@DocsEditable()
@Experimental() // untriaged
- String getData(String format) native;
+ String getData(String format) native ;
@DomName('DataTransfer.setData')
@DocsEditable()
@Experimental() // untriaged
- void setData(String format, String data) native;
+ void setData(String format, String data) native ;
@DomName('DataTransfer.setDragImage')
@DocsEditable()
@Experimental() // untriaged
- void setDragImage(Element image, int x, int y) native;
+ void setDragImage(Element image, int x, int y) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DataTransferItem')
// http://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#the-datatransferitem-interface
@@ -9052,7 +9002,9 @@
@Native("DataTransferItem")
class DataTransferItem extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DataTransferItem._() { throw new UnsupportedError("Not supported"); }
+ factory DataTransferItem._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DataTransferItem.kind')
@DocsEditable()
@@ -9064,20 +9016,21 @@
@DomName('DataTransferItem.getAsFile')
@DocsEditable()
- Blob getAsFile() native;
+ Blob getAsFile() native ;
@JSName('getAsString')
@DomName('DataTransferItem.getAsString')
@DocsEditable()
- void _getAsString(_StringCallback callback) native;
+ void _getAsString(_StringCallback callback) native ;
@JSName('getAsString')
@DomName('DataTransferItem.getAsString')
@DocsEditable()
Future<String> getAsString() {
var completer = new Completer<String>();
- _getAsString(
- (value) { completer.complete(value); });
+ _getAsString((value) {
+ completer.complete(value);
+ });
return completer.future;
}
@@ -9087,13 +9040,12 @@
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
- Entry getAsEntry() native;
+ Entry getAsEntry() native ;
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DataTransferItemList')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-datatransferitemlist-interface
@@ -9101,7 +9053,9 @@
@Native("DataTransferItemList")
class DataTransferItemList extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DataTransferItemList._() { throw new UnsupportedError("Not supported"); }
+ factory DataTransferItemList._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DataTransferItemList.length')
@DocsEditable()
@@ -9109,36 +9063,34 @@
@DomName('DataTransferItemList.add')
@DocsEditable()
- DataTransferItem add(data_OR_file, [String type]) native;
+ DataTransferItem add(data_OR_file, [String type]) native ;
@JSName('add')
@DomName('DataTransferItemList.add')
@DocsEditable()
- DataTransferItem addData(String data, String type) native;
+ DataTransferItem addData(String data, String type) native ;
@JSName('add')
@DomName('DataTransferItemList.add')
@DocsEditable()
- DataTransferItem addFile(File file) native;
+ DataTransferItem addFile(File file) native ;
@DomName('DataTransferItemList.clear')
@DocsEditable()
- void clear() native;
+ void clear() native ;
@DomName('DataTransferItemList.item')
@DocsEditable()
- DataTransferItem item(int index) native;
+ DataTransferItem item(int index) native ;
@DomName('DataTransferItemList.remove')
@DocsEditable()
@Experimental() // untriaged
- void remove(int index) native;
+ void remove(int index) native ;
-
- DataTransferItem operator[] (int index) {
+ DataTransferItem operator [](int index) {
return JS('DataTransferItem', '#[#]', this, index);
}
-
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -9146,7 +9098,6 @@
// WARNING: Do not edit - generated code.
-
@DomName('DatabaseCallback')
// http://www.w3.org/TR/webdatabase/#databasecallback
@Experimental() // deprecated
@@ -9155,14 +9106,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DedicatedWorkerGlobalScope')
@Experimental() // untriaged
@Native("DedicatedWorkerGlobalScope")
class DedicatedWorkerGlobalScope extends WorkerGlobalScope {
// To suppress missing implicit constructor warnings.
- factory DedicatedWorkerGlobalScope._() { throw new UnsupportedError("Not supported"); }
+ factory DedicatedWorkerGlobalScope._() {
+ throw new UnsupportedError("Not supported");
+ }
/**
* Static factory designed to expose `message` events to event
@@ -9173,7 +9125,8 @@
@DomName('DedicatedWorkerGlobalScope.messageEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
+ static const EventStreamProvider<MessageEvent> messageEvent =
+ const EventStreamProvider<MessageEvent>('message');
@DomName('DedicatedWorkerGlobalScope.postMessage')
@DocsEditable()
@@ -9188,16 +9141,17 @@
_postMessage_2(message_1);
return;
}
+
@JSName('postMessage')
@DomName('DedicatedWorkerGlobalScope.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void _postMessage_1(message, List<MessagePort> transfer) native;
+ void _postMessage_1(message, List<MessagePort> transfer) native ;
@JSName('postMessage')
@DomName('DedicatedWorkerGlobalScope.postMessage')
@DocsEditable()
@Experimental() // untriaged
- void _postMessage_2(message) native;
+ void _postMessage_2(message) native ;
/// Stream of `message` events handled by this [DedicatedWorkerGlobalScope].
@DomName('DedicatedWorkerGlobalScope.onmessage')
@@ -9209,14 +9163,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DefaultSessionStartEvent')
@Experimental() // untriaged
@Native("DefaultSessionStartEvent")
class DefaultSessionStartEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory DefaultSessionStartEvent._() { throw new UnsupportedError("Not supported"); }
+ factory DefaultSessionStartEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DefaultSessionStartEvent.DefaultSessionStartEvent')
@DocsEditable()
@@ -9227,8 +9182,13 @@
}
return DefaultSessionStartEvent._create_2(type);
}
- static DefaultSessionStartEvent _create_1(type, eventInitDict) => JS('DefaultSessionStartEvent', 'new DefaultSessionStartEvent(#,#)', type, eventInitDict);
- static DefaultSessionStartEvent _create_2(type) => JS('DefaultSessionStartEvent', 'new DefaultSessionStartEvent(#)', type);
+ static DefaultSessionStartEvent _create_1(type, eventInitDict) => JS(
+ 'DefaultSessionStartEvent',
+ 'new DefaultSessionStartEvent(#,#)',
+ type,
+ eventInitDict);
+ static DefaultSessionStartEvent _create_2(type) =>
+ JS('DefaultSessionStartEvent', 'new DefaultSessionStartEvent(#)', type);
@DomName('DefaultSessionStartEvent.session')
@DocsEditable()
@@ -9239,14 +9199,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DeprecatedStorageInfo')
@Experimental() // untriaged
@Native("DeprecatedStorageInfo")
class DeprecatedStorageInfo extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DeprecatedStorageInfo._() { throw new UnsupportedError("Not supported"); }
+ factory DeprecatedStorageInfo._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DeprecatedStorageInfo.PERSISTENT')
@DocsEditable()
@@ -9261,41 +9222,48 @@
@DomName('DeprecatedStorageInfo.queryUsageAndQuota')
@DocsEditable()
@Experimental() // untriaged
- void queryUsageAndQuota(int storageType, [StorageUsageCallback usageCallback, StorageErrorCallback errorCallback]) native;
+ void queryUsageAndQuota(int storageType,
+ [StorageUsageCallback usageCallback,
+ StorageErrorCallback errorCallback]) native ;
@DomName('DeprecatedStorageInfo.requestQuota')
@DocsEditable()
@Experimental() // untriaged
- void requestQuota(int storageType, int newQuotaInBytes, [StorageQuotaCallback quotaCallback, StorageErrorCallback errorCallback]) native;
+ void requestQuota(int storageType, int newQuotaInBytes,
+ [StorageQuotaCallback quotaCallback,
+ StorageErrorCallback errorCallback]) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DeprecatedStorageQuota')
@Experimental() // untriaged
@Native("DeprecatedStorageQuota")
class DeprecatedStorageQuota extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DeprecatedStorageQuota._() { throw new UnsupportedError("Not supported"); }
+ factory DeprecatedStorageQuota._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DeprecatedStorageQuota.queryUsageAndQuota')
@DocsEditable()
@Experimental() // untriaged
- void queryUsageAndQuota(StorageUsageCallback usageCallback, [StorageErrorCallback errorCallback]) native;
+ void queryUsageAndQuota(StorageUsageCallback usageCallback,
+ [StorageErrorCallback errorCallback]) native ;
@DomName('DeprecatedStorageQuota.requestQuota')
@DocsEditable()
@Experimental() // untriaged
- void requestQuota(int newQuotaInBytes, [StorageQuotaCallback quotaCallback, StorageErrorCallback errorCallback]) native;
+ void requestQuota(int newQuotaInBytes,
+ [StorageQuotaCallback quotaCallback,
+ StorageErrorCallback errorCallback]) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLDetailsElement')
@SupportedBrowser(SupportedBrowser.CHROME)
@@ -9304,7 +9272,9 @@
@Native("HTMLDetailsElement")
class DetailsElement extends HtmlElement {
// To suppress missing implicit constructor warnings.
- factory DetailsElement._() { throw new UnsupportedError("Not supported"); }
+ factory DetailsElement._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('HTMLDetailsElement.HTMLDetailsElement')
@DocsEditable()
@@ -9327,7 +9297,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DeviceAcceleration')
// http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
@@ -9335,7 +9304,9 @@
@Native("DeviceAcceleration")
class DeviceAcceleration extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DeviceAcceleration._() { throw new UnsupportedError("Not supported"); }
+ factory DeviceAcceleration._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DeviceAcceleration.x')
@DocsEditable()
@@ -9353,14 +9324,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DeviceLightEvent')
@Experimental() // untriaged
@Native("DeviceLightEvent")
class DeviceLightEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory DeviceLightEvent._() { throw new UnsupportedError("Not supported"); }
+ factory DeviceLightEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DeviceLightEvent.DeviceLightEvent')
@DocsEditable()
@@ -9371,8 +9343,10 @@
}
return DeviceLightEvent._create_2(type);
}
- static DeviceLightEvent _create_1(type, eventInitDict) => JS('DeviceLightEvent', 'new DeviceLightEvent(#,#)', type, eventInitDict);
- static DeviceLightEvent _create_2(type) => JS('DeviceLightEvent', 'new DeviceLightEvent(#)', type);
+ static DeviceLightEvent _create_1(type, eventInitDict) =>
+ JS('DeviceLightEvent', 'new DeviceLightEvent(#,#)', type, eventInitDict);
+ static DeviceLightEvent _create_2(type) =>
+ JS('DeviceLightEvent', 'new DeviceLightEvent(#)', type);
@DomName('DeviceLightEvent.value')
@DocsEditable()
@@ -9383,7 +9357,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DeviceMotionEvent')
// http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
@@ -9391,7 +9364,9 @@
@Native("DeviceMotionEvent")
class DeviceMotionEvent extends Event {
// To suppress missing implicit constructor warnings.
- factory DeviceMotionEvent._() { throw new UnsupportedError("Not supported"); }
+ factory DeviceMotionEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DeviceMotionEvent.acceleration')
@DocsEditable()
@@ -9412,7 +9387,14 @@
@DomName('DeviceMotionEvent.initDeviceMotionEvent')
@DocsEditable()
@Experimental() // untriaged
- void initDeviceMotionEvent(String type, bool bubbles, bool cancelable, DeviceAcceleration acceleration, DeviceAcceleration accelerationIncludingGravity, DeviceRotationRate rotationRate, num interval) native;
+ void initDeviceMotionEvent(
+ String type,
+ bool bubbles,
+ bool cancelable,
+ DeviceAcceleration acceleration,
+ DeviceAcceleration accelerationIncludingGravity,
+ DeviceRotationRate rotationRate,
+ num interval) native ;
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -9426,15 +9408,21 @@
@Native("DeviceOrientationEvent")
class DeviceOrientationEvent extends Event {
factory DeviceOrientationEvent(String type,
- {bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0,
- num gamma: 0, bool absolute: false}) {
+ {bool canBubble: true,
+ bool cancelable: true,
+ num alpha: 0,
+ num beta: 0,
+ num gamma: 0,
+ bool absolute: false}) {
DeviceOrientationEvent e = document._createEvent("DeviceOrientationEvent");
- e._initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta,
- gamma, absolute);
+ e._initDeviceOrientationEvent(
+ type, canBubble, cancelable, alpha, beta, gamma, absolute);
return e;
}
// To suppress missing implicit constructor warnings.
- factory DeviceOrientationEvent._() { throw new UnsupportedError("Not supported"); }
+ factory DeviceOrientationEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DeviceOrientationEvent.absolute')
@DocsEditable()
@@ -9455,14 +9443,13 @@
@JSName('initDeviceOrientationEvent')
@DomName('DeviceOrientationEvent.initDeviceOrientationEvent')
@DocsEditable()
- void _initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, num alpha, num beta, num gamma, bool absolute) native;
-
+ void _initDeviceOrientationEvent(String type, bool bubbles, bool cancelable,
+ num alpha, num beta, num gamma, bool absolute) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DeviceRotationRate')
// http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
@@ -9470,7 +9457,9 @@
@Native("DeviceRotationRate")
class DeviceRotationRate extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DeviceRotationRate._() { throw new UnsupportedError("Not supported"); }
+ factory DeviceRotationRate._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DeviceRotationRate.alpha')
@DocsEditable()
@@ -9488,14 +9477,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLDialogElement')
@Unstable()
@Native("HTMLDialogElement")
class DialogElement extends HtmlElement {
// To suppress missing implicit constructor warnings.
- factory DialogElement._() { throw new UnsupportedError("Not supported"); }
+ factory DialogElement._() {
+ throw new UnsupportedError("Not supported");
+ }
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -9514,35 +9504,33 @@
@DomName('HTMLDialogElement.close')
@DocsEditable()
- void close(String returnValue) native;
+ void close(String returnValue) native ;
@DomName('HTMLDialogElement.show')
@DocsEditable()
- void show() native;
+ void show() native ;
@DomName('HTMLDialogElement.showModal')
@DocsEditable()
- void showModal() native;
+ void showModal() native ;
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DomName('DirectoryEntry')
// http://www.w3.org/TR/file-system-api/#the-directoryentry-interface
@Experimental()
@Native("DirectoryEntry")
class DirectoryEntry extends Entry {
-
/**
* Create a new directory with the specified `path`. If `exclusive` is true,
* the returned Future will complete with an error if a directory already
* exists with the specified `path`.
*/
Future<Entry> createDirectory(String path, {bool exclusive: false}) {
- return _getDirectory(path, options:
- {'create': true, 'exclusive': exclusive});
+ return _getDirectory(path,
+ options: {'create': true, 'exclusive': exclusive});
}
/**
@@ -9571,16 +9559,22 @@
Future<Entry> getFile(String path) {
return _getFile(path);
}
+
// To suppress missing implicit constructor warnings.
- factory DirectoryEntry._() { throw new UnsupportedError("Not supported"); }
+ factory DirectoryEntry._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DirectoryEntry.createReader')
@DocsEditable()
- DirectoryReader createReader() native;
+ DirectoryReader createReader() native ;
@DomName('DirectoryEntry.getDirectory')
@DocsEditable()
- void __getDirectory(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) {
+ void __getDirectory(String path,
+ {Map options,
+ _EntryCallback successCallback,
+ _ErrorCallback errorCallback}) {
if (errorCallback != null) {
var options_1 = convertDartToNative_Dictionary(options);
__getDirectory_1(path, options_1, successCallback, errorCallback);
@@ -9599,37 +9593,44 @@
__getDirectory_4(path);
return;
}
+
@JSName('getDirectory')
@DomName('DirectoryEntry.getDirectory')
@DocsEditable()
- void __getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCallback errorCallback) native;
+ void __getDirectory_1(path, options, _EntryCallback successCallback,
+ _ErrorCallback errorCallback) native ;
@JSName('getDirectory')
@DomName('DirectoryEntry.getDirectory')
@DocsEditable()
- void __getDirectory_2(path, options, _EntryCallback successCallback) native;
+ void __getDirectory_2(path, options, _EntryCallback successCallback) native ;
@JSName('getDirectory')
@DomName('DirectoryEntry.getDirectory')
@DocsEditable()
- void __getDirectory_3(path, options) native;
+ void __getDirectory_3(path, options) native ;
@JSName('getDirectory')
@DomName('DirectoryEntry.getDirectory')
@DocsEditable()
- void __getDirectory_4(path) native;
+ void __getDirectory_4(path) native ;
@JSName('getDirectory')
@DomName('DirectoryEntry.getDirectory')
@DocsEditable()
Future<Entry> _getDirectory(String path, {Map options}) {
var completer = new Completer<Entry>();
- __getDirectory(path, options : options,
- successCallback : (value) { completer.complete(value); },
- errorCallback : (error) { completer.completeError(error); });
+ __getDirectory(path, options: options, successCallback: (value) {
+ completer.complete(value);
+ }, errorCallback: (error) {
+ completer.completeError(error);
+ });
return completer.future;
}
@DomName('DirectoryEntry.getFile')
@DocsEditable()
- void __getFile(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) {
+ void __getFile(String path,
+ {Map options,
+ _EntryCallback successCallback,
+ _ErrorCallback errorCallback}) {
if (errorCallback != null) {
var options_1 = convertDartToNative_Dictionary(options);
__getFile_1(path, options_1, successCallback, errorCallback);
@@ -9648,56 +9649,61 @@
__getFile_4(path);
return;
}
+
@JSName('getFile')
@DomName('DirectoryEntry.getFile')
@DocsEditable()
- void __getFile_1(path, options, _EntryCallback successCallback, _ErrorCallback errorCallback) native;
+ void __getFile_1(path, options, _EntryCallback successCallback,
+ _ErrorCallback errorCallback) native ;
@JSName('getFile')
@DomName('DirectoryEntry.getFile')
@DocsEditable()
- void __getFile_2(path, options, _EntryCallback successCallback) native;
+ void __getFile_2(path, options, _EntryCallback successCallback) native ;
@JSName('getFile')
@DomName('DirectoryEntry.getFile')
@DocsEditable()
- void __getFile_3(path, options) native;
+ void __getFile_3(path, options) native ;
@JSName('getFile')
@DomName('DirectoryEntry.getFile')
@DocsEditable()
- void __getFile_4(path) native;
+ void __getFile_4(path) native ;
@JSName('getFile')
@DomName('DirectoryEntry.getFile')
@DocsEditable()
Future<Entry> _getFile(String path, {Map options}) {
var completer = new Completer<Entry>();
- __getFile(path, options : options,
- successCallback : (value) { completer.complete(value); },
- errorCallback : (error) { completer.completeError(error); });
+ __getFile(path, options: options, successCallback: (value) {
+ completer.complete(value);
+ }, errorCallback: (error) {
+ completer.completeError(error);
+ });
return completer.future;
}
@JSName('removeRecursively')
@DomName('DirectoryEntry.removeRecursively')
@DocsEditable()
- void _removeRecursively(VoidCallback successCallback, [_ErrorCallback errorCallback]) native;
+ void _removeRecursively(VoidCallback successCallback,
+ [_ErrorCallback errorCallback]) native ;
@JSName('removeRecursively')
@DomName('DirectoryEntry.removeRecursively')
@DocsEditable()
Future removeRecursively() {
var completer = new Completer();
- _removeRecursively(
- () { completer.complete(); },
- (error) { completer.completeError(error); });
+ _removeRecursively(() {
+ completer.complete();
+ }, (error) {
+ completer.completeError(error);
+ });
return completer.future;
}
-
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DirectoryReader')
// http://www.w3.org/TR/file-system-api/#the-directoryreader-interface
@@ -9705,21 +9711,26 @@
@Native("DirectoryReader")
class DirectoryReader extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DirectoryReader._() { throw new UnsupportedError("Not supported"); }
+ factory DirectoryReader._() {
+ throw new UnsupportedError("Not supported");
+ }
@JSName('readEntries')
@DomName('DirectoryReader.readEntries')
@DocsEditable()
- void _readEntries(_EntriesCallback successCallback, [_ErrorCallback errorCallback]) native;
+ void _readEntries(_EntriesCallback successCallback,
+ [_ErrorCallback errorCallback]) native ;
@JSName('readEntries')
@DomName('DirectoryReader.readEntries')
@DocsEditable()
Future<List<Entry>> readEntries() {
var completer = new Completer<List<Entry>>();
- _readEntries(
- (value) { completer.complete(value); },
- (error) { completer.completeError(error); });
+ _readEntries((value) {
+ completer.complete(value);
+ }, (error) {
+ completer.completeError(error);
+ });
return completer.future;
}
}
@@ -9727,7 +9738,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
/**
* A generic container for content on an HTML page;
@@ -9755,7 +9765,9 @@
@Native("HTMLDivElement")
class DivElement extends HtmlElement {
// To suppress missing implicit constructor warnings.
- factory DivElement._() { throw new UnsupportedError("Not supported"); }
+ factory DivElement._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('HTMLDivElement.HTMLDivElement')
@DocsEditable()
@@ -9771,7 +9783,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
/**
* The base class for all documents.
@@ -9784,21 +9795,23 @@
*/
@DomName('Document')
@Native("Document")
-class Document extends Node
-{
-
+class Document extends Node {
// To suppress missing implicit constructor warnings.
- factory Document._() { throw new UnsupportedError("Not supported"); }
+ factory Document._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('Document.pointerlockchangeEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<Event> pointerLockChangeEvent = const EventStreamProvider<Event>('pointerlockchange');
+ static const EventStreamProvider<Event> pointerLockChangeEvent =
+ const EventStreamProvider<Event>('pointerlockchange');
@DomName('Document.pointerlockerrorEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<Event> pointerLockErrorEvent = const EventStreamProvider<Event>('pointerlockerror');
+ static const EventStreamProvider<Event> pointerLockErrorEvent =
+ const EventStreamProvider<Event>('pointerlockerror');
/**
* Static factory designed to expose `readystatechange` events to event
@@ -9808,7 +9821,8 @@
*/
@DomName('Document.readystatechangeEvent')
@DocsEditable()
- static const EventStreamProvider<Event> readyStateChangeEvent = const EventStreamProvider<Event>('readystatechange');
+ static const EventStreamProvider<Event> readyStateChangeEvent =
+ const EventStreamProvider<Event>('readystatechange');
/**
* Static factory designed to expose `securitypolicyviolation` events to event
@@ -9820,7 +9834,10 @@
@DocsEditable()
// https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html#widl-Document-onsecuritypolicyviolation
@Experimental()
- static const EventStreamProvider<SecurityPolicyViolationEvent> securityPolicyViolationEvent = const EventStreamProvider<SecurityPolicyViolationEvent>('securitypolicyviolation');
+ static const EventStreamProvider<SecurityPolicyViolationEvent>
+ securityPolicyViolationEvent =
+ const EventStreamProvider<SecurityPolicyViolationEvent>(
+ 'securitypolicyviolation');
/**
* Static factory designed to expose `selectionchange` events to event
@@ -9830,7 +9847,8 @@
*/
@DomName('Document.selectionchangeEvent')
@DocsEditable()
- static const EventStreamProvider<Event> selectionChangeEvent = const EventStreamProvider<Event>('selectionchange');
+ static const EventStreamProvider<Event> selectionChangeEvent =
+ const EventStreamProvider<Event>('selectionchange');
@DomName('Document.activeElement')
@DocsEditable()
@@ -10012,142 +10030,159 @@
@DomName('Document.adoptNode')
@DocsEditable()
- Node adoptNode(Node node) native;
+ Node adoptNode(Node node) native ;
@JSName('caretRangeFromPoint')
@DomName('Document.caretRangeFromPoint')
@DocsEditable()
// http://www.w3.org/TR/2009/WD-cssom-view-20090804/#dom-documentview-caretrangefrompoint
@Experimental()
- Range _caretRangeFromPoint(int x, int y) native;
+ Range _caretRangeFromPoint(int x, int y) native ;
@DomName('Document.createDocumentFragment')
@DocsEditable()
- DocumentFragment createDocumentFragment() native;
+ DocumentFragment createDocumentFragment() native ;
@JSName('createElement')
@DomName('Document.createElement')
@DocsEditable()
- Element _createElement(String localName_OR_tagName, [String typeExtension]) native;
+ Element _createElement(String localName_OR_tagName, [String typeExtension])
+ native ;
@JSName('createElementNS')
@DomName('Document.createElementNS')
@DocsEditable()
- Element _createElementNS(String namespaceURI, String qualifiedName, [String typeExtension]) native;
+ Element _createElementNS(String namespaceURI, String qualifiedName,
+ [String typeExtension]) native ;
@JSName('createEvent')
@DomName('Document.createEvent')
@DocsEditable()
- Event _createEvent(String eventType) native;
+ Event _createEvent(String eventType) native ;
@DomName('Document.createRange')
@DocsEditable()
- Range createRange() native;
+ Range createRange() native ;
@JSName('createTextNode')
@DomName('Document.createTextNode')
@DocsEditable()
- Text _createTextNode(String data) native;
+ Text _createTextNode(String data) native ;
@DomName('Document.createTouch')
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- Touch _createTouch(Window window, EventTarget target, int identifier, num pageX, num pageY, num screenX, num screenY, num radiusX, num radiusY, num rotationAngle, num force) {
+ Touch _createTouch(
+ Window window,
+ EventTarget target,
+ int identifier,
+ num pageX,
+ num pageY,
+ num screenX,
+ num screenY,
+ num radiusX,
+ num radiusY,
+ num rotationAngle,
+ num force) {
var target_1 = _convertDartToNative_EventTarget(target);
- return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, screenY, radiusX, radiusY, rotationAngle, force);
+ return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX,
+ screenY, radiusX, radiusY, rotationAngle, force);
}
+
@JSName('createTouch')
@DomName('Document.createTouch')
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- Touch _createTouch_1(Window window, target, identifier, pageX, pageY, screenX, screenY, radiusX, radiusY, rotationAngle, force) native;
+ Touch _createTouch_1(Window window, target, identifier, pageX, pageY, screenX,
+ screenY, radiusX, radiusY, rotationAngle, force) native ;
@JSName('createTouchList')
@DomName('Document.createTouchList')
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- TouchList _createTouchList(Touch touches) native;
+ TouchList _createTouchList(Touch touches) native ;
@JSName('elementFromPoint')
@DomName('Document.elementFromPoint')
@DocsEditable()
- Element _elementFromPoint(int x, int y) native;
+ Element _elementFromPoint(int x, int y) native ;
@DomName('Document.elementsFromPoint')
@DocsEditable()
@Experimental() // untriaged
- List<Element> elementsFromPoint(int x, int y) native;
+ List<Element> elementsFromPoint(int x, int y) native ;
@DomName('Document.execCommand')
@DocsEditable()
- bool execCommand(String commandId, [bool showUI, String value]) native;
+ bool execCommand(String commandId, [bool showUI, String value]) native ;
@DomName('Document.exitFullscreen')
@DocsEditable()
@Experimental() // untriaged
- void exitFullscreen() native;
+ void exitFullscreen() native ;
@DomName('Document.exitPointerLock')
@DocsEditable()
@Experimental() // untriaged
- void exitPointerLock() native;
+ void exitPointerLock() native ;
@JSName('getCSSCanvasContext')
@DomName('Document.getCSSCanvasContext')
@DocsEditable()
// https://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariCSSRef/Articles/Functions.html
@Experimental() // non-standard
- Object _getCssCanvasContext(String contextId, String name, int width, int height) native;
+ Object _getCssCanvasContext(
+ String contextId, String name, int width, int height) native ;
@DomName('Document.getElementsByClassName')
@DocsEditable()
@Creates('NodeList|HtmlCollection')
@Returns('NodeList|HtmlCollection')
- List<Node> getElementsByClassName(String classNames) native;
+ List<Node> getElementsByClassName(String classNames) native ;
@DomName('Document.getElementsByName')
@DocsEditable()
@Creates('NodeList|HtmlCollection')
@Returns('NodeList|HtmlCollection')
- List<Node> getElementsByName(String elementName) native;
+ List<Node> getElementsByName(String elementName) native ;
@DomName('Document.getElementsByTagName')
@DocsEditable()
@Creates('NodeList|HtmlCollection')
@Returns('NodeList|HtmlCollection')
- List<Node> getElementsByTagName(String localName) native;
+ List<Node> getElementsByTagName(String localName) native ;
@DomName('Document.importNode')
@DocsEditable()
- Node importNode(Node node, [bool deep]) native;
+ Node importNode(Node node, [bool deep]) native ;
@DomName('Document.queryCommandEnabled')
@DocsEditable()
- bool queryCommandEnabled(String commandId) native;
+ bool queryCommandEnabled(String commandId) native ;
@DomName('Document.queryCommandIndeterm')
@DocsEditable()
- bool queryCommandIndeterm(String commandId) native;
+ bool queryCommandIndeterm(String commandId) native ;
@DomName('Document.queryCommandState')
@DocsEditable()
- bool queryCommandState(String commandId) native;
+ bool queryCommandState(String commandId) native ;
@DomName('Document.queryCommandSupported')
@DocsEditable()
- bool queryCommandSupported(String commandId) native;
+ bool queryCommandSupported(String commandId) native ;
@DomName('Document.queryCommandValue')
@DocsEditable()
- String queryCommandValue(String commandId) native;
+ String queryCommandValue(String commandId) native ;
@DomName('Document.transformDocumentToTreeView')
@DocsEditable()
@Experimental() // untriaged
- void transformDocumentToTreeView(String noStyleMessage) native;
+ void transformDocumentToTreeView(String noStyleMessage) native ;
@JSName('webkitExitFullscreen')
@DomName('Document.webkitExitFullscreen')
@@ -10156,13 +10191,13 @@
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
// https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-exitfullscreen
- void _webkitExitFullscreen() native;
+ void _webkitExitFullscreen() native ;
// From NonElementParentNode
@DomName('Document.getElementById')
@DocsEditable()
- Element getElementById(String elementId) native;
+ Element getElementById(String elementId) native ;
// From ParentNode
@@ -10207,14 +10242,14 @@
*/
@DomName('Document.querySelector')
@DocsEditable()
- Element querySelector(String selectors) native;
+ Element querySelector(String selectors) native ;
@JSName('querySelectorAll')
@DomName('Document.querySelectorAll')
@DocsEditable()
@Returns('NodeList')
@Creates('NodeList')
- List<Node> _querySelectorAll(String selectors) native;
+ List<Node> _querySelectorAll(String selectors) native ;
/// Stream of `abort` events handled by this [Document].
@DomName('Document.onabort')
@@ -10249,7 +10284,8 @@
@DomName('Document.oncanplaythrough')
@DocsEditable()
@Experimental() // untriaged
- Stream<Event> get onCanPlayThrough => Element.canPlayThroughEvent.forTarget(this);
+ Stream<Event> get onCanPlayThrough =>
+ Element.canPlayThroughEvent.forTarget(this);
/// Stream of `change` events handled by this [Document].
@DomName('Document.onchange')
@@ -10264,7 +10300,8 @@
/// Stream of `contextmenu` events handled by this [Document].
@DomName('Document.oncontextmenu')
@DocsEditable()
- Stream<MouseEvent> get onContextMenu => Element.contextMenuEvent.forTarget(this);
+ Stream<MouseEvent> get onContextMenu =>
+ Element.contextMenuEvent.forTarget(this);
/// Stream of `copy` events handled by this [Document].
@DomName('Document.oncopy')
@@ -10319,7 +10356,8 @@
@DomName('Document.ondurationchange')
@DocsEditable()
@Experimental() // untriaged
- Stream<Event> get onDurationChange => Element.durationChangeEvent.forTarget(this);
+ Stream<Event> get onDurationChange =>
+ Element.durationChangeEvent.forTarget(this);
@DomName('Document.onemptied')
@DocsEditable()
@@ -10379,7 +10417,8 @@
@DomName('Document.onloadedmetadata')
@DocsEditable()
@Experimental() // untriaged
- Stream<Event> get onLoadedMetadata => Element.loadedMetadataEvent.forTarget(this);
+ Stream<Event> get onLoadedMetadata =>
+ Element.loadedMetadataEvent.forTarget(this);
/// Stream of `mousedown` events handled by this [Document].
@DomName('Document.onmousedown')
@@ -10390,13 +10429,15 @@
@DomName('Document.onmouseenter')
@DocsEditable()
@Experimental() // untriaged
- Stream<MouseEvent> get onMouseEnter => Element.mouseEnterEvent.forTarget(this);
+ Stream<MouseEvent> get onMouseEnter =>
+ Element.mouseEnterEvent.forTarget(this);
/// Stream of `mouseleave` events handled by this [Document].
@DomName('Document.onmouseleave')
@DocsEditable()
@Experimental() // untriaged
- Stream<MouseEvent> get onMouseLeave => Element.mouseLeaveEvent.forTarget(this);
+ Stream<MouseEvent> get onMouseLeave =>
+ Element.mouseLeaveEvent.forTarget(this);
/// Stream of `mousemove` events handled by this [Document].
@DomName('Document.onmousemove')
@@ -10421,7 +10462,8 @@
/// Stream of `mousewheel` events handled by this [Document].
@DomName('Document.onmousewheel')
@DocsEditable()
- Stream<WheelEvent> get onMouseWheel => Element.mouseWheelEvent.forTarget(this);
+ Stream<WheelEvent> get onMouseWheel =>
+ Element.mouseWheelEvent.forTarget(this);
/// Stream of `paste` events handled by this [Document].
@DomName('Document.onpaste')
@@ -10446,7 +10488,8 @@
@DomName('Document.onpointerlockchange')
@DocsEditable()
@Experimental() // untriaged
- Stream<Event> get onPointerLockChange => pointerLockChangeEvent.forTarget(this);
+ Stream<Event> get onPointerLockChange =>
+ pointerLockChangeEvent.forTarget(this);
@DomName('Document.onpointerlockerror')
@DocsEditable()
@@ -10490,7 +10533,8 @@
@DocsEditable()
// https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html#widl-Document-onsecuritypolicyviolation
@Experimental()
- Stream<SecurityPolicyViolationEvent> get onSecurityPolicyViolation => securityPolicyViolationEvent.forTarget(this);
+ Stream<SecurityPolicyViolationEvent> get onSecurityPolicyViolation =>
+ securityPolicyViolationEvent.forTarget(this);
@DomName('Document.onseeked')
@DocsEditable()
@@ -10542,7 +10586,8 @@
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- Stream<TouchEvent> get onTouchCancel => Element.touchCancelEvent.forTarget(this);
+ Stream<TouchEvent> get onTouchCancel =>
+ Element.touchCancelEvent.forTarget(this);
/// Stream of `touchend` events handled by this [Document].
@DomName('Document.ontouchend')
@@ -10563,7 +10608,8 @@
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- Stream<TouchEvent> get onTouchStart => Element.touchStartEvent.forTarget(this);
+ Stream<TouchEvent> get onTouchStart =>
+ Element.touchStartEvent.forTarget(this);
@DomName('Document.onvolumechange')
@DocsEditable()
@@ -10580,14 +10626,16 @@
@DocsEditable()
// https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
@Experimental()
- Stream<Event> get onFullscreenChange => Element.fullscreenChangeEvent.forTarget(this);
+ Stream<Event> get onFullscreenChange =>
+ Element.fullscreenChangeEvent.forTarget(this);
/// Stream of `fullscreenerror` events handled by this [Document].
@DomName('Document.onwebkitfullscreenerror')
@DocsEditable()
// https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
@Experimental()
- Stream<Event> get onFullscreenError => Element.fullscreenErrorEvent.forTarget(this);
+ Stream<Event> get onFullscreenError =>
+ Element.fullscreenErrorEvent.forTarget(this);
/**
* Finds all descendant elements of this document that match the specified
@@ -10605,8 +10653,9 @@
* For details about CSS selector syntax, see the
* [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
*/
- ElementList<Element /*=T*/> querySelectorAll/*<T extends Element>*/(String selectors) =>
- new _FrozenElementList/*<T>*/._wrap(_querySelectorAll(selectors));
+ ElementList<Element/*=T*/ > querySelectorAll/*<T extends Element>*/(
+ String selectors) =>
+ new _FrozenElementList/*<T>*/ ._wrap(_querySelectorAll(selectors));
/**
* Alias for [querySelector]. Note this function is deprecated because its
@@ -10624,7 +10673,8 @@
@deprecated
@Experimental()
@DomName('Document.querySelectorAll')
- ElementList<Element /*=T*/> queryAll/*<T extends Element>*/(String relativeSelectors) =>
+ ElementList<Element/*=T*/ > queryAll/*<T extends Element>*/(
+ String relativeSelectors) =>
querySelectorAll(relativeSelectors);
/// Checks if [registerElement] is supported on the current platform.
@@ -10652,12 +10702,13 @@
// The three-argument version of this is automatically generated, but we need to
// omit the typeExtension if it's null on Firefox or we get an is="null" attribute.
@DomName('Document.createElementNS')
- _createElementNS_2(String namespaceURI, String qualifiedName) =>
- JS('Element', '#.createElementNS(#, #)', this, namespaceURI, qualifiedName);
+ _createElementNS_2(String namespaceURI, String qualifiedName) => JS(
+ 'Element', '#.createElementNS(#, #)', this, namespaceURI, qualifiedName);
@DomName('Document.createElementNS')
@DocsEditable()
- Element createElementNS(String namespaceURI, String qualifiedName, [String typeExtension]) {
+ Element createElementNS(String namespaceURI, String qualifiedName,
+ [String typeExtension]) {
return (typeExtension == null)
? _createElementNS_2(namespaceURI, qualifiedName)
: _createElementNS(namespaceURI, qualifiedName, typeExtension);
@@ -10665,51 +10716,54 @@
@DomName('Document.createNodeIterator')
NodeIterator _createNodeIterator(Node root,
- [int whatToShow, NodeFilter filter])
- => JS('NodeIterator', '#.createNodeIterator(#, #, #, false)',
- this, root, whatToShow, filter);
+ [int whatToShow, NodeFilter filter]) =>
+ JS('NodeIterator', '#.createNodeIterator(#, #, #, false)', this, root,
+ whatToShow, filter);
@DomName('Document.createTreeWalker')
TreeWalker _createTreeWalker(Node root,
- [int whatToShow, NodeFilter filter])
- => JS('TreeWalker', '#.createTreeWalker(#, #, #, false)',
- this, root, whatToShow, filter);
+ [int whatToShow, NodeFilter filter]) =>
+ JS('TreeWalker', '#.createTreeWalker(#, #, #, false)', this, root,
+ whatToShow, filter);
@DomName('Document.visibilityState')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@Experimental()
- String get visibilityState => JS('String',
- '(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||'
- '#.webkitVisibilityState)', this, this, this, this);
+ String get visibilityState => JS(
+ 'String',
+ '(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||'
+ '#.webkitVisibilityState)',
+ this,
+ this,
+ this,
+ this);
}
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DomName('DocumentFragment')
@Native("DocumentFragment")
-class DocumentFragment extends Node implements NonElementParentNode, ParentNode {
+class DocumentFragment extends Node
+ implements NonElementParentNode, ParentNode {
factory DocumentFragment() => document.createDocumentFragment();
factory DocumentFragment.html(String html,
{NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
-
return document.body.createFragment(html,
- validator: validator, treeSanitizer: treeSanitizer);
+ validator: validator, treeSanitizer: treeSanitizer);
}
factory DocumentFragment.svg(String svgContent,
{NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
-
return new svg.SvgSvgElement().createFragment(svgContent,
validator: validator, treeSanitizer: treeSanitizer);
}
- HtmlCollection get _children => throw new UnimplementedError(
- 'Use _docChildren instead');
+ HtmlCollection get _children =>
+ throw new UnimplementedError('Use _docChildren instead');
// Native field is used only by Dart code so does not lead to instantiation
// of native classes
@@ -10742,9 +10796,9 @@
* For details about CSS selector syntax, see the
* [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
*/
- ElementList<Element /*=T*/> querySelectorAll/*<T extends Element>*/(String selectors) =>
- new _FrozenElementList/*<T>*/._wrap(_querySelectorAll(selectors));
-
+ ElementList<Element/*=T*/ > querySelectorAll/*<T extends Element>*/(
+ String selectors) =>
+ new _FrozenElementList/*<T>*/ ._wrap(_querySelectorAll(selectors));
String get innerHtml {
final e = new Element.tag("div");
@@ -10757,11 +10811,10 @@
}
void setInnerHtml(String html,
- {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
-
+ {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
this.nodes.clear();
- append(document.body.createFragment(
- html, validator: validator, treeSanitizer: treeSanitizer));
+ append(document.body.createFragment(html,
+ validator: validator, treeSanitizer: treeSanitizer));
}
/**
@@ -10772,15 +10825,14 @@
this.append(new Text(text));
}
-
/**
* Parses the specified text as HTML and adds the resulting node after the
* last child of this document fragment.
*/
- void appendHtml(String text, {NodeValidator validator,
- NodeTreeSanitizer, treeSanitizer}) {
- this.append(new DocumentFragment.html(text, validator: validator,
- treeSanitizer: treeSanitizer));
+ void appendHtml(String text,
+ {NodeValidator validator, NodeTreeSanitizer, treeSanitizer}) {
+ this.append(new DocumentFragment.html(text,
+ validator: validator, treeSanitizer: treeSanitizer));
}
/**
@@ -10801,17 +10853,20 @@
@deprecated
@Experimental()
@DomName('DocumentFragment.querySelectorAll')
- ElementList<Element /*=T*/> queryAll/*<T extends Element>*/(String relativeSelectors) =>
- querySelectorAll(relativeSelectors);
+ ElementList<Element/*=T*/ > queryAll/*<T extends Element>*/(
+ String relativeSelectors) =>
+ querySelectorAll(relativeSelectors);
// To suppress missing implicit constructor warnings.
- factory DocumentFragment._() { throw new UnsupportedError("Not supported"); }
+ factory DocumentFragment._() {
+ throw new UnsupportedError("Not supported");
+ }
// From NonElementParentNode
@DomName('DocumentFragment.getElementById')
@DocsEditable()
@Experimental() // untriaged
- Element getElementById(String elementId) native;
+ Element getElementById(String elementId) native ;
// From ParentNode
@@ -10844,27 +10899,27 @@
*/
@DomName('DocumentFragment.querySelector')
@DocsEditable()
- Element querySelector(String selectors) native;
+ Element querySelector(String selectors) native ;
@JSName('querySelectorAll')
@DomName('DocumentFragment.querySelectorAll')
@DocsEditable()
@Returns('NodeList')
@Creates('NodeList')
- List<Node> _querySelectorAll(String selectors) native;
-
+ List<Node> _querySelectorAll(String selectors) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMError')
@Native("DOMError")
class DomError extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DomError._() { throw new UnsupportedError("Not supported"); }
+ factory DomError._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMError.DOMError')
@DocsEditable()
@@ -10874,7 +10929,8 @@
}
return DomError._create_2(name);
}
- static DomError _create_1(name, message) => JS('DomError', 'new DOMError(#,#)', name, message);
+ static DomError _create_1(name, message) =>
+ JS('DomError', 'new DOMError(#,#)', name, message);
static DomError _create_2(name) => JS('DomError', 'new DOMError(#)', name);
@DomName('DOMError.message')
@@ -10890,12 +10946,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DomName('DOMException')
@Unstable()
@Native("DOMException")
class DomException extends Interceptor {
-
static const String INDEX_SIZE = 'IndexSizeError';
static const String HIERARCHY_REQUEST = 'HierarchyRequestError';
static const String WRONG_DOCUMENT = 'WrongDocumentError';
@@ -10928,8 +10982,11 @@
if (Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError';
return errorName;
}
+
// To suppress missing implicit constructor warnings.
- factory DomException._() { throw new UnsupportedError("Not supported"); }
+ factory DomException._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMException.message')
@DocsEditable()
@@ -10943,61 +11000,66 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMImplementation')
@Native("DOMImplementation")
class DomImplementation extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DomImplementation._() { throw new UnsupportedError("Not supported"); }
+ factory DomImplementation._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMImplementation.createDocument')
@DocsEditable()
- XmlDocument createDocument(String namespaceURI, String qualifiedName, _DocumentType doctype) native;
+ XmlDocument createDocument(
+ String namespaceURI, String qualifiedName, _DocumentType doctype) native ;
@DomName('DOMImplementation.createDocumentType')
@DocsEditable()
- _DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native;
+ _DocumentType createDocumentType(
+ String qualifiedName, String publicId, String systemId) native ;
@JSName('createHTMLDocument')
@DomName('DOMImplementation.createHTMLDocument')
@DocsEditable()
- HtmlDocument createHtmlDocument(String title) native;
+ HtmlDocument createHtmlDocument(String title) native ;
@DomName('DOMImplementation.hasFeature')
@DocsEditable()
- bool hasFeature() native;
+ bool hasFeature() native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Iterator')
@Experimental() // untriaged
@Native("Iterator")
class DomIterator extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DomIterator._() { throw new UnsupportedError("Not supported"); }
+ factory DomIterator._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('Iterator.next')
@DocsEditable()
@Experimental() // untriaged
- Object next([Object value]) native;
+ Object next([Object value]) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMMatrix')
@Experimental() // untriaged
@Native("DOMMatrix")
class DomMatrix extends DomMatrixReadOnly {
// To suppress missing implicit constructor warnings.
- factory DomMatrix._() { throw new UnsupportedError("Not supported"); }
+ factory DomMatrix._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMMatrix.DOMMatrix')
@DocsEditable()
@@ -11011,7 +11073,8 @@
throw new ArgumentError("Incorrect number or type of arguments");
}
static DomMatrix _create_1() => JS('DomMatrix', 'new DOMMatrix()');
- static DomMatrix _create_2(other) => JS('DomMatrix', 'new DOMMatrix(#)', other);
+ static DomMatrix _create_2(other) =>
+ JS('DomMatrix', 'new DOMMatrix(#)', other);
// Shadowing definition.
num get a => JS("num", "#.a", this);
@@ -11170,45 +11233,48 @@
@DomName('DOMMatrix.multiplySelf')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix multiplySelf(DomMatrix other) native;
+ DomMatrix multiplySelf(DomMatrix other) native ;
@DomName('DOMMatrix.preMultiplySelf')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix preMultiplySelf(DomMatrix other) native;
+ DomMatrix preMultiplySelf(DomMatrix other) native ;
@DomName('DOMMatrix.scale3dSelf')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scale3dSelf(num scale, [num originX, num originY, num originZ]) native;
+ DomMatrix scale3dSelf(num scale, [num originX, num originY, num originZ])
+ native ;
@DomName('DOMMatrix.scaleNonUniformSelf')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scaleNonUniformSelf(num scaleX, [num scaleY, num scaleZ, num originX, num originY, num originZ]) native;
+ DomMatrix scaleNonUniformSelf(num scaleX,
+ [num scaleY, num scaleZ, num originX, num originY, num originZ]) native ;
@DomName('DOMMatrix.scaleSelf')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scaleSelf(num scale, [num originX, num originY]) native;
+ DomMatrix scaleSelf(num scale, [num originX, num originY]) native ;
@DomName('DOMMatrix.translateSelf')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix translateSelf(num tx, num ty, [num tz]) native;
+ DomMatrix translateSelf(num tx, num ty, [num tz]) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMMatrixReadOnly')
@Experimental() // untriaged
@Native("DOMMatrixReadOnly")
class DomMatrixReadOnly extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DomMatrixReadOnly._() { throw new UnsupportedError("Not supported"); }
+ factory DomMatrixReadOnly._() {
+ throw new UnsupportedError("Not supported");
+ }
num get a => JS("num", "#.a", this);
@@ -11261,49 +11327,51 @@
@DomName('DOMMatrixReadOnly.multiply')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix multiply(DomMatrix other) native;
+ DomMatrix multiply(DomMatrix other) native ;
@DomName('DOMMatrixReadOnly.scale')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scale(num scale, [num originX, num originY]) native;
+ DomMatrix scale(num scale, [num originX, num originY]) native ;
@DomName('DOMMatrixReadOnly.scale3d')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scale3d(num scale, [num originX, num originY, num originZ]) native;
+ DomMatrix scale3d(num scale, [num originX, num originY, num originZ]) native ;
@DomName('DOMMatrixReadOnly.scaleNonUniform')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scaleNonUniform(num scaleX, [num scaleY, num scaleZn, num originX, num originY, num originZ]) native;
+ DomMatrix scaleNonUniform(num scaleX,
+ [num scaleY, num scaleZn, num originX, num originY, num originZ]) native ;
@DomName('DOMMatrixReadOnly.toFloat32Array')
@DocsEditable()
@Experimental() // untriaged
- Float32List toFloat32Array() native;
+ Float32List toFloat32Array() native ;
@DomName('DOMMatrixReadOnly.toFloat64Array')
@DocsEditable()
@Experimental() // untriaged
- Float64List toFloat64Array() native;
+ Float64List toFloat64Array() native ;
@DomName('DOMMatrixReadOnly.translate')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix translate(num tx, num ty, [num tz]) native;
+ DomMatrix translate(num tx, num ty, [num tz]) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMParser')
@Native("DOMParser")
class DomParser extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DomParser._() { throw new UnsupportedError("Not supported"); }
+ factory DomParser._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMParser.DOMParser')
@DocsEditable()
@@ -11314,54 +11382,76 @@
@DomName('DOMParser.parseFromString')
@DocsEditable()
- Document parseFromString(String str, String type) native;
+ Document parseFromString(String str, String type) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMPoint')
@Experimental() // untriaged
@Native("DOMPoint")
class DomPoint extends DomPointReadOnly {
// To suppress missing implicit constructor warnings.
- factory DomPoint._() { throw new UnsupportedError("Not supported"); }
+ factory DomPoint._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMPoint.DOMPoint')
@DocsEditable()
factory DomPoint([point_OR_x, num y, num z, num w]) {
- if ((point_OR_x is Map || point_OR_x == null) && y == null && z == null && w == null) {
+ if ((point_OR_x is Map || point_OR_x == null) &&
+ y == null &&
+ z == null &&
+ w == null) {
var point_1 = convertDartToNative_Dictionary(point_OR_x);
return DomPoint._create_1(point_1);
}
if (point_OR_x == null && y == null && z == null && w == null) {
return DomPoint._create_2();
}
- if ((point_OR_x is num || point_OR_x == null) && y == null && z == null && w == null) {
+ if ((point_OR_x is num || point_OR_x == null) &&
+ y == null &&
+ z == null &&
+ w == null) {
return DomPoint._create_3(point_OR_x);
}
- if ((y is num || y == null) && (point_OR_x is num || point_OR_x == null) && z == null && w == null) {
+ if ((y is num || y == null) &&
+ (point_OR_x is num || point_OR_x == null) &&
+ z == null &&
+ w == null) {
return DomPoint._create_4(point_OR_x, y);
}
- if ((z is num || z == null) && (y is num || y == null) && (point_OR_x is num || point_OR_x == null) && w == null) {
+ if ((z is num || z == null) &&
+ (y is num || y == null) &&
+ (point_OR_x is num || point_OR_x == null) &&
+ w == null) {
return DomPoint._create_5(point_OR_x, y, z);
}
- if ((w is num || w == null) && (z is num || z == null) && (y is num || y == null) && (point_OR_x is num || point_OR_x == null)) {
+ if ((w is num || w == null) &&
+ (z is num || z == null) &&
+ (y is num || y == null) &&
+ (point_OR_x is num || point_OR_x == null)) {
return DomPoint._create_6(point_OR_x, y, z, w);
}
throw new ArgumentError("Incorrect number or type of arguments");
}
- static DomPoint _create_1(point_OR_x) => JS('DomPoint', 'new DOMPoint(#)', point_OR_x);
+ static DomPoint _create_1(point_OR_x) =>
+ JS('DomPoint', 'new DOMPoint(#)', point_OR_x);
static DomPoint _create_2() => JS('DomPoint', 'new DOMPoint()');
- static DomPoint _create_3(point_OR_x) => JS('DomPoint', 'new DOMPoint(#)', point_OR_x);
- static DomPoint _create_4(point_OR_x, y) => JS('DomPoint', 'new DOMPoint(#,#)', point_OR_x, y);
- static DomPoint _create_5(point_OR_x, y, z) => JS('DomPoint', 'new DOMPoint(#,#,#)', point_OR_x, y, z);
- static DomPoint _create_6(point_OR_x, y, z, w) => JS('DomPoint', 'new DOMPoint(#,#,#,#)', point_OR_x, y, z, w);
+ static DomPoint _create_3(point_OR_x) =>
+ JS('DomPoint', 'new DOMPoint(#)', point_OR_x);
+ static DomPoint _create_4(point_OR_x, y) =>
+ JS('DomPoint', 'new DOMPoint(#,#)', point_OR_x, y);
+ static DomPoint _create_5(point_OR_x, y, z) =>
+ JS('DomPoint', 'new DOMPoint(#,#,#)', point_OR_x, y, z);
+ static DomPoint _create_6(point_OR_x, y, z, w) =>
+ JS('DomPoint', 'new DOMPoint(#,#,#,#)', point_OR_x, y, z, w);
/// Checks if this type is supported on the current platform.
- static bool get supported => JS('bool', '!!(window.DOMPoint) || !!(window.WebKitPoint)');
+ static bool get supported =>
+ JS('bool', '!!(window.DOMPoint) || !!(window.WebKitPoint)');
// Shadowing definition.
num get w => JS("num", "#.w", this);
@@ -11395,21 +11485,23 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMPointReadOnly')
@Experimental() // untriaged
@Native("DOMPointReadOnly")
class DomPointReadOnly extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DomPointReadOnly._() { throw new UnsupportedError("Not supported"); }
+ factory DomPointReadOnly._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMPointReadOnly.DOMPointReadOnly')
@DocsEditable()
factory DomPointReadOnly(num x, num y, num z, num w) {
return DomPointReadOnly._create_1(x, y, z, w);
}
- static DomPointReadOnly _create_1(x, y, z, w) => JS('DomPointReadOnly', 'new DOMPointReadOnly(#,#,#,#)', x, y, z, w);
+ static DomPointReadOnly _create_1(x, y, z, w) =>
+ JS('DomPointReadOnly', 'new DOMPointReadOnly(#,#,#,#)', x, y, z, w);
num get w => JS("num", "#.w", this);
@@ -11423,26 +11515,26 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMRectReadOnly')
@Experimental() // untriaged
@Native("DOMRectReadOnly")
class DomRectReadOnly extends Interceptor implements Rectangle {
-
// NOTE! All code below should be common with RectangleBase.
- String toString() {
+ String toString() {
return 'Rectangle ($left, $top) $width x $height';
}
bool operator ==(other) {
- if (other is !Rectangle) return false;
- return left == other.left && top == other.top && width == other.width &&
+ if (other is! Rectangle) return false;
+ return left == other.left &&
+ top == other.top &&
+ width == other.width &&
height == other.height;
}
- int get hashCode => _JenkinsSmiHash.hash4(left.hashCode, top.hashCode,
- width.hashCode, height.hashCode);
+ int get hashCode => _JenkinsSmiHash.hash4(
+ left.hashCode, top.hashCode, width.hashCode, height.hashCode);
/**
* Computes the intersection of `this` and [other].
@@ -11468,7 +11560,6 @@
return null;
}
-
/**
* Returns true if `this` intersects [other].
*/
@@ -11497,9 +11588,9 @@
*/
bool containsRectangle(Rectangle<num> another) {
return left <= another.left &&
- left + width >= another.left + another.width &&
- top <= another.top &&
- top + height >= another.top + another.height;
+ left + width >= another.left + another.width &&
+ top <= another.top &&
+ top + height >= another.top + another.height;
}
/**
@@ -11507,27 +11598,29 @@
*/
bool containsPoint(Point<num> another) {
return another.x >= left &&
- another.x <= left + width &&
- another.y >= top &&
- another.y <= top + height;
+ another.x <= left + width &&
+ another.y >= top &&
+ another.y <= top + height;
}
Point get topLeft => new Point/*<num>*/(this.left, this.top);
Point get topRight => new Point/*<num>*/(this.left + this.width, this.top);
- Point get bottomRight => new Point/*<num>*/(this.left + this.width,
- this.top + this.height);
- Point get bottomLeft => new Point/*<num>*/(this.left,
- this.top + this.height);
+ Point get bottomRight =>
+ new Point/*<num>*/(this.left + this.width, this.top + this.height);
+ Point get bottomLeft => new Point/*<num>*/(this.left, this.top + this.height);
- // To suppress missing implicit constructor warnings.
- factory DomRectReadOnly._() { throw new UnsupportedError("Not supported"); }
+ // To suppress missing implicit constructor warnings.
+ factory DomRectReadOnly._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMRectReadOnly.DOMRectReadOnly')
@DocsEditable()
factory DomRectReadOnly(num x, num y, num width, num height) {
return DomRectReadOnly._create_1(x, y, width, height);
}
- static DomRectReadOnly _create_1(x, y, width, height) => JS('DomRectReadOnly', 'new DOMRectReadOnly(#,#,#,#)', x, y, width, height);
+ static DomRectReadOnly _create_1(x, y, width, height) => JS(
+ 'DomRectReadOnly', 'new DOMRectReadOnly(#,#,#,#)', x, y, width, height);
num get bottom => JS("num", "#.bottom", this);
@@ -11550,13 +11643,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMSettableTokenList')
@Native("DOMSettableTokenList")
class DomSettableTokenList extends DomTokenList {
// To suppress missing implicit constructor warnings.
- factory DomSettableTokenList._() { throw new UnsupportedError("Not supported"); }
+ factory DomSettableTokenList._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMSettableTokenList.value')
@DocsEditable()
@@ -11566,31 +11660,33 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMStringList')
@Native("DOMStringList")
-class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMixin<String> implements List<String> {
+class DomStringList extends Interceptor
+ with ListMixin<String>, ImmutableListMixin<String>
+ implements List<String> {
// To suppress missing implicit constructor warnings.
- factory DomStringList._() { throw new UnsupportedError("Not supported"); }
+ factory DomStringList._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMStringList.length')
@DocsEditable()
int get length => JS("int", "#.length", this);
- String operator[](int index) {
- if (JS("bool", "# >>> 0 !== # || # >= #", index,
- index, index, length))
+ String operator [](int index) {
+ if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length))
throw new RangeError.index(index, this);
return this.item(index);
}
- void operator[]=(int index, String value) {
+
+ void operator []=(int index, String value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<String> mixins.
// String is the element type.
-
set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
@@ -11625,22 +11721,23 @@
@DomName('DOMStringList.__getter__')
@DocsEditable()
@Experimental() // untriaged
- String __getter__(int index) native;
+ String __getter__(int index) native ;
@DomName('DOMStringList.item')
@DocsEditable()
- String item(int index) native;
+ String item(int index) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMStringMap')
abstract class DomStringMap extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DomStringMap._() { throw new UnsupportedError("Not supported"); }
+ factory DomStringMap._() {
+ throw new UnsupportedError("Not supported");
+ }
void __delete__(index_OR_name);
@@ -11654,13 +11751,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMTokenList')
@Native("DOMTokenList")
class DomTokenList extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory DomTokenList._() { throw new UnsupportedError("Not supported"); }
+ factory DomTokenList._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('DOMTokenList.length')
@DocsEditable()
@@ -11669,43 +11767,43 @@
@DomName('DOMTokenList.add')
@DocsEditable()
@Experimental() // untriaged
- void add(String tokens) native;
+ void add(String tokens) native ;
@DomName('DOMTokenList.contains')
@DocsEditable()
- bool contains(String token) native;
+ bool contains(String token) native ;
@DomName('DOMTokenList.item')
@DocsEditable()
- String item(int index) native;
+ String item(int index) native ;
@DomName('DOMTokenList.remove')
@DocsEditable()
@Experimental() // untriaged
- void remove(String tokens) native;
+ void remove(String tokens) native ;
@DomName('DOMTokenList.toggle')
@DocsEditable()
- bool toggle(String token, [bool force]) native;
+ bool toggle(String token, [bool force]) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('EffectModel')
@Experimental() // untriaged
@Native("EffectModel")
class EffectModel extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory EffectModel._() { throw new UnsupportedError("Not supported"); }
+ factory EffectModel._() {
+ throw new UnsupportedError("Not supported");
+ }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
class _ChildrenElementList extends ListBase<Element>
implements NodeListWrapper {
// Raw Element.
@@ -11713,12 +11811,11 @@
final HtmlCollection _childElements;
_ChildrenElementList._wrap(Element element)
- : _childElements = element._children,
- _element = element;
+ : _childElements = element._children,
+ _element = element;
bool contains(Object element) => _childElements.contains(element);
-
bool get isEmpty {
return _element._firstElementChild == null;
}
@@ -11784,7 +11881,7 @@
}
void setRange(int start, int end, Iterable<Element> iterable,
- [int skipCount = 0]) {
+ [int skipCount = 0]) {
throw new UnimplementedError();
}
@@ -11848,7 +11945,6 @@
return result;
}
-
Element get last {
Element result = _element._lastElementChild;
if (result == null) throw new StateError("No elements");
@@ -12418,7 +12514,6 @@
// https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
@Experimental()
ElementStream<Event> get onFullscreenError;
-
}
// Wrapper over an immutable NodeList to make it implement ElementList.
@@ -12461,8 +12556,7 @@
CssClassSet get classes => new _MultiElementCssClassSet(this);
- CssStyleDeclarationBase get style =>
- new _CssStyleDeclarationSet(this);
+ CssStyleDeclarationBase get style => new _CssStyleDeclarationSet(this);
set classes(Iterable<String> value) {
// TODO(sra): This might be faster for Sets:
@@ -12484,7 +12578,6 @@
List<Node> get rawList => _nodeList;
-
/// Stream of `abort` events handled by this [Element].
@DomName('Element.onabort')
@DocsEditable()
@@ -12493,17 +12586,20 @@
/// Stream of `beforecopy` events handled by this [Element].
@DomName('Element.onbeforecopy')
@DocsEditable()
- ElementStream<Event> get onBeforeCopy => Element.beforeCopyEvent._forElementList(this);
+ ElementStream<Event> get onBeforeCopy =>
+ Element.beforeCopyEvent._forElementList(this);
/// Stream of `beforecut` events handled by this [Element].
@DomName('Element.onbeforecut')
@DocsEditable()
- ElementStream<Event> get onBeforeCut => Element.beforeCutEvent._forElementList(this);
+ ElementStream<Event> get onBeforeCut =>
+ Element.beforeCutEvent._forElementList(this);
/// Stream of `beforepaste` events handled by this [Element].
@DomName('Element.onbeforepaste')
@DocsEditable()
- ElementStream<Event> get onBeforePaste => Element.beforePasteEvent._forElementList(this);
+ ElementStream<Event> get onBeforePaste =>
+ Element.beforePasteEvent._forElementList(this);
/// Stream of `blur` events handled by this [Element].
@DomName('Element.onblur')
@@ -12513,42 +12609,50 @@
@DomName('Element.oncanplay')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onCanPlay => Element.canPlayEvent._forElementList(this);
+ ElementStream<Event> get onCanPlay =>
+ Element.canPlayEvent._forElementList(this);
@DomName('Element.oncanplaythrough')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onCanPlayThrough => Element.canPlayThroughEvent._forElementList(this);
+ ElementStream<Event> get onCanPlayThrough =>
+ Element.canPlayThroughEvent._forElementList(this);
/// Stream of `change` events handled by this [Element].
@DomName('Element.onchange')
@DocsEditable()
- ElementStream<Event> get onChange => Element.changeEvent._forElementList(this);
+ ElementStream<Event> get onChange =>
+ Element.changeEvent._forElementList(this);
/// Stream of `click` events handled by this [Element].
@DomName('Element.onclick')
@DocsEditable()
- ElementStream<MouseEvent> get onClick => Element.clickEvent._forElementList(this);
+ ElementStream<MouseEvent> get onClick =>
+ Element.clickEvent._forElementList(this);
/// Stream of `contextmenu` events handled by this [Element].
@DomName('Element.oncontextmenu')
@DocsEditable()
- ElementStream<MouseEvent> get onContextMenu => Element.contextMenuEvent._forElementList(this);
+ ElementStream<MouseEvent> get onContextMenu =>
+ Element.contextMenuEvent._forElementList(this);
/// Stream of `copy` events handled by this [Element].
@DomName('Element.oncopy')
@DocsEditable()
- ElementStream<ClipboardEvent> get onCopy => Element.copyEvent._forElementList(this);
+ ElementStream<ClipboardEvent> get onCopy =>
+ Element.copyEvent._forElementList(this);
/// Stream of `cut` events handled by this [Element].
@DomName('Element.oncut')
@DocsEditable()
- ElementStream<ClipboardEvent> get onCut => Element.cutEvent._forElementList(this);
+ ElementStream<ClipboardEvent> get onCut =>
+ Element.cutEvent._forElementList(this);
/// Stream of `doubleclick` events handled by this [Element].
@DomName('Element.ondblclick')
@DocsEditable()
- ElementStream<Event> get onDoubleClick => Element.doubleClickEvent._forElementList(this);
+ ElementStream<Event> get onDoubleClick =>
+ Element.doubleClickEvent._forElementList(this);
/**
* A stream of `drag` events fired when this element currently being dragged.
@@ -12569,7 +12673,8 @@
*/
@DomName('Element.ondrag')
@DocsEditable()
- ElementStream<MouseEvent> get onDrag => Element.dragEvent._forElementList(this);
+ ElementStream<MouseEvent> get onDrag =>
+ Element.dragEvent._forElementList(this);
/**
* A stream of `dragend` events fired when this element completes a drag
@@ -12587,7 +12692,8 @@
*/
@DomName('Element.ondragend')
@DocsEditable()
- ElementStream<MouseEvent> get onDragEnd => Element.dragEndEvent._forElementList(this);
+ ElementStream<MouseEvent> get onDragEnd =>
+ Element.dragEndEvent._forElementList(this);
/**
* A stream of `dragenter` events fired when a dragged object is first dragged
@@ -12605,7 +12711,8 @@
*/
@DomName('Element.ondragenter')
@DocsEditable()
- ElementStream<MouseEvent> get onDragEnter => Element.dragEnterEvent._forElementList(this);
+ ElementStream<MouseEvent> get onDragEnter =>
+ Element.dragEnterEvent._forElementList(this);
/**
* A stream of `dragleave` events fired when an object being dragged over this
@@ -12623,7 +12730,8 @@
*/
@DomName('Element.ondragleave')
@DocsEditable()
- ElementStream<MouseEvent> get onDragLeave => Element.dragLeaveEvent._forElementList(this);
+ ElementStream<MouseEvent> get onDragLeave =>
+ Element.dragLeaveEvent._forElementList(this);
/**
* A stream of `dragover` events fired when a dragged object is currently
@@ -12641,7 +12749,8 @@
*/
@DomName('Element.ondragover')
@DocsEditable()
- ElementStream<MouseEvent> get onDragOver => Element.dragOverEvent._forElementList(this);
+ ElementStream<MouseEvent> get onDragOver =>
+ Element.dragOverEvent._forElementList(this);
/**
* A stream of `dragstart` events fired when this element starts being
@@ -12659,7 +12768,8 @@
*/
@DomName('Element.ondragstart')
@DocsEditable()
- ElementStream<MouseEvent> get onDragStart => Element.dragStartEvent._forElementList(this);
+ ElementStream<MouseEvent> get onDragStart =>
+ Element.dragStartEvent._forElementList(this);
/**
* A stream of `drop` events fired when a dragged object is dropped on this
@@ -12677,17 +12787,20 @@
*/
@DomName('Element.ondrop')
@DocsEditable()
- ElementStream<MouseEvent> get onDrop => Element.dropEvent._forElementList(this);
+ ElementStream<MouseEvent> get onDrop =>
+ Element.dropEvent._forElementList(this);
@DomName('Element.ondurationchange')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onDurationChange => Element.durationChangeEvent._forElementList(this);
+ ElementStream<Event> get onDurationChange =>
+ Element.durationChangeEvent._forElementList(this);
@DomName('Element.onemptied')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onEmptied => Element.emptiedEvent._forElementList(this);
+ ElementStream<Event> get onEmptied =>
+ Element.emptiedEvent._forElementList(this);
@DomName('Element.onended')
@DocsEditable()
@@ -12712,22 +12825,26 @@
/// Stream of `invalid` events handled by this [Element].
@DomName('Element.oninvalid')
@DocsEditable()
- ElementStream<Event> get onInvalid => Element.invalidEvent._forElementList(this);
+ ElementStream<Event> get onInvalid =>
+ Element.invalidEvent._forElementList(this);
/// Stream of `keydown` events handled by this [Element].
@DomName('Element.onkeydown')
@DocsEditable()
- ElementStream<KeyboardEvent> get onKeyDown => Element.keyDownEvent._forElementList(this);
+ ElementStream<KeyboardEvent> get onKeyDown =>
+ Element.keyDownEvent._forElementList(this);
/// Stream of `keypress` events handled by this [Element].
@DomName('Element.onkeypress')
@DocsEditable()
- ElementStream<KeyboardEvent> get onKeyPress => Element.keyPressEvent._forElementList(this);
+ ElementStream<KeyboardEvent> get onKeyPress =>
+ Element.keyPressEvent._forElementList(this);
/// Stream of `keyup` events handled by this [Element].
@DomName('Element.onkeyup')
@DocsEditable()
- ElementStream<KeyboardEvent> get onKeyUp => Element.keyUpEvent._forElementList(this);
+ ElementStream<KeyboardEvent> get onKeyUp =>
+ Element.keyUpEvent._forElementList(this);
/// Stream of `load` events handled by this [Element].
@DomName('Element.onload')
@@ -12737,61 +12854,72 @@
@DomName('Element.onloadeddata')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onLoadedData => Element.loadedDataEvent._forElementList(this);
+ ElementStream<Event> get onLoadedData =>
+ Element.loadedDataEvent._forElementList(this);
@DomName('Element.onloadedmetadata')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onLoadedMetadata => Element.loadedMetadataEvent._forElementList(this);
+ ElementStream<Event> get onLoadedMetadata =>
+ Element.loadedMetadataEvent._forElementList(this);
/// Stream of `mousedown` events handled by this [Element].
@DomName('Element.onmousedown')
@DocsEditable()
- ElementStream<MouseEvent> get onMouseDown => Element.mouseDownEvent._forElementList(this);
+ ElementStream<MouseEvent> get onMouseDown =>
+ Element.mouseDownEvent._forElementList(this);
/// Stream of `mouseenter` events handled by this [Element].
@DomName('Element.onmouseenter')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<MouseEvent> get onMouseEnter => Element.mouseEnterEvent._forElementList(this);
+ ElementStream<MouseEvent> get onMouseEnter =>
+ Element.mouseEnterEvent._forElementList(this);
/// Stream of `mouseleave` events handled by this [Element].
@DomName('Element.onmouseleave')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<MouseEvent> get onMouseLeave => Element.mouseLeaveEvent._forElementList(this);
+ ElementStream<MouseEvent> get onMouseLeave =>
+ Element.mouseLeaveEvent._forElementList(this);
/// Stream of `mousemove` events handled by this [Element].
@DomName('Element.onmousemove')
@DocsEditable()
- ElementStream<MouseEvent> get onMouseMove => Element.mouseMoveEvent._forElementList(this);
+ ElementStream<MouseEvent> get onMouseMove =>
+ Element.mouseMoveEvent._forElementList(this);
/// Stream of `mouseout` events handled by this [Element].
@DomName('Element.onmouseout')
@DocsEditable()
- ElementStream<MouseEvent> get onMouseOut => Element.mouseOutEvent._forElementList(this);
+ ElementStream<MouseEvent> get onMouseOut =>
+ Element.mouseOutEvent._forElementList(this);
/// Stream of `mouseover` events handled by this [Element].
@DomName('Element.onmouseover')
@DocsEditable()
- ElementStream<MouseEvent> get onMouseOver => Element.mouseOverEvent._forElementList(this);
+ ElementStream<MouseEvent> get onMouseOver =>
+ Element.mouseOverEvent._forElementList(this);
/// Stream of `mouseup` events handled by this [Element].
@DomName('Element.onmouseup')
@DocsEditable()
- ElementStream<MouseEvent> get onMouseUp => Element.mouseUpEvent._forElementList(this);
+ ElementStream<MouseEvent> get onMouseUp =>
+ Element.mouseUpEvent._forElementList(this);
/// Stream of `mousewheel` events handled by this [Element].
@DomName('Element.onmousewheel')
@DocsEditable()
// http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
@Experimental() // non-standard
- ElementStream<WheelEvent> get onMouseWheel => Element.mouseWheelEvent._forElementList(this);
+ ElementStream<WheelEvent> get onMouseWheel =>
+ Element.mouseWheelEvent._forElementList(this);
/// Stream of `paste` events handled by this [Element].
@DomName('Element.onpaste')
@DocsEditable()
- ElementStream<ClipboardEvent> get onPaste => Element.pasteEvent._forElementList(this);
+ ElementStream<ClipboardEvent> get onPaste =>
+ Element.pasteEvent._forElementList(this);
@DomName('Element.onpause')
@DocsEditable()
@@ -12806,12 +12934,14 @@
@DomName('Element.onplaying')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onPlaying => Element.playingEvent._forElementList(this);
+ ElementStream<Event> get onPlaying =>
+ Element.playingEvent._forElementList(this);
@DomName('Element.onratechange')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onRateChange => Element.rateChangeEvent._forElementList(this);
+ ElementStream<Event> get onRateChange =>
+ Element.rateChangeEvent._forElementList(this);
/// Stream of `reset` events handled by this [Element].
@DomName('Element.onreset')
@@ -12821,102 +12951,119 @@
@DomName('Element.onresize')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onResize => Element.resizeEvent._forElementList(this);
+ ElementStream<Event> get onResize =>
+ Element.resizeEvent._forElementList(this);
/// Stream of `scroll` events handled by this [Element].
@DomName('Element.onscroll')
@DocsEditable()
- ElementStream<Event> get onScroll => Element.scrollEvent._forElementList(this);
+ ElementStream<Event> get onScroll =>
+ Element.scrollEvent._forElementList(this);
/// Stream of `search` events handled by this [Element].
@DomName('Element.onsearch')
@DocsEditable()
// http://www.w3.org/TR/html-markup/input.search.html
@Experimental()
- ElementStream<Event> get onSearch => Element.searchEvent._forElementList(this);
+ ElementStream<Event> get onSearch =>
+ Element.searchEvent._forElementList(this);
@DomName('Element.onseeked')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onSeeked => Element.seekedEvent._forElementList(this);
+ ElementStream<Event> get onSeeked =>
+ Element.seekedEvent._forElementList(this);
@DomName('Element.onseeking')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onSeeking => Element.seekingEvent._forElementList(this);
+ ElementStream<Event> get onSeeking =>
+ Element.seekingEvent._forElementList(this);
/// Stream of `select` events handled by this [Element].
@DomName('Element.onselect')
@DocsEditable()
- ElementStream<Event> get onSelect => Element.selectEvent._forElementList(this);
+ ElementStream<Event> get onSelect =>
+ Element.selectEvent._forElementList(this);
/// Stream of `selectstart` events handled by this [Element].
@DomName('Element.onselectstart')
@DocsEditable()
@Experimental() // nonstandard
- ElementStream<Event> get onSelectStart => Element.selectStartEvent._forElementList(this);
+ ElementStream<Event> get onSelectStart =>
+ Element.selectStartEvent._forElementList(this);
@DomName('Element.onstalled')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onStalled => Element.stalledEvent._forElementList(this);
+ ElementStream<Event> get onStalled =>
+ Element.stalledEvent._forElementList(this);
/// Stream of `submit` events handled by this [Element].
@DomName('Element.onsubmit')
@DocsEditable()
- ElementStream<Event> get onSubmit => Element.submitEvent._forElementList(this);
+ ElementStream<Event> get onSubmit =>
+ Element.submitEvent._forElementList(this);
@DomName('Element.onsuspend')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onSuspend => Element.suspendEvent._forElementList(this);
+ ElementStream<Event> get onSuspend =>
+ Element.suspendEvent._forElementList(this);
@DomName('Element.ontimeupdate')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onTimeUpdate => Element.timeUpdateEvent._forElementList(this);
+ ElementStream<Event> get onTimeUpdate =>
+ Element.timeUpdateEvent._forElementList(this);
/// Stream of `touchcancel` events handled by this [Element].
@DomName('Element.ontouchcancel')
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- ElementStream<TouchEvent> get onTouchCancel => Element.touchCancelEvent._forElementList(this);
+ ElementStream<TouchEvent> get onTouchCancel =>
+ Element.touchCancelEvent._forElementList(this);
/// Stream of `touchend` events handled by this [Element].
@DomName('Element.ontouchend')
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- ElementStream<TouchEvent> get onTouchEnd => Element.touchEndEvent._forElementList(this);
+ ElementStream<TouchEvent> get onTouchEnd =>
+ Element.touchEndEvent._forElementList(this);
/// Stream of `touchenter` events handled by this [Element].
@DomName('Element.ontouchenter')
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- ElementStream<TouchEvent> get onTouchEnter => Element.touchEnterEvent._forElementList(this);
+ ElementStream<TouchEvent> get onTouchEnter =>
+ Element.touchEnterEvent._forElementList(this);
/// Stream of `touchleave` events handled by this [Element].
@DomName('Element.ontouchleave')
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- ElementStream<TouchEvent> get onTouchLeave => Element.touchLeaveEvent._forElementList(this);
+ ElementStream<TouchEvent> get onTouchLeave =>
+ Element.touchLeaveEvent._forElementList(this);
/// Stream of `touchmove` events handled by this [Element].
@DomName('Element.ontouchmove')
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- ElementStream<TouchEvent> get onTouchMove => Element.touchMoveEvent._forElementList(this);
+ ElementStream<TouchEvent> get onTouchMove =>
+ Element.touchMoveEvent._forElementList(this);
/// Stream of `touchstart` events handled by this [Element].
@DomName('Element.ontouchstart')
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- ElementStream<TouchEvent> get onTouchStart => Element.touchStartEvent._forElementList(this);
+ ElementStream<TouchEvent> get onTouchStart =>
+ Element.touchStartEvent._forElementList(this);
/// Stream of `transitionend` events handled by this [Element].
@DomName('Element.ontransitionend')
@@ -12925,32 +13072,36 @@
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
- ElementStream<TransitionEvent> get onTransitionEnd => Element.transitionEndEvent._forElementList(this);
+ ElementStream<TransitionEvent> get onTransitionEnd =>
+ Element.transitionEndEvent._forElementList(this);
@DomName('Element.onvolumechange')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onVolumeChange => Element.volumeChangeEvent._forElementList(this);
+ ElementStream<Event> get onVolumeChange =>
+ Element.volumeChangeEvent._forElementList(this);
@DomName('Element.onwaiting')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<Event> get onWaiting => Element.waitingEvent._forElementList(this);
+ ElementStream<Event> get onWaiting =>
+ Element.waitingEvent._forElementList(this);
/// Stream of `fullscreenchange` events handled by this [Element].
@DomName('Element.onwebkitfullscreenchange')
@DocsEditable()
// https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
@Experimental()
- ElementStream<Event> get onFullscreenChange => Element.fullscreenChangeEvent._forElementList(this);
+ ElementStream<Event> get onFullscreenChange =>
+ Element.fullscreenChangeEvent._forElementList(this);
/// Stream of `fullscreenerror` events handled by this [Element].
@DomName('Element.onwebkitfullscreenerror')
@DocsEditable()
// https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
@Experimental()
- ElementStream<Event> get onFullscreenError => Element.fullscreenErrorEvent._forElementList(this);
-
+ ElementStream<Event> get onFullscreenError =>
+ Element.fullscreenErrorEvent._forElementList(this);
}
@DocsEditable()
@@ -12959,8 +13110,12 @@
*/
@DomName('Element')
@Native("Element")
-class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandlers, ParentNode, ChildNode {
-
+class Element extends Node
+ implements
+ NonDocumentTypeChildNode,
+ GlobalEventHandlers,
+ ParentNode,
+ ChildNode {
/**
* Creates an HTML element from a valid fragment of HTML.
*
@@ -12984,8 +13139,8 @@
*/
factory Element.html(String html,
{NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
- var fragment = document.body.createFragment(html, validator: validator,
- treeSanitizer: treeSanitizer);
+ var fragment = document.body.createFragment(html,
+ validator: validator, treeSanitizer: treeSanitizer);
return fragment.nodes.where((e) => e is Element).single;
}
@@ -13229,8 +13384,9 @@
* [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
*/
@DomName('Element.querySelectorAll')
- ElementList<Element /*=T*/> querySelectorAll/*<T extends Element>*/(String selectors) =>
- new _FrozenElementList/*<T>*/._wrap(_querySelectorAll(selectors));
+ ElementList<Element/*=T*/ > querySelectorAll/*<T extends Element>*/(
+ String selectors) =>
+ new _FrozenElementList/*<T>*/ ._wrap(_querySelectorAll(selectors));
/**
* Alias for [querySelector]. Note this function is deprecated because its
@@ -13248,7 +13404,8 @@
@deprecated
@DomName('Element.querySelectorAll')
@Experimental()
- ElementList<Element /*=T*/> queryAll/*<T extends Element>*/(String relativeSelectors) =>
+ ElementList<Element/*=T*/ > queryAll/*<T extends Element>*/(
+ String relativeSelectors) =>
querySelectorAll(relativeSelectors);
/**
@@ -13295,8 +13452,7 @@
* * [Custom data
* attributes](http://dev.w3.org/html5/spec-preview/global-attributes.html#custom-data-attribute)
*/
- Map<String, String> get dataset =>
- new _DataAttributeMap(attributes);
+ Map<String, String> get dataset => new _DataAttributeMap(attributes);
set dataset(Map<String, String> value) {
final data = this.dataset;
@@ -13343,14 +13499,14 @@
/**
* Gets the position of this element relative to the client area of the page.
*/
- Rectangle get client => new Rectangle(clientLeft, clientTop, clientWidth,
- clientHeight);
+ Rectangle get client =>
+ new Rectangle(clientLeft, clientTop, clientWidth, clientHeight);
/**
* Gets the offset of this element relative to its offsetParent.
*/
- Rectangle get offset => new Rectangle(offsetLeft, offsetTop, offsetWidth,
- offsetHeight);
+ Rectangle get offset =>
+ new Rectangle(offsetLeft, offsetTop, offsetWidth, offsetHeight);
/**
* Adds the specified text after the last child of this element.
@@ -13363,10 +13519,10 @@
* Parses the specified text as HTML and adds the resulting node after the
* last child of this element.
*/
- void appendHtml(String text, {NodeValidator validator,
- NodeTreeSanitizer treeSanitizer}) {
- this.insertAdjacentHtml('beforeend', text, validator: validator,
- treeSanitizer: treeSanitizer);
+ void appendHtml(String text,
+ {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
+ this.insertAdjacentHtml('beforeend', text,
+ validator: validator, treeSanitizer: treeSanitizer);
}
/**
@@ -13452,16 +13608,17 @@
} else {
convertedFrames = frames;
}
- var convertedTiming = timing is Map ? convertDartToNative_Dictionary(timing) : timing;
+ var convertedTiming =
+ timing is Map ? convertDartToNative_Dictionary(timing) : timing;
return convertedTiming == null
- ? _animate(convertedFrames)
- : _animate(convertedFrames, convertedTiming);
+ ? _animate(convertedFrames)
+ : _animate(convertedFrames, convertedTiming);
}
@DomName('Element.animate')
@JSName('animate')
@Experimental() // untriaged
- Animation _animate(Object effect, [timing]) native;
+ Animation _animate(Object effect, [timing]) native ;
/**
* Called by the DOM whenever an attribute on this has been changed.
*/
@@ -13469,7 +13626,7 @@
// Hooks to support custom WebComponents.
- @Creates('Null') // Set from Dart code; does not instantiate a native type.
+ @Creates('Null') // Set from Dart code; does not instantiate a native type.
Element _xtag;
/**
@@ -13563,7 +13720,7 @@
@DomName('Element.mouseWheelEvent')
static const EventStreamProvider<WheelEvent> mouseWheelEvent =
const _CustomEventStreamProvider<WheelEvent>(
- Element._determineMouseWheelEventType);
+ Element._determineMouseWheelEventType);
static String _determineMouseWheelEventType(EventTarget e) => 'wheel';
@@ -13576,7 +13733,7 @@
@DomName('Element.transitionEndEvent')
static const EventStreamProvider<TransitionEvent> transitionEndEvent =
const _CustomEventStreamProvider<TransitionEvent>(
- Element._determineTransitionEventType);
+ Element._determineTransitionEventType);
static String _determineTransitionEventType(EventTarget e) {
// Unfortunately the normal 'ontransitionend' style checks don't work here.
@@ -13587,6 +13744,7 @@
}
return 'transitionend';
}
+
/**
* Inserts text into the DOM at the specified location.
*
@@ -13606,8 +13764,7 @@
}
@JSName('insertAdjacentText')
- void _insertAdjacentText(String where, String text) native;
-
+ void _insertAdjacentText(String where, String text) native ;
/**
* Parses text as an HTML fragment and inserts it into the DOM at the
@@ -13631,19 +13788,20 @@
* * [insertAdjacentText]
* * [insertAdjacentElement]
*/
- void insertAdjacentHtml(String where, String html, {NodeValidator validator,
- NodeTreeSanitizer treeSanitizer}) {
- if (treeSanitizer is _TrustedHtmlTreeSanitizer) {
- _insertAdjacentHtml(where, html);
- } else {
- _insertAdjacentNode(where, createFragment(html,
- validator: validator, treeSanitizer: treeSanitizer));
- }
+ void insertAdjacentHtml(String where, String html,
+ {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
+ if (treeSanitizer is _TrustedHtmlTreeSanitizer) {
+ _insertAdjacentHtml(where, html);
+ } else {
+ _insertAdjacentNode(
+ where,
+ createFragment(html,
+ validator: validator, treeSanitizer: treeSanitizer));
+ }
}
-
@JSName('insertAdjacentHTML')
- void _insertAdjacentHtml(String where, String text) native;
+ void _insertAdjacentHtml(String where, String text) native ;
/**
* Inserts [element] into the DOM at the specified location.
@@ -13665,7 +13823,7 @@
}
@JSName('insertAdjacentElement')
- void _insertAdjacentElement(String where, Element element) native;
+ void _insertAdjacentElement(String where, Element element) native ;
void _insertAdjacentNode(String where, Node node) {
switch (where.toLowerCase()) {
@@ -13714,7 +13872,7 @@
do {
if (elem.matches(selectors)) ret