diff --git a/pkg/dev_compiler/lib/src/compiler/code_generator.dart b/pkg/dev_compiler/lib/src/compiler/code_generator.dart index a45ce215ce5e..78636a1fee36 100644 --- a/pkg/dev_compiler/lib/src/compiler/code_generator.dart +++ b/pkg/dev_compiler/lib/src/compiler/code_generator.dart @@ -81,7 +81,8 @@ class CodeGenerator extends GeneralizingAstVisitor final _privateNames = new HashMap>(); - final _temps = new HashMap(); + final _initializingFormalTemps = + new HashMap(); final _dartxVar = new JS.Identifier('dartx'); final _runtimeLibVar = new JS.Identifier('dart'); @@ -1912,12 +1913,9 @@ class CodeGenerator extends GeneralizingAstVisitor return _emitParameter(element); } + // If this is one of our compiler's temporary variables, return its JS form. if (element is TemporaryVariableElement) { - if (name[0] == '#') { - return new JS.InterpolatedExpression(name.substring(1)); - } else { - return _getTemp(element, name); - } + return element.jsVariable; } return new JS.Identifier(name); @@ -1931,16 +1929,14 @@ class CodeGenerator extends GeneralizingAstVisitor /// Rename private names so they don't shadow the private field symbol. /// The renamer would handle this, but it would prefer to rename the /// temporary used for the private symbol. Instead rename the parameter. - return _getTemp(element, '${element.name.substring(1)}'); + return _initializingFormalTemps.putIfAbsent( + element, () => new JS.TemporaryId(element.name.substring(1))); } var type = declaration ? emitTypeRef(element.type) : null; return new JS.Identifier(element.name, type: type); } - JS.TemporaryId _getTemp(Element key, String name) => - _temps.putIfAbsent(key, () => new JS.TemporaryId(name)); - List _parameterMetadata(FormalParameter p) => (p is NormalFormalParameter) ? p.metadata @@ -2086,7 +2082,7 @@ class CodeGenerator extends GeneralizingAstVisitor // Handle the left hand side, to ensure each of its subexpressions are // evaluated only once. - var vars = {}; + var vars = {}; var x = _bindLeftHandSide(vars, left, context: left); // Capture the result of evaluating the left hand side in a temp. var t = _bindValue(vars, 't', x, context: x); @@ -2097,7 +2093,7 @@ class CodeGenerator extends GeneralizingAstVisitor // Desugar `x += y` as `x = x + y`, ensuring that if `x` has subexpressions // (for example, x is IndexExpression) we evaluate those once. - var vars = {}; + var vars = {}; var lhs = _bindLeftHandSide(vars, left, context: context); var inc = AstBuilder.binaryExpression(lhs, op, right); inc.staticElement = element; @@ -2146,7 +2142,7 @@ class CodeGenerator extends GeneralizingAstVisitor // // However with MetaLet, we get clean code in statement or void context, // or when one of the expressions is stateless, which seems common. - var vars = {}; + var vars = {}; var left = _bindValue(vars, 'l', node.target); var body = js.call('# == null ? null : #', [_visit(left), _emitSet(_stripNullAwareOp(node, left), right)]); @@ -2722,7 +2718,7 @@ class CodeGenerator extends GeneralizingAstVisitor // This should be a hint or warning for dead code. if (!isNullable(left)) return _visit(left); - var vars = {}; + var vars = {}; // Desugar `l ?? r` as `l != null ? l : r` var l = _visit(_bindValue(vars, 'l', left, context: left)); return new JS.MetaLet(vars, [ @@ -2771,7 +2767,7 @@ class CodeGenerator extends GeneralizingAstVisitor bool _isNull(Expression expr) => expr is NullLiteral; SimpleIdentifier _createTemporary(String name, DartType type, - {bool nullable: true}) { + {bool nullable: true, JS.Expression variable}) { // We use an invalid source location to signal that this is a temporary. // See [_isTemporary]. // TODO(jmesserly): alternatives are @@ -2781,7 +2777,10 @@ class CodeGenerator extends GeneralizingAstVisitor // * create a new subtype of LocalVariableElementImpl to mark a temp. var id = new SimpleIdentifier(new StringToken(TokenType.IDENTIFIER, name, -1)); - id.staticElement = new TemporaryVariableElement.forNode(id); + + variable ??= new JS.TemporaryId(name); + + id.staticElement = new TemporaryVariableElement.forNode(id, variable); id.staticType = type; DynamicInvoke.set(id, type.isDynamic); addTemporaryVariable(id.staticElement, nullable: nullable); @@ -2811,7 +2810,7 @@ class CodeGenerator extends GeneralizingAstVisitor /// unless [expr] is a SimpleIdentifier, in which case a temporary is not /// needed. Expression _bindLeftHandSide( - Map scope, Expression expr, + Map scope, Expression expr, {Expression context}) { Expression result; if (expr is IndexExpression) { @@ -2855,14 +2854,15 @@ class CodeGenerator extends GeneralizingAstVisitor /// variables), then the resulting code will be simplified automatically. /// /// [scope] will be mutated to contain the new temporary's initialization. - Expression _bindValue( - Map scope, String name, Expression expr, + Expression _bindValue(Map scope, + String name, Expression expr, {Expression context}) { // No need to do anything for stateless expressions. if (isStateless(_currentFunction, expr, context)) return expr; - var t = _createTemporary('#$name', getStaticType(expr)); - scope[name] = _visit(expr); + var variable = new JS.MetaLetVariable(name); + var t = _createTemporary(name, getStaticType(expr), variable: variable); + scope[variable] = _visit(expr); return t; } @@ -2900,7 +2900,7 @@ class CodeGenerator extends GeneralizingAstVisitor // Handle the left hand side, to ensure each of its subexpressions are // evaluated only once. - var vars = {}; + var vars = {}; var left = _bindLeftHandSide(vars, expr, context: expr); // Desugar `x++` as `(x1 = x0 + 1, x0)` where `x0` is the original value @@ -2927,7 +2927,7 @@ class CodeGenerator extends GeneralizingAstVisitor return js.call('$op#', _visit(expr)); } else if (op.lexeme == '++' || op.lexeme == '--') { // We need a null check, so the increment must be expanded out. - var vars = {}; + var vars = {}; var x = _bindLeftHandSide(vars, expr, context: expr); var one = AstBuilder.integerLiteral(1)..staticType = types.intType; @@ -2960,7 +2960,7 @@ class CodeGenerator extends GeneralizingAstVisitor JS.Node visitCascadeExpression(CascadeExpression node) { var savedCascadeTemp = _cascadeTarget; - var vars = {}; + var vars = {}; _cascadeTarget = _bindValue(vars, '_', node.target, context: node); var sections = _visitList(node.cascadeSections) as List; sections.add(_visit(_cascadeTarget)); @@ -3779,7 +3779,9 @@ JS.LiteralString _propertyName(String name) => js.string(name, "'"); /// variable. These objects use instance equality, and should be shared /// everywhere in the tree where they are treated as the same variable. class TemporaryVariableElement extends LocalVariableElementImpl { - TemporaryVariableElement.forNode(Identifier name) : super.forNode(name); + final JS.Expression jsVariable; + TemporaryVariableElement.forNode(Identifier name, this.jsVariable) + : super.forNode(name); int get hashCode => identityHashCode(this); bool operator ==(Object other) => identical(this, other); diff --git a/pkg/dev_compiler/lib/src/compiler/js_metalet.dart b/pkg/dev_compiler/lib/src/compiler/js_metalet.dart index 5bddf5a8e65f..c0581d638a1e 100644 --- a/pkg/dev_compiler/lib/src/compiler/js_metalet.dart +++ b/pkg/dev_compiler/lib/src/compiler/js_metalet.dart @@ -36,7 +36,7 @@ class MetaLet extends Expression { /// If the expression does not end up using `x` more than once, or if those /// expressions can be treated as [stateless] (e.g. they are non-mutated /// variables), then the resulting code will be simplified automatically. - final Map variables; + final Map variables; /// A list of expressions in the body. /// The last value should represent the returned value. @@ -171,49 +171,40 @@ class MetaLet extends Expression { } Block _finishStatement(List statements) { - var params = []; - var values = []; - var block = _build(params, values, new Block(statements)); - if (params.isEmpty) return block; - - var vars = []; - for (int i = 0; i < params.length; i++) { - vars.add(new VariableInitialization(params[i], values[i])); - } - - return new Block([ - new VariableDeclarationList('let', vars).toStatement(), - block - ]); - } - - Node _build(List params, List values, Node node) { // Visit the tree and count how many times each temp was used. var counter = new _VariableUseCounter(); + var node = new Block(statements); node.accept(counter); // Also count the init expressions. for (var init in variables.values) init.accept(counter); - var substitutions = {}; - _substitute(node) => new Template(null, node).safeCreate(substitutions); - - variables.forEach((name, init) { + var initializers = []; + var substitutions = {}; + variables.forEach((variable, init) { // Since this is let*, subsequent variables can refer to previous ones, // so we need to substitute here. - init = _substitute(init); - int n = counter.counts[name]; - if (n == null || n < 2) { - substitutions[name] = _substitute(init); + init = _substitute(init, substitutions); + int n = counter.counts[variable]; + if (n == 1) { + // Replace interpolated exprs with their value, if it only occurs once. + substitutions[variable] = init; } else { - params.add(substitutions[name] = new TemporaryId(name)); - values.add(init); + // Otherwise replace it with a temp, which will be assigned once. + var temp = new TemporaryId(variable.displayName); + substitutions[variable] = temp; + initializers.add(new VariableInitialization(temp, init)); } }); - // Interpolate the body: - // Replace interpolated exprs with their value, if it only occurs once. - // Otherwise replace it with a temp, which will be assigned once. - return _substitute(node); + // Interpolate the body. + node = _substitute(node, substitutions); + if (initializers.isNotEmpty) { + node = new Block([ + new VariableDeclarationList('let', initializers).toStatement(), + node + ]); + } + return node; } /// If we finish with an assignment to an identifier, try to simplify the @@ -231,11 +222,10 @@ class MetaLet extends Expression { /// MetaLet _simplifyAssignment(Identifier left, {bool isDeclaration: false}) { // See if the result value is a let* temporary variable. - if (body.last is! InterpolatedExpression) return null; + if (body.last is! MetaLetVariable) return null; - InterpolatedExpression last = body.last; - String name = last.nameOrPosition; - if (!variables.containsKey(name)) return null; + MetaLetVariable result = body.last; + if (!variables.containsKey(result)) return null; // Variables declared can't be used inside their initializer, so make // sure we don't transform an assignment into an initializer. @@ -252,8 +242,8 @@ class MetaLet extends Expression { if (finder.found) return null; } - var vars = new Map.from(variables); - var value = vars.remove(name); + var vars = new Map.from(variables); + var value = vars.remove(result); Expression assign; if (isDeclaration) { // Technically, putting one of these in a comma expression is not @@ -266,18 +256,59 @@ class MetaLet extends Expression { } var newBody = new Expression.binary([assign]..addAll(body), ','); - Binary comma = new Template(null, newBody).safeCreate({name: left}); - return new MetaLet(vars, comma.commaToExpressionList(), + newBody = _substitute(newBody, {result: left}); + return new MetaLet(vars, newBody.commaToExpressionList(), statelessResult: statelessResult); } } +/// Similar to [Template.instantiate] but works with free variables. +Node _substitute(Node tree, Map substitutions) { + var generator = new InstantiatorGeneratorVisitor(/*forceCopy:*/ false); + var instantiator = generator.compile(tree); + var nodes = new List.from(generator + .analysis.containsInterpolatedNode + .where((n) => n is MetaLetVariable)); + if (nodes.isEmpty) return tree; + + return instantiator(new Map.fromIterable(nodes, + key: (v) => (v as MetaLetVariable).nameOrPosition, + value: (v) => substitutions[v] ?? v)); +} + +/// A temporary variable used in a [MetaLet]. +/// +/// Each instance of this class represents a fresh variable. The same object +/// should be used everywhere to refer to the same variable. Different variables +/// with the same name are different, and will be renamed later on, if needed. +/// +/// These variables will be replaced when the `let*` is complete, depending on +/// how often they occur and whether they can be optimized away. See [MetaLet] +/// for more information. +/// +/// This class should never reach our final JS code. +class MetaLetVariable extends InterpolatedExpression { + /// The suggested display name of this variable. + /// + /// This name should not be used + final String displayName; + + /// Compute fresh IDs to avoid + static int _uniqueId = 0; + + MetaLetVariable(String displayName) + : displayName = displayName, + super(displayName + '@${++_uniqueId}'); +} + class _VariableUseCounter extends BaseVisitor { - final counts = {}; + final counts = {}; @override visitInterpolatedExpression(InterpolatedExpression node) { - int n = counts[node.nameOrPosition]; - counts[node.nameOrPosition] = n == null ? 1 : n + 1; + if (node is MetaLetVariable) { + int n = counts[node]; + counts[node] = n == null ? 1 : n + 1; + } } } diff --git a/pkg/dev_compiler/lib/src/js_ast/template.dart b/pkg/dev_compiler/lib/src/js_ast/template.dart index eb55252a9590..7df213d53abf 100644 --- a/pkg/dev_compiler/lib/src/js_ast/template.dart +++ b/pkg/dev_compiler/lib/src/js_ast/template.dart @@ -121,15 +121,6 @@ class Template { } return instantiator(arguments); } - - /// Like [instantiate] but works with free variables. - Node safeCreate(Map arguments) { - if (holeNames.isEmpty) return ast; - return instantiator(new Map.fromIterable(holeNames, value: (name) { - var a = arguments[name]; - return a != null ? a : new InterpolatedExpression(name); - })); - } } /** diff --git a/pkg/dev_compiler/test/codegen/expect/language-all.js b/pkg/dev_compiler/test/codegen/expect/language-all.js index 724988266709..95ec470b0f2d 100644 --- a/pkg/dev_compiler/test/codegen/expect/language-all.js +++ b/pkg/dev_compiler/test/codegen/expect/language-all.js @@ -936,6 +936,25 @@ dart_library.library('assert_assignable_type_test', null, /* Imports */[ // Exports: exports.assert_assignable_type_test = assert_assignable_type_test; }); +dart_library.library('assert_with_type_test_or_cast_test', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const assert_with_type_test_or_cast_test = Object.create(null); + assert_with_type_test_or_cast_test.main = function() { + let names = core.List$(core.int).new(); + dart.assert(dart.is(names, core.List$(core.int))); + dart.assert(!dart.is(names, core.List$(core.String))); + dart.assert(names[dartx.length] == 0); + dart.assert(dart.is(names, core.List$(core.int))); + }; + dart.fn(assert_with_type_test_or_cast_test.main); + // Exports: + exports.assert_with_type_test_or_cast_test = assert_with_type_test_or_cast_test; +}); dart_library.library('assertion_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -1043,25 +1062,6 @@ dart_library.library('assertion_test', null, /* Imports */[ // Exports: exports.assertion_test = assertion_test; }); -dart_library.library('assert_with_type_test_or_cast_test', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const assert_with_type_test_or_cast_test = Object.create(null); - assert_with_type_test_or_cast_test.main = function() { - let names = core.List$(core.int).new(); - dart.assert(dart.is(names, core.List$(core.int))); - dart.assert(!dart.is(names, core.List$(core.String))); - dart.assert(names[dartx.length] == 0); - dart.assert(dart.is(names, core.List$(core.int))); - }; - dart.fn(assert_with_type_test_or_cast_test.main); - // Exports: - exports.assert_with_type_test_or_cast_test = assert_with_type_test_or_cast_test; -}); dart_library.library('assign_op_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -1194,24 +1194,6 @@ dart_library.library('assign_static_type_test_none_multi', null, /* Imports */[ // Exports: exports.assign_static_type_test_none_multi = assign_static_type_test_none_multi; }); -dart_library.library('assign_top_method_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const assign_top_method_test_none_multi = Object.create(null); - assign_top_method_test_none_multi.method = function() { - return 0; - }; - dart.fn(assign_top_method_test_none_multi.method); - assign_top_method_test_none_multi.main = function() { - }; - dart.fn(assign_top_method_test_none_multi.main); - // Exports: - exports.assign_top_method_test_none_multi = assign_top_method_test_none_multi; -}); dart_library.library('assign_to_type_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -1255,6 +1237,24 @@ dart_library.library('assign_to_type_test_none_multi', null, /* Imports */[ // Exports: exports.assign_to_type_test_none_multi = assign_to_type_test_none_multi; }); +dart_library.library('assign_top_method_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const assign_top_method_test_none_multi = Object.create(null); + assign_top_method_test_none_multi.method = function() { + return 0; + }; + dart.fn(assign_top_method_test_none_multi.method); + assign_top_method_test_none_multi.main = function() { + }; + dart.fn(assign_top_method_test_none_multi.main); + // Exports: + exports.assign_top_method_test_none_multi = assign_top_method_test_none_multi; +}); dart_library.library('async_and_or_test', null, /* Imports */[ 'dart_sdk', 'expect', @@ -12907,53 +12907,6 @@ dart_library.library('async_star_cancel_while_paused_test', null, /* Imports */[ // Exports: exports.async_star_cancel_while_paused_test = async_star_cancel_while_paused_test; }); -dart_library.library('asyncstar_concat_test', null, /* Imports */[ - 'dart_sdk', - 'expect', - 'async_helper' -], function(exports, dart_sdk, expect, async_helper) { - 'use strict'; - const core = dart_sdk.core; - const async = dart_sdk.async; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const async_helper$ = async_helper.async_helper; - const asyncstar_concat_test = Object.create(null); - asyncstar_concat_test.range = function(start, end) { - return dart.asyncStar(function*(stream, start, end) { - for (let i = dart.as(start, core.int); dart.notNull(i) < dart.notNull(dart.as(end, core.num)); i = dart.notNull(i) + 1) { - if (stream.add(i)) return; - yield; - } - }, dart.dynamic, start, end); - }; - dart.fn(asyncstar_concat_test.range); - asyncstar_concat_test.concat = function(a, b) { - return dart.asyncStar(function*(stream, a, b) { - if (stream.addStream(dart.as(a, async.Stream))) return; - yield; - if (stream.addStream(dart.as(b, async.Stream))) return; - yield; - }, dart.dynamic, a, b); - }; - dart.fn(asyncstar_concat_test.concat); - asyncstar_concat_test.test = function() { - return dart.async(function*() { - expect$.Expect.listEquals(dart.list([1, 2, 3, 11, 12, 13], core.int), dart.as(yield dart.dsend(asyncstar_concat_test.concat(asyncstar_concat_test.range(1, 4), asyncstar_concat_test.range(11, 14)), 'toList'), core.List)); - }, dart.dynamic); - }; - dart.fn(asyncstar_concat_test.test); - asyncstar_concat_test.main = function() { - async_helper$.asyncStart(); - dart.dsend(asyncstar_concat_test.test(), 'then', dart.fn(_ => { - async_helper$.asyncEnd(); - })); - }; - dart.fn(asyncstar_concat_test.main); - // Exports: - exports.asyncstar_concat_test = asyncstar_concat_test; -}); dart_library.library('async_star_regression_2238_test', null, /* Imports */[ 'dart_sdk', 'async_helper', @@ -20037,381 +19990,6 @@ dart_library.library('async_star_test_none_multi', null, /* Imports */[ // Exports: exports.async_star_test_none_multi = async_star_test_none_multi; }); -dart_library.library('asyncstar_throw_in_catch_test', null, /* Imports */[ - 'dart_sdk', - 'expect', - 'async_helper' -], function(exports, dart_sdk, expect, async_helper) { - 'use strict'; - const core = dart_sdk.core; - const async = dart_sdk.async; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const async_helper$ = async_helper.async_helper; - const asyncstar_throw_in_catch_test = Object.create(null); - const _trace = Symbol('_trace'); - asyncstar_throw_in_catch_test.Tracer = class Tracer extends core.Object { - Tracer(expected, name) { - if (name === void 0) name = null; - this.expected = expected; - this.name = name; - this[_trace] = ""; - this.counter = 0; - } - trace(msg) { - if (this.name != null) { - } - this[_trace] = dart.notNull(this[_trace]) + dart.notNull(dart.as(msg, core.String)); - this.counter = dart.notNull(this.counter) + 1; - } - done() { - expect$.Expect.equals(this.expected, this[_trace]); - } - }; - dart.setSignature(asyncstar_throw_in_catch_test.Tracer, { - constructors: () => ({Tracer: [asyncstar_throw_in_catch_test.Tracer, [core.String], [core.String]]}), - methods: () => ({ - trace: [dart.void, [dart.dynamic]], - done: [dart.void, []] - }) - }); - asyncstar_throw_in_catch_test.foo1 = function(tracer) { - return dart.asyncStar(function*(stream, tracer) { - try { - tracer.trace("a"); - yield async.Future.value(3); - tracer.trace("b"); - dart.throw("Error"); - } catch (e) { - expect$.Expect.equals("Error", e); - tracer.trace("c"); - if (stream.add(1)) return; - yield; - tracer.trace("d"); - if (stream.add(2)) return; - yield; - tracer.trace("e"); - if (stream.add(3)) return; - yield; - tracer.trace("f"); - } - finally { - tracer.trace("f"); - } - tracer.trace("g"); - }, dart.dynamic, tracer); - }; - dart.fn(asyncstar_throw_in_catch_test.foo1, dart.dynamic, [asyncstar_throw_in_catch_test.Tracer]); - asyncstar_throw_in_catch_test.foo2 = function(tracer) { - return dart.asyncStar(function*(stream, tracer) { - try { - tracer.trace("a"); - dart.throw("Error"); - } catch (error) { - expect$.Expect.equals("Error", error); - tracer.trace("b"); - throw error; - } - finally { - tracer.trace("c"); - } - }, dart.dynamic, tracer); - }; - dart.fn(asyncstar_throw_in_catch_test.foo2, dart.dynamic, [asyncstar_throw_in_catch_test.Tracer]); - asyncstar_throw_in_catch_test.foo3 = function(tracer) { - return dart.asyncStar(function*(stream, tracer) { - try { - tracer.trace("a"); - dart.throw("Error"); - } catch (error) { - expect$.Expect.equals("Error", error); - tracer.trace("b"); - throw error; - } - finally { - tracer.trace("c"); - if (stream.add(1)) return; - yield; - } - }, dart.dynamic, tracer); - }; - dart.fn(asyncstar_throw_in_catch_test.foo3, dart.dynamic, [asyncstar_throw_in_catch_test.Tracer]); - asyncstar_throw_in_catch_test.foo4 = function(tracer) { - return dart.asyncStar(function*(stream, tracer) { - try { - tracer.trace("a"); - yield async.Future.value(3); - tracer.trace("b"); - dart.throw("Error"); - } catch (e) { - expect$.Expect.equals("Error", e); - tracer.trace("c"); - if (stream.add(1)) return; - yield; - tracer.trace("d"); - if (stream.add(2)) return; - yield; - tracer.trace("e"); - yield async.Future.error("Error2"); - } - finally { - tracer.trace("f"); - } - tracer.trace("g"); - }, dart.dynamic, tracer); - }; - dart.fn(asyncstar_throw_in_catch_test.foo4, dart.dynamic, [asyncstar_throw_in_catch_test.Tracer]); - asyncstar_throw_in_catch_test.runTest = function(test, expectedTrace, expectedError, shouldCancel) { - let tracer = new asyncstar_throw_in_catch_test.Tracer(dart.as(expectedTrace, core.String), dart.as(expectedTrace, core.String)); - let done = async.Completer.new(); - let subscription = null; - subscription = dart.dsend(dart.dcall(test, tracer), 'listen', dart.fn(event => dart.async(function*(event) { - tracer.trace("Y"); - if (dart.notNull(dart.as(shouldCancel, core.bool))) { - yield dart.dsend(subscription, 'cancel'); - tracer.trace("C"); - done.complete(null); - } - }, dart.dynamic, event), async.Future, [dart.dynamic]), {onError: dart.fn(error => { - expect$.Expect.equals(expectedError, error); - tracer.trace("X"); - }), onDone: dart.fn(() => { - tracer.done(); - done.complete(null); - })}); - return done.future.then(dart.fn(_ => tracer.done(), dart.void, [dart.dynamic])); - }; - dart.fn(asyncstar_throw_in_catch_test.runTest); - asyncstar_throw_in_catch_test.test = function() { - return dart.async(function*() { - yield asyncstar_throw_in_catch_test.runTest(asyncstar_throw_in_catch_test.foo1, "abcdYefC", null, true); - yield asyncstar_throw_in_catch_test.runTest(asyncstar_throw_in_catch_test.foo2, "abcX", "Error", false); - yield asyncstar_throw_in_catch_test.runTest(asyncstar_throw_in_catch_test.foo3, "abcYX", "Error", false); - yield asyncstar_throw_in_catch_test.runTest(asyncstar_throw_in_catch_test.foo4, "abcdYeYfX", "Error2", false); - }, dart.dynamic); - }; - dart.fn(asyncstar_throw_in_catch_test.test); - asyncstar_throw_in_catch_test.main = function() { - async_helper$.asyncTest(asyncstar_throw_in_catch_test.test); - }; - dart.fn(asyncstar_throw_in_catch_test.main, dart.void, []); - // Exports: - exports.asyncstar_throw_in_catch_test = asyncstar_throw_in_catch_test; -}); -dart_library.library('asyncstar_yieldstar_test', null, /* Imports */[ - 'dart_sdk', - 'expect', - 'async_helper' -], function(exports, dart_sdk, expect, async_helper) { - 'use strict'; - const core = dart_sdk.core; - const async = dart_sdk.async; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const async_helper$ = async_helper.async_helper; - const asyncstar_yieldstar_test = Object.create(null); - asyncstar_yieldstar_test.subStream = function(p) { - return dart.asyncStar(function*(stream, p) { - if (stream.add(dart.as(p, core.int))) return; - yield; - if (stream.add(dart.as(dart.dsend(p, '+', 1), core.int))) return; - yield; - }, core.int, p); - }; - dart.fn(asyncstar_yieldstar_test.subStream, async.Stream$(core.int), [dart.dynamic]); - asyncstar_yieldstar_test.foo = function(finalized) { - return dart.asyncStar(function*(stream, finalized) { - let i = 0; - try { - while (true) { - if (stream.add("outer")) return; - yield; - if (stream.addStream(asyncstar_yieldstar_test.subStream(i))) return; - yield; - i++; - } - } finally { - expect$.Expect.isTrue(i < 10); - finalized.complete(true); - } - }, dart.dynamic, finalized); - }; - dart.fn(asyncstar_yieldstar_test.foo, async.Stream, [async.Completer$(core.bool)]); - asyncstar_yieldstar_test.foo2 = function(subStream) { - return dart.asyncStar(function*(stream, subStream) { - if (stream.addStream(subStream)) return; - yield; - }, dart.dynamic, subStream); - }; - dart.fn(asyncstar_yieldstar_test.foo2, dart.dynamic, [async.Stream]); - asyncstar_yieldstar_test.test = function() { - return dart.async(function*() { - expect$.Expect.listEquals(dart.list([0, 1], core.int), yield asyncstar_yieldstar_test.subStream(0).toList()); - let finalized = async.Completer$(core.bool).new(); - expect$.Expect.listEquals(dart.list(["outer", 0, 1, "outer", 1, 2, "outer", 2], core.Object), yield asyncstar_yieldstar_test.foo(finalized).take(8).toList()); - expect$.Expect.isTrue(yield finalized.future); - finalized = async.Completer$(core.bool).new(); - expect$.Expect.listEquals(dart.list(["outer", 0, 1, "outer", 1, 2, "outer"], core.Object), yield asyncstar_yieldstar_test.foo(finalized).take(7).toList()); - expect$.Expect.isTrue(yield finalized.future); - finalized = async.Completer$(core.bool).new(); - let pausedCompleter = async.Completer$(core.bool).new(); - let resumedCompleter = async.Completer$(core.bool).new(); - let canceledCompleter = async.Completer$(core.bool).new(); - let controller = null; - let i = 0; - function addNext() { - if (i >= 10) return; - controller.add(i); - i++; - if (!dart.notNull(controller.isPaused)) { - async.scheduleMicrotask(addNext); - } - } - dart.fn(addNext); - controller = async.StreamController.new({onListen: dart.fn(() => { - async.scheduleMicrotask(addNext); - }, dart.void, []), onPause: dart.fn(() => { - pausedCompleter.complete(true); - }, dart.void, []), onResume: dart.fn(() => { - resumedCompleter.complete(true); - async.scheduleMicrotask(addNext); - }, dart.void, []), onCancel: dart.fn(() => { - canceledCompleter.complete(true); - })}); - let subscription = null; - subscription = dart.as(dart.dsend(asyncstar_yieldstar_test.foo2(controller.stream), 'listen', dart.fn(event => { - if (dart.equals(event, 2)) { - subscription.pause(); - async.scheduleMicrotask(dart.fn(() => { - subscription.resume(); - }, dart.void, [])); - } - if (dart.equals(event, 5)) { - subscription.cancel(); - } - })), async.StreamSubscription); - expect$.Expect.isTrue(yield pausedCompleter.future); - expect$.Expect.isTrue(yield resumedCompleter.future); - expect$.Expect.isTrue(yield canceledCompleter.future); - }, dart.dynamic); - }; - dart.fn(asyncstar_yieldstar_test.test); - asyncstar_yieldstar_test.main = function() { - async_helper$.asyncStart(); - dart.dsend(asyncstar_yieldstar_test.test(), 'then', dart.fn(_ => { - async_helper$.asyncEnd(); - })); - }; - dart.fn(asyncstar_yieldstar_test.main); - // Exports: - exports.asyncstar_yieldstar_test = asyncstar_yieldstar_test; -}); -dart_library.library('asyncstar_yield_test', null, /* Imports */[ - 'dart_sdk', - 'expect', - 'async_helper' -], function(exports, dart_sdk, expect, async_helper) { - 'use strict'; - const core = dart_sdk.core; - const async = dart_sdk.async; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const async_helper$ = async_helper.async_helper; - const asyncstar_yield_test = Object.create(null); - asyncstar_yield_test.foo1 = function() { - return dart.asyncStar(function*(stream) { - if (stream.add(1)) return; - yield; - let p = (yield async.Future.value(10)); - if (stream.add(dart.as(dart.dsend(p, '+', 10), core.int))) return; - yield; - }, core.int); - }; - dart.fn(asyncstar_yield_test.foo1, async.Stream$(core.int), []); - asyncstar_yield_test.foo2 = function() { - return dart.asyncStar(function*(stream) { - let i = 0; - while (true) { - yield async.Future.delayed(new core.Duration({milliseconds: 0}), dart.fn(() => { - })); - if (i > 10) return; - if (stream.add(i)) return; - yield; - i++; - } - }, core.int); - }; - dart.fn(asyncstar_yield_test.foo2, async.Stream$(core.int), []); - asyncstar_yield_test.foo3 = function(p) { - return dart.asyncStar(function*(stream, p) { - let i = 0; - let t = false; - if (stream.add(null)) return; - yield; - while (true) { - i++; - a: - for (let i = 0; i < dart.notNull(dart.as(p, core.num)); i++) { - if (!t) { - for (let j = 0; j < 3; j++) { - if (stream.add(-1)) return; - yield; - t = true; - break a; - } - } - yield 4; - if (stream.add(i)) return; - yield; - } - } - }, core.int, p); - }; - dart.fn(asyncstar_yield_test.foo3, async.Stream$(core.int), [dart.dynamic]); - dart.defineLazy(asyncstar_yield_test, { - get finalized() { - return async.Completer$(core.bool).new(); - }, - set finalized(_) {} - }); - asyncstar_yield_test.foo4 = function() { - return dart.asyncStar(function*(stream) { - let i = 0; - try { - while (true) { - if (stream.add(i)) return; - yield; - i++; - } - } finally { - asyncstar_yield_test.finalized.complete(true); - } - }, core.int); - }; - dart.fn(asyncstar_yield_test.foo4, async.Stream$(core.int), []); - asyncstar_yield_test.test = function() { - return dart.async(function*() { - expect$.Expect.listEquals(dart.list([1, 20], core.int), yield asyncstar_yield_test.foo1().toList()); - expect$.Expect.listEquals(dart.list([0, 1, 2, 3], core.int), yield asyncstar_yield_test.foo2().take(4).toList()); - expect$.Expect.listEquals(dart.list([null, -1, 0, 1, 2, 3, 0, 1, 2, 3], core.int), yield asyncstar_yield_test.foo3(4).take(10).toList()); - expect$.Expect.listEquals(dart.list([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], core.int), yield asyncstar_yield_test.foo4().take(10).toList()); - expect$.Expect.isTrue(yield asyncstar_yield_test.finalized.future); - }, dart.dynamic); - }; - dart.fn(asyncstar_yield_test.test); - asyncstar_yield_test.main = function() { - async_helper$.asyncStart(); - dart.dsend(asyncstar_yield_test.test(), 'then', dart.fn(_ => { - async_helper$.asyncEnd(); - })); - }; - dart.fn(asyncstar_yield_test.main); - // Exports: - exports.asyncstar_yield_test = asyncstar_yield_test; -}); dart_library.library('async_switch_test_none_multi', null, /* Imports */[ 'dart_sdk', 'expect', @@ -21976,6 +21554,428 @@ dart_library.library('async_throw_in_catch_test_none_multi', null, /* Imports */ // Exports: exports.async_throw_in_catch_test_none_multi = async_throw_in_catch_test_none_multi; }); +dart_library.library('asyncstar_concat_test', null, /* Imports */[ + 'dart_sdk', + 'expect', + 'async_helper' +], function(exports, dart_sdk, expect, async_helper) { + 'use strict'; + const core = dart_sdk.core; + const async = dart_sdk.async; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const async_helper$ = async_helper.async_helper; + const asyncstar_concat_test = Object.create(null); + asyncstar_concat_test.range = function(start, end) { + return dart.asyncStar(function*(stream, start, end) { + for (let i = dart.as(start, core.int); dart.notNull(i) < dart.notNull(dart.as(end, core.num)); i = dart.notNull(i) + 1) { + if (stream.add(i)) return; + yield; + } + }, dart.dynamic, start, end); + }; + dart.fn(asyncstar_concat_test.range); + asyncstar_concat_test.concat = function(a, b) { + return dart.asyncStar(function*(stream, a, b) { + if (stream.addStream(dart.as(a, async.Stream))) return; + yield; + if (stream.addStream(dart.as(b, async.Stream))) return; + yield; + }, dart.dynamic, a, b); + }; + dart.fn(asyncstar_concat_test.concat); + asyncstar_concat_test.test = function() { + return dart.async(function*() { + expect$.Expect.listEquals(dart.list([1, 2, 3, 11, 12, 13], core.int), dart.as(yield dart.dsend(asyncstar_concat_test.concat(asyncstar_concat_test.range(1, 4), asyncstar_concat_test.range(11, 14)), 'toList'), core.List)); + }, dart.dynamic); + }; + dart.fn(asyncstar_concat_test.test); + asyncstar_concat_test.main = function() { + async_helper$.asyncStart(); + dart.dsend(asyncstar_concat_test.test(), 'then', dart.fn(_ => { + async_helper$.asyncEnd(); + })); + }; + dart.fn(asyncstar_concat_test.main); + // Exports: + exports.asyncstar_concat_test = asyncstar_concat_test; +}); +dart_library.library('asyncstar_throw_in_catch_test', null, /* Imports */[ + 'dart_sdk', + 'expect', + 'async_helper' +], function(exports, dart_sdk, expect, async_helper) { + 'use strict'; + const core = dart_sdk.core; + const async = dart_sdk.async; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const async_helper$ = async_helper.async_helper; + const asyncstar_throw_in_catch_test = Object.create(null); + const _trace = Symbol('_trace'); + asyncstar_throw_in_catch_test.Tracer = class Tracer extends core.Object { + Tracer(expected, name) { + if (name === void 0) name = null; + this.expected = expected; + this.name = name; + this[_trace] = ""; + this.counter = 0; + } + trace(msg) { + if (this.name != null) { + } + this[_trace] = dart.notNull(this[_trace]) + dart.notNull(dart.as(msg, core.String)); + this.counter = dart.notNull(this.counter) + 1; + } + done() { + expect$.Expect.equals(this.expected, this[_trace]); + } + }; + dart.setSignature(asyncstar_throw_in_catch_test.Tracer, { + constructors: () => ({Tracer: [asyncstar_throw_in_catch_test.Tracer, [core.String], [core.String]]}), + methods: () => ({ + trace: [dart.void, [dart.dynamic]], + done: [dart.void, []] + }) + }); + asyncstar_throw_in_catch_test.foo1 = function(tracer) { + return dart.asyncStar(function*(stream, tracer) { + try { + tracer.trace("a"); + yield async.Future.value(3); + tracer.trace("b"); + dart.throw("Error"); + } catch (e) { + expect$.Expect.equals("Error", e); + tracer.trace("c"); + if (stream.add(1)) return; + yield; + tracer.trace("d"); + if (stream.add(2)) return; + yield; + tracer.trace("e"); + if (stream.add(3)) return; + yield; + tracer.trace("f"); + } + finally { + tracer.trace("f"); + } + tracer.trace("g"); + }, dart.dynamic, tracer); + }; + dart.fn(asyncstar_throw_in_catch_test.foo1, dart.dynamic, [asyncstar_throw_in_catch_test.Tracer]); + asyncstar_throw_in_catch_test.foo2 = function(tracer) { + return dart.asyncStar(function*(stream, tracer) { + try { + tracer.trace("a"); + dart.throw("Error"); + } catch (error) { + expect$.Expect.equals("Error", error); + tracer.trace("b"); + throw error; + } + finally { + tracer.trace("c"); + } + }, dart.dynamic, tracer); + }; + dart.fn(asyncstar_throw_in_catch_test.foo2, dart.dynamic, [asyncstar_throw_in_catch_test.Tracer]); + asyncstar_throw_in_catch_test.foo3 = function(tracer) { + return dart.asyncStar(function*(stream, tracer) { + try { + tracer.trace("a"); + dart.throw("Error"); + } catch (error) { + expect$.Expect.equals("Error", error); + tracer.trace("b"); + throw error; + } + finally { + tracer.trace("c"); + if (stream.add(1)) return; + yield; + } + }, dart.dynamic, tracer); + }; + dart.fn(asyncstar_throw_in_catch_test.foo3, dart.dynamic, [asyncstar_throw_in_catch_test.Tracer]); + asyncstar_throw_in_catch_test.foo4 = function(tracer) { + return dart.asyncStar(function*(stream, tracer) { + try { + tracer.trace("a"); + yield async.Future.value(3); + tracer.trace("b"); + dart.throw("Error"); + } catch (e) { + expect$.Expect.equals("Error", e); + tracer.trace("c"); + if (stream.add(1)) return; + yield; + tracer.trace("d"); + if (stream.add(2)) return; + yield; + tracer.trace("e"); + yield async.Future.error("Error2"); + } + finally { + tracer.trace("f"); + } + tracer.trace("g"); + }, dart.dynamic, tracer); + }; + dart.fn(asyncstar_throw_in_catch_test.foo4, dart.dynamic, [asyncstar_throw_in_catch_test.Tracer]); + asyncstar_throw_in_catch_test.runTest = function(test, expectedTrace, expectedError, shouldCancel) { + let tracer = new asyncstar_throw_in_catch_test.Tracer(dart.as(expectedTrace, core.String), dart.as(expectedTrace, core.String)); + let done = async.Completer.new(); + let subscription = null; + subscription = dart.dsend(dart.dcall(test, tracer), 'listen', dart.fn(event => dart.async(function*(event) { + tracer.trace("Y"); + if (dart.notNull(dart.as(shouldCancel, core.bool))) { + yield dart.dsend(subscription, 'cancel'); + tracer.trace("C"); + done.complete(null); + } + }, dart.dynamic, event), async.Future, [dart.dynamic]), {onError: dart.fn(error => { + expect$.Expect.equals(expectedError, error); + tracer.trace("X"); + }), onDone: dart.fn(() => { + tracer.done(); + done.complete(null); + })}); + return done.future.then(dart.fn(_ => tracer.done(), dart.void, [dart.dynamic])); + }; + dart.fn(asyncstar_throw_in_catch_test.runTest); + asyncstar_throw_in_catch_test.test = function() { + return dart.async(function*() { + yield asyncstar_throw_in_catch_test.runTest(asyncstar_throw_in_catch_test.foo1, "abcdYefC", null, true); + yield asyncstar_throw_in_catch_test.runTest(asyncstar_throw_in_catch_test.foo2, "abcX", "Error", false); + yield asyncstar_throw_in_catch_test.runTest(asyncstar_throw_in_catch_test.foo3, "abcYX", "Error", false); + yield asyncstar_throw_in_catch_test.runTest(asyncstar_throw_in_catch_test.foo4, "abcdYeYfX", "Error2", false); + }, dart.dynamic); + }; + dart.fn(asyncstar_throw_in_catch_test.test); + asyncstar_throw_in_catch_test.main = function() { + async_helper$.asyncTest(asyncstar_throw_in_catch_test.test); + }; + dart.fn(asyncstar_throw_in_catch_test.main, dart.void, []); + // Exports: + exports.asyncstar_throw_in_catch_test = asyncstar_throw_in_catch_test; +}); +dart_library.library('asyncstar_yield_test', null, /* Imports */[ + 'dart_sdk', + 'expect', + 'async_helper' +], function(exports, dart_sdk, expect, async_helper) { + 'use strict'; + const core = dart_sdk.core; + const async = dart_sdk.async; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const async_helper$ = async_helper.async_helper; + const asyncstar_yield_test = Object.create(null); + asyncstar_yield_test.foo1 = function() { + return dart.asyncStar(function*(stream) { + if (stream.add(1)) return; + yield; + let p = (yield async.Future.value(10)); + if (stream.add(dart.as(dart.dsend(p, '+', 10), core.int))) return; + yield; + }, core.int); + }; + dart.fn(asyncstar_yield_test.foo1, async.Stream$(core.int), []); + asyncstar_yield_test.foo2 = function() { + return dart.asyncStar(function*(stream) { + let i = 0; + while (true) { + yield async.Future.delayed(new core.Duration({milliseconds: 0}), dart.fn(() => { + })); + if (i > 10) return; + if (stream.add(i)) return; + yield; + i++; + } + }, core.int); + }; + dart.fn(asyncstar_yield_test.foo2, async.Stream$(core.int), []); + asyncstar_yield_test.foo3 = function(p) { + return dart.asyncStar(function*(stream, p) { + let i = 0; + let t = false; + if (stream.add(null)) return; + yield; + while (true) { + i++; + a: + for (let i = 0; i < dart.notNull(dart.as(p, core.num)); i++) { + if (!t) { + for (let j = 0; j < 3; j++) { + if (stream.add(-1)) return; + yield; + t = true; + break a; + } + } + yield 4; + if (stream.add(i)) return; + yield; + } + } + }, core.int, p); + }; + dart.fn(asyncstar_yield_test.foo3, async.Stream$(core.int), [dart.dynamic]); + dart.defineLazy(asyncstar_yield_test, { + get finalized() { + return async.Completer$(core.bool).new(); + }, + set finalized(_) {} + }); + asyncstar_yield_test.foo4 = function() { + return dart.asyncStar(function*(stream) { + let i = 0; + try { + while (true) { + if (stream.add(i)) return; + yield; + i++; + } + } finally { + asyncstar_yield_test.finalized.complete(true); + } + }, core.int); + }; + dart.fn(asyncstar_yield_test.foo4, async.Stream$(core.int), []); + asyncstar_yield_test.test = function() { + return dart.async(function*() { + expect$.Expect.listEquals(dart.list([1, 20], core.int), yield asyncstar_yield_test.foo1().toList()); + expect$.Expect.listEquals(dart.list([0, 1, 2, 3], core.int), yield asyncstar_yield_test.foo2().take(4).toList()); + expect$.Expect.listEquals(dart.list([null, -1, 0, 1, 2, 3, 0, 1, 2, 3], core.int), yield asyncstar_yield_test.foo3(4).take(10).toList()); + expect$.Expect.listEquals(dart.list([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], core.int), yield asyncstar_yield_test.foo4().take(10).toList()); + expect$.Expect.isTrue(yield asyncstar_yield_test.finalized.future); + }, dart.dynamic); + }; + dart.fn(asyncstar_yield_test.test); + asyncstar_yield_test.main = function() { + async_helper$.asyncStart(); + dart.dsend(asyncstar_yield_test.test(), 'then', dart.fn(_ => { + async_helper$.asyncEnd(); + })); + }; + dart.fn(asyncstar_yield_test.main); + // Exports: + exports.asyncstar_yield_test = asyncstar_yield_test; +}); +dart_library.library('asyncstar_yieldstar_test', null, /* Imports */[ + 'dart_sdk', + 'expect', + 'async_helper' +], function(exports, dart_sdk, expect, async_helper) { + 'use strict'; + const core = dart_sdk.core; + const async = dart_sdk.async; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const async_helper$ = async_helper.async_helper; + const asyncstar_yieldstar_test = Object.create(null); + asyncstar_yieldstar_test.subStream = function(p) { + return dart.asyncStar(function*(stream, p) { + if (stream.add(dart.as(p, core.int))) return; + yield; + if (stream.add(dart.as(dart.dsend(p, '+', 1), core.int))) return; + yield; + }, core.int, p); + }; + dart.fn(asyncstar_yieldstar_test.subStream, async.Stream$(core.int), [dart.dynamic]); + asyncstar_yieldstar_test.foo = function(finalized) { + return dart.asyncStar(function*(stream, finalized) { + let i = 0; + try { + while (true) { + if (stream.add("outer")) return; + yield; + if (stream.addStream(asyncstar_yieldstar_test.subStream(i))) return; + yield; + i++; + } + } finally { + expect$.Expect.isTrue(i < 10); + finalized.complete(true); + } + }, dart.dynamic, finalized); + }; + dart.fn(asyncstar_yieldstar_test.foo, async.Stream, [async.Completer$(core.bool)]); + asyncstar_yieldstar_test.foo2 = function(subStream) { + return dart.asyncStar(function*(stream, subStream) { + if (stream.addStream(subStream)) return; + yield; + }, dart.dynamic, subStream); + }; + dart.fn(asyncstar_yieldstar_test.foo2, dart.dynamic, [async.Stream]); + asyncstar_yieldstar_test.test = function() { + return dart.async(function*() { + expect$.Expect.listEquals(dart.list([0, 1], core.int), yield asyncstar_yieldstar_test.subStream(0).toList()); + let finalized = async.Completer$(core.bool).new(); + expect$.Expect.listEquals(dart.list(["outer", 0, 1, "outer", 1, 2, "outer", 2], core.Object), yield asyncstar_yieldstar_test.foo(finalized).take(8).toList()); + expect$.Expect.isTrue(yield finalized.future); + finalized = async.Completer$(core.bool).new(); + expect$.Expect.listEquals(dart.list(["outer", 0, 1, "outer", 1, 2, "outer"], core.Object), yield asyncstar_yieldstar_test.foo(finalized).take(7).toList()); + expect$.Expect.isTrue(yield finalized.future); + finalized = async.Completer$(core.bool).new(); + let pausedCompleter = async.Completer$(core.bool).new(); + let resumedCompleter = async.Completer$(core.bool).new(); + let canceledCompleter = async.Completer$(core.bool).new(); + let controller = null; + let i = 0; + function addNext() { + if (i >= 10) return; + controller.add(i); + i++; + if (!dart.notNull(controller.isPaused)) { + async.scheduleMicrotask(addNext); + } + } + dart.fn(addNext); + controller = async.StreamController.new({onListen: dart.fn(() => { + async.scheduleMicrotask(addNext); + }, dart.void, []), onPause: dart.fn(() => { + pausedCompleter.complete(true); + }, dart.void, []), onResume: dart.fn(() => { + resumedCompleter.complete(true); + async.scheduleMicrotask(addNext); + }, dart.void, []), onCancel: dart.fn(() => { + canceledCompleter.complete(true); + })}); + let subscription = null; + subscription = dart.as(dart.dsend(asyncstar_yieldstar_test.foo2(controller.stream), 'listen', dart.fn(event => { + if (dart.equals(event, 2)) { + subscription.pause(); + async.scheduleMicrotask(dart.fn(() => { + subscription.resume(); + }, dart.void, [])); + } + if (dart.equals(event, 5)) { + subscription.cancel(); + } + })), async.StreamSubscription); + expect$.Expect.isTrue(yield pausedCompleter.future); + expect$.Expect.isTrue(yield resumedCompleter.future); + expect$.Expect.isTrue(yield canceledCompleter.future); + }, dart.dynamic); + }; + dart.fn(asyncstar_yieldstar_test.test); + asyncstar_yieldstar_test.main = function() { + async_helper$.asyncStart(); + dart.dsend(asyncstar_yieldstar_test.test(), 'then', dart.fn(_ => { + async_helper$.asyncEnd(); + })); + }; + dart.fn(asyncstar_yieldstar_test.main); + // Exports: + exports.asyncstar_yieldstar_test = asyncstar_yieldstar_test; +}); dart_library.library('await_backwards_compatibility_test_none_multi', null, /* Imports */[ 'dart_sdk', 'expect' @@ -25425,43 +25425,6 @@ dart_library.library('built_in_identifier_test_none_multi', null, /* Imports */[ // Exports: exports.built_in_identifier_test_none_multi = built_in_identifier_test_none_multi; }); -dart_library.library('callable_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const callable_test_none_multi = Object.create(null); - callable_test_none_multi.X = class X extends core.Object { - call() { - return 42; - } - }; - dart.setSignature(callable_test_none_multi.X, { - methods: () => ({call: [dart.dynamic, []]}) - }); - callable_test_none_multi.Y = class Y extends core.Object { - call(x) { - return 87; - } - }; - dart.setSignature(callable_test_none_multi.Y, { - methods: () => ({call: [dart.dynamic, [core.int]]}) - }); - callable_test_none_multi.F = dart.typedef('F', () => dart.functionType(dart.dynamic, [core.int])); - callable_test_none_multi.G = dart.typedef('G', () => dart.functionType(dart.dynamic, [core.String])); - callable_test_none_multi.main = function() { - let x = new callable_test_none_multi.X(); - let f = x; - let y = new callable_test_none_multi.Y(); - let g = y; - let f0 = y; - }; - dart.fn(callable_test_none_multi.main); - // Exports: - exports.callable_test_none_multi = callable_test_none_multi; -}); dart_library.library('call_argument_inference_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -25598,6 +25561,36 @@ dart_library.library('call_function_apply_test', null, /* Imports */[ // Exports: exports.call_function_apply_test = call_function_apply_test; }); +dart_library.library('call_non_method_field_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const call_non_method_field_test_none_multi = Object.create(null); + call_non_method_field_test_none_multi.Fisk = class Fisk extends core.Object { + Fisk() { + this.i = null; + } + }; + call_non_method_field_test_none_multi.Hest = class Hest extends call_non_method_field_test_none_multi.Fisk { + Hest() { + super.Fisk(); + } + }; + call_non_method_field_test_none_multi.main = function() { + let x1 = new call_non_method_field_test_none_multi.Fisk(); + if (false) { + } + let x2 = new call_non_method_field_test_none_multi.Hest(); + if (false) { + } + }; + dart.fn(call_non_method_field_test_none_multi.main); + // Exports: + exports.call_non_method_field_test_none_multi = call_non_method_field_test_none_multi; +}); dart_library.library('call_nonexistent_constructor_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -25716,36 +25709,6 @@ dart_library.library('call_nonexistent_static_test_none_multi', null, /* Imports // Exports: exports.call_nonexistent_static_test_none_multi = call_nonexistent_static_test_none_multi; }); -dart_library.library('call_non_method_field_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const call_non_method_field_test_none_multi = Object.create(null); - call_non_method_field_test_none_multi.Fisk = class Fisk extends core.Object { - Fisk() { - this.i = null; - } - }; - call_non_method_field_test_none_multi.Hest = class Hest extends call_non_method_field_test_none_multi.Fisk { - Hest() { - super.Fisk(); - } - }; - call_non_method_field_test_none_multi.main = function() { - let x1 = new call_non_method_field_test_none_multi.Fisk(); - if (false) { - } - let x2 = new call_non_method_field_test_none_multi.Hest(); - if (false) { - } - }; - dart.fn(call_non_method_field_test_none_multi.main); - // Exports: - exports.call_non_method_field_test_none_multi = call_non_method_field_test_none_multi; -}); dart_library.library('call_operator_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -26111,6 +26074,43 @@ dart_library.library('call_with_no_such_method_test', null, /* Imports */[ // Exports: exports.call_with_no_such_method_test = call_with_no_such_method_test; }); +dart_library.library('callable_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const callable_test_none_multi = Object.create(null); + callable_test_none_multi.X = class X extends core.Object { + call() { + return 42; + } + }; + dart.setSignature(callable_test_none_multi.X, { + methods: () => ({call: [dart.dynamic, []]}) + }); + callable_test_none_multi.Y = class Y extends core.Object { + call(x) { + return 87; + } + }; + dart.setSignature(callable_test_none_multi.Y, { + methods: () => ({call: [dart.dynamic, [core.int]]}) + }); + callable_test_none_multi.F = dart.typedef('F', () => dart.functionType(dart.dynamic, [core.int])); + callable_test_none_multi.G = dart.typedef('G', () => dart.functionType(dart.dynamic, [core.String])); + callable_test_none_multi.main = function() { + let x = new callable_test_none_multi.X(); + let f = x; + let y = new callable_test_none_multi.Y(); + let g = y; + let f0 = y; + }; + dart.fn(callable_test_none_multi.main); + // Exports: + exports.callable_test_none_multi = callable_test_none_multi; +}); dart_library.library('canonical_const2_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -26194,6 +26194,49 @@ dart_library.library('canonical_const_test', null, /* Imports */[ // Exports: exports.canonical_const_test = canonical_const_test; }); +dart_library.library('cascade2_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const cascade2_test = Object.create(null); + cascade2_test.A = class A extends core.Object { + A() { + this.foo = null; + } + add(list) { + this.foo = list; + dart.dsend(list, 'add', 2.5); + return this; + } + call(arg) { + return arg; + } + }; + dart.setSignature(cascade2_test.A, { + methods: () => ({ + add: [dart.dynamic, [dart.dynamic]], + call: [dart.dynamic, [dart.dynamic]] + }) + }); + cascade2_test.main = function() { + let foo = [42, 0]; + let a = new cascade2_test.A(); + let bar = ((() => { + dart.dcall(a.add(foo), 'WHAT'); + return a; + })()); + dart.dsetindex(a.foo, 0, new core.Object()); + expect$.Expect.throws(dart.fn(() => dart.dsend(foo[dartx.get](0), '+', 2), dart.void, []), dart.fn(e => dart.is(e, core.NoSuchMethodError), core.bool, [dart.dynamic])); + }; + dart.fn(cascade2_test.main); + // Exports: + exports.cascade2_test = cascade2_test; +}); dart_library.library('cascade_2_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -26255,49 +26298,6 @@ dart_library.library('cascade_2_test', null, /* Imports */[ // Exports: exports.cascade_2_test = cascade_2_test; }); -dart_library.library('cascade2_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const cascade2_test = Object.create(null); - cascade2_test.A = class A extends core.Object { - A() { - this.foo = null; - } - add(list) { - this.foo = list; - dart.dsend(list, 'add', 2.5); - return this; - } - call(arg) { - return arg; - } - }; - dart.setSignature(cascade2_test.A, { - methods: () => ({ - add: [dart.dynamic, [dart.dynamic]], - call: [dart.dynamic, [dart.dynamic]] - }) - }); - cascade2_test.main = function() { - let foo = [42, 0]; - let a = new cascade2_test.A(); - let bar = ((() => { - dart.dcall(a.add(foo), 'WHAT'); - return a; - })()); - dart.dsetindex(a.foo, 0, new core.Object()); - expect$.Expect.throws(dart.fn(() => dart.dsend(foo[dartx.get](0), '+', 2), dart.void, []), dart.fn(e => dart.is(e, core.NoSuchMethodError), core.bool, [dart.dynamic])); - }; - dart.fn(cascade2_test.main); - // Exports: - exports.cascade2_test = cascade2_test; -}); dart_library.library('cascade_in_expression_function_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -26396,6 +26396,44 @@ dart_library.library('cascade_in_initializer_list_test', null, /* Imports */[ // Exports: exports.cascade_in_initializer_list_test = cascade_in_initializer_list_test; }); +dart_library.library('cascade_nested_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const cascade_nested_test = Object.create(null); + cascade_nested_test.Foo = class Foo extends core.Object { + Foo() { + this.x = null; + } + }; + cascade_nested_test.Bar = class Bar extends core.Object { + Bar() { + this.foo = null; + this.y = null; + } + }; + cascade_nested_test.main = function() { + let bar = new cascade_nested_test.Bar(); + bar.foo = (() => { + let _ = new cascade_nested_test.Foo(); + _.x = 42; + return _; + })(); + bar.y = 38; + expect$.Expect.isTrue(dart.is(bar, cascade_nested_test.Bar)); + expect$.Expect.isTrue(dart.is(bar.foo, cascade_nested_test.Foo)); + expect$.Expect.equals(bar.foo.x, 42); + expect$.Expect.equals(bar.y, 38); + }; + dart.fn(cascade_nested_test.main); + // Exports: + exports.cascade_nested_test = cascade_nested_test; +}); dart_library.library('cascade_precedence_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -28402,32 +28440,6 @@ dart_library.library('char_escape_test', null, /* Imports */[ // Exports: exports.char_escape_test = char_escape_test; }); -dart_library.library('checked_null_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const checked_null_test_none_multi = Object.create(null); - checked_null_test_none_multi.A = class A extends core.Object { - A() { - this.b = null; - this.a = null; - } - }; - dart.setSignature(checked_null_test_none_multi.A, { - constructors: () => ({A: [checked_null_test_none_multi.A, []]}) - }); - checked_null_test_none_multi.main = function() { - }; - dart.fn(checked_null_test_none_multi.main); - checked_null_test_none_multi.bar = function() { - }; - dart.fn(checked_null_test_none_multi.bar); - // Exports: - exports.checked_null_test_none_multi = checked_null_test_none_multi; -}); dart_library.library('check_member_static_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -28487,6 +28499,32 @@ dart_library.library('check_method_override_test_none_multi', null, /* Imports * // Exports: exports.check_method_override_test_none_multi = check_method_override_test_none_multi; }); +dart_library.library('checked_null_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const checked_null_test_none_multi = Object.create(null); + checked_null_test_none_multi.A = class A extends core.Object { + A() { + this.b = null; + this.a = null; + } + }; + dart.setSignature(checked_null_test_none_multi.A, { + constructors: () => ({A: [checked_null_test_none_multi.A, []]}) + }); + checked_null_test_none_multi.main = function() { + }; + dart.fn(checked_null_test_none_multi.main); + checked_null_test_none_multi.bar = function() { + }; + dart.fn(checked_null_test_none_multi.bar); + // Exports: + exports.checked_null_test_none_multi = checked_null_test_none_multi; +}); dart_library.library('class_codegen_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -28586,6 +28624,349 @@ dart_library.library('class_cycle_test_none_multi', null, /* Imports */[ // Exports: exports.class_cycle_test_none_multi = class_cycle_test_none_multi; }); +dart_library.library('class_keyword_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const class_keyword_test_none_multi = Object.create(null); + class_keyword_test_none_multi.foo = class foo extends core.Object {}; + class_keyword_test_none_multi.main = function() { + }; + dart.fn(class_keyword_test_none_multi.main, dart.void, []); + // Exports: + exports.class_keyword_test_none_multi = class_keyword_test_none_multi; +}); +dart_library.library('class_literal_test_none_multi', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const class_literal_test_none_multi = Object.create(null); + class_literal_test_none_multi.Class = class Class extends core.Object { + static fisk() { + return 42; + } + }; + dart.setSignature(class_literal_test_none_multi.Class, { + statics: () => ({fisk: [dart.dynamic, []]}), + names: ['fisk'] + }); + class_literal_test_none_multi.foo = function(x) { + }; + dart.fn(class_literal_test_none_multi.foo); + class_literal_test_none_multi.main = function() { + expect$.Expect.equals(42, class_literal_test_none_multi.Class.fisk()); + expect$.Expect.equals(null, class_literal_test_none_multi.foo(class_literal_test_none_multi.Class.fisk())); + class_literal_test_none_multi.Class; + let x = class_literal_test_none_multi.Class; + class_literal_test_none_multi.foo(class_literal_test_none_multi.Class); + expect$.Expect.isFalse(class_literal_test_none_multi.Class == null); + expect$.Expect.notEquals(class_literal_test_none_multi.Class, "Class"); + expect$.Expect.isTrue(typeof class_literal_test_none_multi.Class.toString() == 'string'); + let y = class_literal_test_none_multi.Class; + expect$.Expect.isTrue(typeof y.toString() == 'string'); + }; + dart.fn(class_literal_test_none_multi.main); + // Exports: + exports.class_literal_test_none_multi = class_literal_test_none_multi; +}); +dart_library.library('class_override_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const class_override_test_none_multi = Object.create(null); + class_override_test_none_multi.A = class A extends core.Object { + foo() {} + }; + dart.setSignature(class_override_test_none_multi.A, { + methods: () => ({foo: [dart.dynamic, []]}) + }); + class_override_test_none_multi.B = class B extends class_override_test_none_multi.A {}; + class_override_test_none_multi.main = function() { + let instance = new class_override_test_none_multi.B(); + try { + instance.foo(); + } finally { + } + core.print("Success"); + }; + dart.fn(class_override_test_none_multi.main); + // Exports: + exports.class_override_test_none_multi = class_override_test_none_multi; +}); +dart_library.library('class_syntax2_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const class_syntax2_test = Object.create(null); + class_syntax2_test.main = function() { + let c = new class_syntax2_test.Cool(true); + expect$.Expect.stringEquals('{}', `${c.thing}`); + c = new class_syntax2_test.Cool(false); + expect$.Expect.stringEquals('[]', `${c.thing}`); + c = new class_syntax2_test.Cool.alt(true); + expect$.Expect.stringEquals('{}', `${c.thing}`); + c = new class_syntax2_test.Cool.alt(false); + expect$.Expect.stringEquals('[]', `${c.thing}`); + }; + dart.fn(class_syntax2_test.main, dart.void, []); + class_syntax2_test.Cool = class Cool extends core.Object { + Cool(option) { + this.thing = dart.notNull(option) ? dart.map({}, core.String, core.String) : dart.list([], core.String); + } + alt(option) { + this.thing = !dart.notNull(option) ? dart.list([], core.String) : dart.map({}, core.String, core.String); + } + }; + dart.defineNamedConstructor(class_syntax2_test.Cool, 'alt'); + dart.setSignature(class_syntax2_test.Cool, { + constructors: () => ({ + Cool: [class_syntax2_test.Cool, [core.bool]], + alt: [class_syntax2_test.Cool, [core.bool]] + }) + }); + // Exports: + exports.class_syntax2_test = class_syntax2_test; +}); +dart_library.library('class_syntax_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const class_syntax_test_none_multi = Object.create(null); + class_syntax_test_none_multi.main = function() { + new class_syntax_test_none_multi.ClassSyntaxTest(); + }; + dart.fn(class_syntax_test_none_multi.main); + class_syntax_test_none_multi.ClassSyntaxTest = class ClassSyntaxTest extends core.Object {}; + // Exports: + exports.class_syntax_test_none_multi = class_syntax_test_none_multi; +}); +dart_library.library('class_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const class_test = Object.create(null); + class_test.ClassTest = class ClassTest extends core.Object { + ClassTest() { + } + static testMain() { + let test = new class_test.ClassTest(); + test.testSuperCalls(); + test.testVirtualCalls(); + test.testStaticCalls(); + test.testInheritedField(); + test.testMemberRefInClosure(); + test.testFactory(); + test.testNamedConstructors(); + test.testDefaultImplementation(); + test.testFunctionParameter(dart.fn(a => a, core.int, [core.int])); + } + testFunctionParameter(func) { + expect$.Expect.equals(1, func(1)); + } + testSuperCalls() { + let sub = new class_test.Sub(); + expect$.Expect.equals(43, sub.methodX()); + expect$.Expect.equals(84, sub.methodK()); + } + testVirtualCalls() { + let sub = new class_test.Sub(); + expect$.Expect.equals(41, sub.method2()); + expect$.Expect.equals(41, sub.method3()); + } + testStaticCalls() { + let sub = new class_test.Sub(); + expect$.Expect.equals(-42, class_test.Sub.method4()); + expect$.Expect.equals(-41, sub.method5()); + } + testInheritedField() { + let sub = new class_test.Sub(); + expect$.Expect.equals(42, sub.method6()); + } + testMemberRefInClosure() { + let sub = new class_test.Sub(); + expect$.Expect.equals(1, sub.closureRef()); + expect$.Expect.equals(2, sub.closureRef()); + sub = new class_test.Sub(); + expect$.Expect.equals(1, sub.closureRef()); + expect$.Expect.equals(2, sub.closureRef()); + } + testFactory() { + let sup = class_test.Sup.named(); + expect$.Expect.equals(43, sup.methodX()); + expect$.Expect.equals(84, sup.methodK()); + } + testNamedConstructors() { + let sup = new class_test.Sup.fromInt(4); + expect$.Expect.equals(4, sup.methodX()); + expect$.Expect.equals(0, sup.methodK()); + } + testDefaultImplementation() { + let x = class_test.Inter.new(4); + expect$.Expect.equals(4, x.methodX()); + expect$.Expect.equals(8, x.methodK()); + x = class_test.Inter.fromInt(4); + expect$.Expect.equals(4, x.methodX()); + expect$.Expect.equals(0, x.methodK()); + x = class_test.Inter.named(); + expect$.Expect.equals(43, x.methodX()); + expect$.Expect.equals(84, x.methodK()); + x = class_test.Inter.factory(); + expect$.Expect.equals(43, x.methodX()); + expect$.Expect.equals(84, x.methodK()); + } + }; + dart.setSignature(class_test.ClassTest, { + constructors: () => ({ClassTest: [class_test.ClassTest, []]}), + methods: () => ({ + testFunctionParameter: [dart.dynamic, [dart.functionType(core.int, [core.int])]], + testSuperCalls: [dart.dynamic, []], + testVirtualCalls: [dart.dynamic, []], + testStaticCalls: [dart.dynamic, []], + testInheritedField: [dart.dynamic, []], + testMemberRefInClosure: [dart.dynamic, []], + testFactory: [dart.dynamic, []], + testNamedConstructors: [dart.dynamic, []], + testDefaultImplementation: [dart.dynamic, []] + }), + statics: () => ({testMain: [dart.dynamic, []]}), + names: ['testMain'] + }); + class_test.Inter = class Inter extends core.Object { + static named() { + return class_test.Sup.named(); + } + static fromInt(x) { + return new class_test.Sup.fromInt(x); + } + static new(x) { + return new class_test.Sup(x); + } + static factory() { + return class_test.Sup.factory(); + } + }; + dart.setSignature(class_test.Inter, { + constructors: () => ({ + named: [class_test.Inter, []], + fromInt: [class_test.Inter, [core.int]], + new: [class_test.Inter, [core.int]], + factory: [class_test.Inter, []] + }) + }); + class_test.Sup = class Sup extends core.Object { + static named() { + return new class_test.Sub(); + } + static factory() { + return new class_test.Sub(); + } + fromInt(x) { + this.x_ = null; + this.k_ = null; + this.x_ = x; + this.k_ = 0; + } + methodX() { + return this.x_; + } + methodK() { + return this.k_; + } + Sup(x) { + this.x_ = x; + this.k_ = null; + this.k_ = dart.notNull(x) * 2; + } + method2() { + return dart.notNull(this.x_) - 1; + } + }; + dart.defineNamedConstructor(class_test.Sup, 'fromInt'); + class_test.Sup[dart.implements] = () => [class_test.Inter]; + dart.setSignature(class_test.Sup, { + constructors: () => ({ + named: [class_test.Sup, []], + factory: [class_test.Sup, []], + fromInt: [class_test.Sup, [core.int]], + Sup: [class_test.Sup, [core.int]] + }), + methods: () => ({ + methodX: [core.int, []], + methodK: [core.int, []], + method2: [core.int, []] + }) + }); + class_test.Sub = class Sub extends class_test.Sup { + methodX() { + return dart.notNull(super.methodX()) + 1; + } + method3() { + return this.method2(); + } + static method4() { + return -42; + } + method5() { + return dart.notNull(class_test.Sub.method4()) + 1; + } + method6() { + return dart.notNull(this.x_) + dart.notNull(this.y_); + } + closureRef() { + let f = dart.fn(() => { + this.y_ = dart.notNull(this.y_) + 1; + return this.y_; + }, core.int, []); + return f(); + } + Sub() { + this.y_ = null; + super.Sup(42); + this.y_ = 0; + } + }; + dart.setSignature(class_test.Sub, { + constructors: () => ({Sub: [class_test.Sub, []]}), + methods: () => ({ + method3: [core.int, []], + method5: [core.int, []], + method6: [core.int, []], + closureRef: [core.int, []] + }), + statics: () => ({method4: [core.int, []]}), + names: ['method4'] + }); + class_test.main = function() { + class_test.ClassTest.testMain(); + }; + dart.fn(class_test.main); + // Exports: + exports.class_test = class_test; +}); dart_library.library('classes_static_method_clash_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -31330,349 +31711,6 @@ dart_library.library('classes_static_method_clash_test', null, /* Imports */[ // Exports: exports.classes_static_method_clash_test = classes_static_method_clash_test; }); -dart_library.library('class_keyword_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const class_keyword_test_none_multi = Object.create(null); - class_keyword_test_none_multi.foo = class foo extends core.Object {}; - class_keyword_test_none_multi.main = function() { - }; - dart.fn(class_keyword_test_none_multi.main, dart.void, []); - // Exports: - exports.class_keyword_test_none_multi = class_keyword_test_none_multi; -}); -dart_library.library('class_literal_test_none_multi', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const class_literal_test_none_multi = Object.create(null); - class_literal_test_none_multi.Class = class Class extends core.Object { - static fisk() { - return 42; - } - }; - dart.setSignature(class_literal_test_none_multi.Class, { - statics: () => ({fisk: [dart.dynamic, []]}), - names: ['fisk'] - }); - class_literal_test_none_multi.foo = function(x) { - }; - dart.fn(class_literal_test_none_multi.foo); - class_literal_test_none_multi.main = function() { - expect$.Expect.equals(42, class_literal_test_none_multi.Class.fisk()); - expect$.Expect.equals(null, class_literal_test_none_multi.foo(class_literal_test_none_multi.Class.fisk())); - class_literal_test_none_multi.Class; - let x = class_literal_test_none_multi.Class; - class_literal_test_none_multi.foo(class_literal_test_none_multi.Class); - expect$.Expect.isFalse(class_literal_test_none_multi.Class == null); - expect$.Expect.notEquals(class_literal_test_none_multi.Class, "Class"); - expect$.Expect.isTrue(typeof class_literal_test_none_multi.Class.toString() == 'string'); - let y = class_literal_test_none_multi.Class; - expect$.Expect.isTrue(typeof y.toString() == 'string'); - }; - dart.fn(class_literal_test_none_multi.main); - // Exports: - exports.class_literal_test_none_multi = class_literal_test_none_multi; -}); -dart_library.library('class_override_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const class_override_test_none_multi = Object.create(null); - class_override_test_none_multi.A = class A extends core.Object { - foo() {} - }; - dart.setSignature(class_override_test_none_multi.A, { - methods: () => ({foo: [dart.dynamic, []]}) - }); - class_override_test_none_multi.B = class B extends class_override_test_none_multi.A {}; - class_override_test_none_multi.main = function() { - let instance = new class_override_test_none_multi.B(); - try { - instance.foo(); - } finally { - } - core.print("Success"); - }; - dart.fn(class_override_test_none_multi.main); - // Exports: - exports.class_override_test_none_multi = class_override_test_none_multi; -}); -dart_library.library('class_syntax2_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const class_syntax2_test = Object.create(null); - class_syntax2_test.main = function() { - let c = new class_syntax2_test.Cool(true); - expect$.Expect.stringEquals('{}', `${c.thing}`); - c = new class_syntax2_test.Cool(false); - expect$.Expect.stringEquals('[]', `${c.thing}`); - c = new class_syntax2_test.Cool.alt(true); - expect$.Expect.stringEquals('{}', `${c.thing}`); - c = new class_syntax2_test.Cool.alt(false); - expect$.Expect.stringEquals('[]', `${c.thing}`); - }; - dart.fn(class_syntax2_test.main, dart.void, []); - class_syntax2_test.Cool = class Cool extends core.Object { - Cool(option) { - this.thing = dart.notNull(option) ? dart.map({}, core.String, core.String) : dart.list([], core.String); - } - alt(option) { - this.thing = !dart.notNull(option) ? dart.list([], core.String) : dart.map({}, core.String, core.String); - } - }; - dart.defineNamedConstructor(class_syntax2_test.Cool, 'alt'); - dart.setSignature(class_syntax2_test.Cool, { - constructors: () => ({ - Cool: [class_syntax2_test.Cool, [core.bool]], - alt: [class_syntax2_test.Cool, [core.bool]] - }) - }); - // Exports: - exports.class_syntax2_test = class_syntax2_test; -}); -dart_library.library('class_syntax_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const class_syntax_test_none_multi = Object.create(null); - class_syntax_test_none_multi.main = function() { - new class_syntax_test_none_multi.ClassSyntaxTest(); - }; - dart.fn(class_syntax_test_none_multi.main); - class_syntax_test_none_multi.ClassSyntaxTest = class ClassSyntaxTest extends core.Object {}; - // Exports: - exports.class_syntax_test_none_multi = class_syntax_test_none_multi; -}); -dart_library.library('class_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const class_test = Object.create(null); - class_test.ClassTest = class ClassTest extends core.Object { - ClassTest() { - } - static testMain() { - let test = new class_test.ClassTest(); - test.testSuperCalls(); - test.testVirtualCalls(); - test.testStaticCalls(); - test.testInheritedField(); - test.testMemberRefInClosure(); - test.testFactory(); - test.testNamedConstructors(); - test.testDefaultImplementation(); - test.testFunctionParameter(dart.fn(a => a, core.int, [core.int])); - } - testFunctionParameter(func) { - expect$.Expect.equals(1, func(1)); - } - testSuperCalls() { - let sub = new class_test.Sub(); - expect$.Expect.equals(43, sub.methodX()); - expect$.Expect.equals(84, sub.methodK()); - } - testVirtualCalls() { - let sub = new class_test.Sub(); - expect$.Expect.equals(41, sub.method2()); - expect$.Expect.equals(41, sub.method3()); - } - testStaticCalls() { - let sub = new class_test.Sub(); - expect$.Expect.equals(-42, class_test.Sub.method4()); - expect$.Expect.equals(-41, sub.method5()); - } - testInheritedField() { - let sub = new class_test.Sub(); - expect$.Expect.equals(42, sub.method6()); - } - testMemberRefInClosure() { - let sub = new class_test.Sub(); - expect$.Expect.equals(1, sub.closureRef()); - expect$.Expect.equals(2, sub.closureRef()); - sub = new class_test.Sub(); - expect$.Expect.equals(1, sub.closureRef()); - expect$.Expect.equals(2, sub.closureRef()); - } - testFactory() { - let sup = class_test.Sup.named(); - expect$.Expect.equals(43, sup.methodX()); - expect$.Expect.equals(84, sup.methodK()); - } - testNamedConstructors() { - let sup = new class_test.Sup.fromInt(4); - expect$.Expect.equals(4, sup.methodX()); - expect$.Expect.equals(0, sup.methodK()); - } - testDefaultImplementation() { - let x = class_test.Inter.new(4); - expect$.Expect.equals(4, x.methodX()); - expect$.Expect.equals(8, x.methodK()); - x = class_test.Inter.fromInt(4); - expect$.Expect.equals(4, x.methodX()); - expect$.Expect.equals(0, x.methodK()); - x = class_test.Inter.named(); - expect$.Expect.equals(43, x.methodX()); - expect$.Expect.equals(84, x.methodK()); - x = class_test.Inter.factory(); - expect$.Expect.equals(43, x.methodX()); - expect$.Expect.equals(84, x.methodK()); - } - }; - dart.setSignature(class_test.ClassTest, { - constructors: () => ({ClassTest: [class_test.ClassTest, []]}), - methods: () => ({ - testFunctionParameter: [dart.dynamic, [dart.functionType(core.int, [core.int])]], - testSuperCalls: [dart.dynamic, []], - testVirtualCalls: [dart.dynamic, []], - testStaticCalls: [dart.dynamic, []], - testInheritedField: [dart.dynamic, []], - testMemberRefInClosure: [dart.dynamic, []], - testFactory: [dart.dynamic, []], - testNamedConstructors: [dart.dynamic, []], - testDefaultImplementation: [dart.dynamic, []] - }), - statics: () => ({testMain: [dart.dynamic, []]}), - names: ['testMain'] - }); - class_test.Inter = class Inter extends core.Object { - static named() { - return class_test.Sup.named(); - } - static fromInt(x) { - return new class_test.Sup.fromInt(x); - } - static new(x) { - return new class_test.Sup(x); - } - static factory() { - return class_test.Sup.factory(); - } - }; - dart.setSignature(class_test.Inter, { - constructors: () => ({ - named: [class_test.Inter, []], - fromInt: [class_test.Inter, [core.int]], - new: [class_test.Inter, [core.int]], - factory: [class_test.Inter, []] - }) - }); - class_test.Sup = class Sup extends core.Object { - static named() { - return new class_test.Sub(); - } - static factory() { - return new class_test.Sub(); - } - fromInt(x) { - this.x_ = null; - this.k_ = null; - this.x_ = x; - this.k_ = 0; - } - methodX() { - return this.x_; - } - methodK() { - return this.k_; - } - Sup(x) { - this.x_ = x; - this.k_ = null; - this.k_ = dart.notNull(x) * 2; - } - method2() { - return dart.notNull(this.x_) - 1; - } - }; - dart.defineNamedConstructor(class_test.Sup, 'fromInt'); - class_test.Sup[dart.implements] = () => [class_test.Inter]; - dart.setSignature(class_test.Sup, { - constructors: () => ({ - named: [class_test.Sup, []], - factory: [class_test.Sup, []], - fromInt: [class_test.Sup, [core.int]], - Sup: [class_test.Sup, [core.int]] - }), - methods: () => ({ - methodX: [core.int, []], - methodK: [core.int, []], - method2: [core.int, []] - }) - }); - class_test.Sub = class Sub extends class_test.Sup { - methodX() { - return dart.notNull(super.methodX()) + 1; - } - method3() { - return this.method2(); - } - static method4() { - return -42; - } - method5() { - return dart.notNull(class_test.Sub.method4()) + 1; - } - method6() { - return dart.notNull(this.x_) + dart.notNull(this.y_); - } - closureRef() { - let f = dart.fn(() => { - this.y_ = dart.notNull(this.y_) + 1; - return this.y_; - }, core.int, []); - return f(); - } - Sub() { - this.y_ = null; - super.Sup(42); - this.y_ = 0; - } - }; - dart.setSignature(class_test.Sub, { - constructors: () => ({Sub: [class_test.Sub, []]}), - methods: () => ({ - method3: [core.int, []], - method5: [core.int, []], - method6: [core.int, []], - closureRef: [core.int, []] - }), - statics: () => ({method4: [core.int, []]}), - names: ['method4'] - }); - class_test.main = function() { - class_test.ClassTest.testMain(); - }; - dart.fn(class_test.main); - // Exports: - exports.class_test = class_test; -}); dart_library.library('closure2_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -32631,155 +32669,6 @@ dart_library.library('closure_side_effect_test', null, /* Imports */[ // Exports: exports.closure_side_effect_test = closure_side_effect_test; }); -dart_library.library('closures_initializer2_test', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const closures_initializer2_test = Object.create(null); - closures_initializer2_test.A$ = dart.generic(T => { - class A extends core.Object { - A() { - this.t = dart.fn(() => T, core.Type, []); - } - } - dart.setSignature(A, { - constructors: () => ({A: [closures_initializer2_test.A$(T), []]}) - }); - return A; - }); - closures_initializer2_test.A = closures_initializer2_test.A$(); - closures_initializer2_test.expect = function(result, expected) { - if (!dart.equals(result, expected)) { - dart.throw(`Expected ${expected}, got ${result}`); - } - }; - dart.fn(closures_initializer2_test.expect); - closures_initializer2_test.main = function() { - for (let i = 0; i < dart.notNull(core.int.parse("1")); i++) { - closures_initializer2_test.expect(dart.is(dart.dcall(new (closures_initializer2_test.A$(core.int))().t), core.Type), true); - } - }; - dart.fn(closures_initializer2_test.main); - // Exports: - exports.closures_initializer2_test = closures_initializer2_test; -}); -dart_library.library('closures_initializer_test', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const closures_initializer_test = Object.create(null); - closures_initializer_test.A$ = dart.generic(T => { - class A extends core.Object { - A() { - this.t = dart.fn(() => core.List$(T).new(), core.List$(T), []); - } - } - dart.setSignature(A, { - constructors: () => ({A: [closures_initializer_test.A$(T), []]}) - }); - return A; - }); - closures_initializer_test.A = closures_initializer_test.A$(); - closures_initializer_test.B$ = dart.generic(T => { - class B extends core.Object { - B() { - this.t = dart.fn(() => T, core.Type, []); - } - } - dart.setSignature(B, { - constructors: () => ({B: [closures_initializer_test.B$(T), []]}) - }); - return B; - }); - closures_initializer_test.B = closures_initializer_test.B$(); - closures_initializer_test.expect = function(result, expected) { - if (!dart.equals(result, expected)) { - dart.throw(`Expected ${expected}, got ${result}`); - } - }; - dart.fn(closures_initializer_test.expect); - closures_initializer_test.main = function() { - closures_initializer_test.expect(dart.is(dart.dcall(new (closures_initializer_test.A$(core.int))().t), core.List$(core.int)), true); - closures_initializer_test.expect(dart.is(dart.dcall(new (closures_initializer_test.A$(core.String))().t), core.List$(core.int)), false); - closures_initializer_test.expect(dart.is(dart.dcall(new (closures_initializer_test.B$(core.int))().t), core.Type), true); - closures_initializer_test.expect(dart.dcall(new (closures_initializer_test.B$(core.int))().t), core.int); - }; - dart.fn(closures_initializer_test.main); - // Exports: - exports.closures_initializer_test = closures_initializer_test; -}); -dart_library.library('closures_with_complex_params_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const closures_with_complex_params_test = Object.create(null); - closures_with_complex_params_test.main = function() { - closures_with_complex_params_test.test1(); - closures_with_complex_params_test.test2(); - closures_with_complex_params_test.test3(); - }; - dart.fn(closures_with_complex_params_test.main); - closures_with_complex_params_test.Pair$ = dart.generic((A, B) => { - class Pair extends core.Object { - Pair(fst, snd) { - this.fst = fst; - this.snd = snd; - } - } - dart.setSignature(Pair, { - constructors: () => ({Pair: [closures_with_complex_params_test.Pair$(A, B), [A, B]]}) - }); - return Pair; - }); - closures_with_complex_params_test.Pair = closures_with_complex_params_test.Pair$(); - closures_with_complex_params_test.test1 = function() { - let cdar1 = dart.fn(pr => pr.snd.fst, core.int, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); - let cdar2 = dart.fn(pr => pr.snd.fst, core.int, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); - let e = new (closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int)))(100, new (closures_with_complex_params_test.Pair$(core.int, core.int))(200, 300)); - expect$.Expect.equals(200, cdar1(e)); - expect$.Expect.equals(200, cdar2(e)); - }; - dart.fn(closures_with_complex_params_test.test1); - closures_with_complex_params_test.test2 = function() { - let cdar1 = dart.fn(pr => { - if (pr === void 0) pr = null; - return pr.snd.fst; - }, core.int, [], [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); - let cdar2 = dart.fn(pr => { - if (pr === void 0) pr = null; - return pr.snd.fst; - }, core.int, [], [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); - let e = new (closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int)))(100, new (closures_with_complex_params_test.Pair$(core.int, core.int))(200, 300)); - expect$.Expect.equals(200, cdar1(e)); - expect$.Expect.equals(200, cdar2(e)); - }; - dart.fn(closures_with_complex_params_test.test2); - closures_with_complex_params_test.test3 = function() { - let f1 = dart.fn(pr => dart.notNull(pr.snd.fst) + 1, core.int, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); - let f2 = dart.fn(pr => dart.notNull(pr.snd.fst) + 2, core.int, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); - let ap1 = dart.fn((f, pr) => dart.dsend(f(pr), '*', 10), dart.dynamic, [dart.functionType(dart.dynamic, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]), closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); - let ap2 = dart.fn((f, pr) => dart.dsend(f(pr), '*', 100), dart.dynamic, [dart.functionType(dart.dynamic, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]), closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); - let e = new (closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int)))(100, new (closures_with_complex_params_test.Pair$(core.int, core.int))(200, 300)); - expect$.Expect.equals(2010, ap1(f1, e)); - expect$.Expect.equals(2020, ap1(f2, e)); - expect$.Expect.equals(20100, ap2(f1, e)); - expect$.Expect.equals(20200, ap2(f2, e)); - }; - dart.fn(closures_with_complex_params_test.test3); - // Exports: - exports.closures_with_complex_params_test = closures_with_complex_params_test; -}); dart_library.library('closure_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -32824,6 +32713,39 @@ dart_library.library('closure_test', null, /* Imports */[ // Exports: exports.closure_test = closure_test; }); +dart_library.library('closure_type_variable_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const closure_type_variable_test = Object.create(null); + closure_type_variable_test.A$ = dart.generic(T => { + class A extends core.Object { + foo() { + function bar() { + return T; + } + dart.fn(bar); + return bar(); + } + } + dart.setSignature(A, { + methods: () => ({foo: [dart.dynamic, []]}) + }); + return A; + }); + closure_type_variable_test.A = closure_type_variable_test.A$(); + closure_type_variable_test.main = function() { + expect$.Expect.equals(new (closure_type_variable_test.A$(core.int))().foo(), core.int); + }; + dart.fn(closure_type_variable_test.main); + // Exports: + exports.closure_type_variable_test = closure_type_variable_test; +}); dart_library.library('closure_type_variables_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -32872,39 +32794,6 @@ dart_library.library('closure_type_variables_test', null, /* Imports */[ // Exports: exports.closure_type_variables_test = closure_type_variables_test; }); -dart_library.library('closure_type_variable_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const closure_type_variable_test = Object.create(null); - closure_type_variable_test.A$ = dart.generic(T => { - class A extends core.Object { - foo() { - function bar() { - return T; - } - dart.fn(bar); - return bar(); - } - } - dart.setSignature(A, { - methods: () => ({foo: [dart.dynamic, []]}) - }); - return A; - }); - closure_type_variable_test.A = closure_type_variable_test.A$(); - closure_type_variable_test.main = function() { - expect$.Expect.equals(new (closure_type_variable_test.A$(core.int))().foo(), core.int); - }; - dart.fn(closure_type_variable_test.main); - // Exports: - exports.closure_type_variable_test = closure_type_variable_test; -}); dart_library.library('closure_variable_shadow_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -32971,6 +32860,155 @@ dart_library.library('closure_with_super_send_test', null, /* Imports */[ // Exports: exports.closure_with_super_send_test = closure_with_super_send_test; }); +dart_library.library('closures_initializer2_test', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const closures_initializer2_test = Object.create(null); + closures_initializer2_test.A$ = dart.generic(T => { + class A extends core.Object { + A() { + this.t = dart.fn(() => T, core.Type, []); + } + } + dart.setSignature(A, { + constructors: () => ({A: [closures_initializer2_test.A$(T), []]}) + }); + return A; + }); + closures_initializer2_test.A = closures_initializer2_test.A$(); + closures_initializer2_test.expect = function(result, expected) { + if (!dart.equals(result, expected)) { + dart.throw(`Expected ${expected}, got ${result}`); + } + }; + dart.fn(closures_initializer2_test.expect); + closures_initializer2_test.main = function() { + for (let i = 0; i < dart.notNull(core.int.parse("1")); i++) { + closures_initializer2_test.expect(dart.is(dart.dcall(new (closures_initializer2_test.A$(core.int))().t), core.Type), true); + } + }; + dart.fn(closures_initializer2_test.main); + // Exports: + exports.closures_initializer2_test = closures_initializer2_test; +}); +dart_library.library('closures_initializer_test', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const closures_initializer_test = Object.create(null); + closures_initializer_test.A$ = dart.generic(T => { + class A extends core.Object { + A() { + this.t = dart.fn(() => core.List$(T).new(), core.List$(T), []); + } + } + dart.setSignature(A, { + constructors: () => ({A: [closures_initializer_test.A$(T), []]}) + }); + return A; + }); + closures_initializer_test.A = closures_initializer_test.A$(); + closures_initializer_test.B$ = dart.generic(T => { + class B extends core.Object { + B() { + this.t = dart.fn(() => T, core.Type, []); + } + } + dart.setSignature(B, { + constructors: () => ({B: [closures_initializer_test.B$(T), []]}) + }); + return B; + }); + closures_initializer_test.B = closures_initializer_test.B$(); + closures_initializer_test.expect = function(result, expected) { + if (!dart.equals(result, expected)) { + dart.throw(`Expected ${expected}, got ${result}`); + } + }; + dart.fn(closures_initializer_test.expect); + closures_initializer_test.main = function() { + closures_initializer_test.expect(dart.is(dart.dcall(new (closures_initializer_test.A$(core.int))().t), core.List$(core.int)), true); + closures_initializer_test.expect(dart.is(dart.dcall(new (closures_initializer_test.A$(core.String))().t), core.List$(core.int)), false); + closures_initializer_test.expect(dart.is(dart.dcall(new (closures_initializer_test.B$(core.int))().t), core.Type), true); + closures_initializer_test.expect(dart.dcall(new (closures_initializer_test.B$(core.int))().t), core.int); + }; + dart.fn(closures_initializer_test.main); + // Exports: + exports.closures_initializer_test = closures_initializer_test; +}); +dart_library.library('closures_with_complex_params_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const closures_with_complex_params_test = Object.create(null); + closures_with_complex_params_test.main = function() { + closures_with_complex_params_test.test1(); + closures_with_complex_params_test.test2(); + closures_with_complex_params_test.test3(); + }; + dart.fn(closures_with_complex_params_test.main); + closures_with_complex_params_test.Pair$ = dart.generic((A, B) => { + class Pair extends core.Object { + Pair(fst, snd) { + this.fst = fst; + this.snd = snd; + } + } + dart.setSignature(Pair, { + constructors: () => ({Pair: [closures_with_complex_params_test.Pair$(A, B), [A, B]]}) + }); + return Pair; + }); + closures_with_complex_params_test.Pair = closures_with_complex_params_test.Pair$(); + closures_with_complex_params_test.test1 = function() { + let cdar1 = dart.fn(pr => pr.snd.fst, core.int, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); + let cdar2 = dart.fn(pr => pr.snd.fst, core.int, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); + let e = new (closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int)))(100, new (closures_with_complex_params_test.Pair$(core.int, core.int))(200, 300)); + expect$.Expect.equals(200, cdar1(e)); + expect$.Expect.equals(200, cdar2(e)); + }; + dart.fn(closures_with_complex_params_test.test1); + closures_with_complex_params_test.test2 = function() { + let cdar1 = dart.fn(pr => { + if (pr === void 0) pr = null; + return pr.snd.fst; + }, core.int, [], [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); + let cdar2 = dart.fn(pr => { + if (pr === void 0) pr = null; + return pr.snd.fst; + }, core.int, [], [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); + let e = new (closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int)))(100, new (closures_with_complex_params_test.Pair$(core.int, core.int))(200, 300)); + expect$.Expect.equals(200, cdar1(e)); + expect$.Expect.equals(200, cdar2(e)); + }; + dart.fn(closures_with_complex_params_test.test2); + closures_with_complex_params_test.test3 = function() { + let f1 = dart.fn(pr => dart.notNull(pr.snd.fst) + 1, core.int, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); + let f2 = dart.fn(pr => dart.notNull(pr.snd.fst) + 2, core.int, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); + let ap1 = dart.fn((f, pr) => dart.dsend(f(pr), '*', 10), dart.dynamic, [dart.functionType(dart.dynamic, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]), closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); + let ap2 = dart.fn((f, pr) => dart.dsend(f(pr), '*', 100), dart.dynamic, [dart.functionType(dart.dynamic, [closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]), closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int))]); + let e = new (closures_with_complex_params_test.Pair$(core.int, closures_with_complex_params_test.Pair$(core.int, core.int)))(100, new (closures_with_complex_params_test.Pair$(core.int, core.int))(200, 300)); + expect$.Expect.equals(2010, ap1(f1, e)); + expect$.Expect.equals(2020, ap1(f2, e)); + expect$.Expect.equals(20100, ap2(f1, e)); + expect$.Expect.equals(20200, ap2(f2, e)); + }; + dart.fn(closures_with_complex_params_test.test3); + // Exports: + exports.closures_with_complex_params_test = closures_with_complex_params_test; +}); dart_library.library('code_after_try_is_executed_test_01_multi', null, /* Imports */[ 'dart_sdk', 'expect' @@ -33834,43 +33872,6 @@ dart_library.library('compile_time_constant9_test', null, /* Imports */[ // Exports: exports.compile_time_constant9_test = compile_time_constant9_test; }); -dart_library.library('compile_time_constant_arguments_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const compile_time_constant_arguments_test_none_multi = Object.create(null); - compile_time_constant_arguments_test_none_multi.A = class A extends core.Object { - A(a) { - } - named(opts) { - let a = opts && 'a' in opts ? opts.a : 42; - } - optional(a) { - if (a === void 0) a = null; - } - }; - dart.defineNamedConstructor(compile_time_constant_arguments_test_none_multi.A, 'named'); - dart.defineNamedConstructor(compile_time_constant_arguments_test_none_multi.A, 'optional'); - dart.setSignature(compile_time_constant_arguments_test_none_multi.A, { - constructors: () => ({ - A: [compile_time_constant_arguments_test_none_multi.A, [dart.dynamic]], - named: [compile_time_constant_arguments_test_none_multi.A, [], {a: dart.dynamic}], - optional: [compile_time_constant_arguments_test_none_multi.A, [], [dart.dynamic]] - }) - }); - compile_time_constant_arguments_test_none_multi.main = function() { - dart.const(new compile_time_constant_arguments_test_none_multi.A(1)); - dart.const(new compile_time_constant_arguments_test_none_multi.A.named()); - dart.const(new compile_time_constant_arguments_test_none_multi.A.optional()); - dart.const(new compile_time_constant_arguments_test_none_multi.A.optional(42)); - }; - dart.fn(compile_time_constant_arguments_test_none_multi.main); - // Exports: - exports.compile_time_constant_arguments_test_none_multi = compile_time_constant_arguments_test_none_multi; -}); dart_library.library('compile_time_constant_a_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -33996,6 +33997,43 @@ dart_library.library('compile_time_constant_a_test', null, /* Imports */[ // Exports: exports.compile_time_constant_a_test = compile_time_constant_a_test; }); +dart_library.library('compile_time_constant_arguments_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const compile_time_constant_arguments_test_none_multi = Object.create(null); + compile_time_constant_arguments_test_none_multi.A = class A extends core.Object { + A(a) { + } + named(opts) { + let a = opts && 'a' in opts ? opts.a : 42; + } + optional(a) { + if (a === void 0) a = null; + } + }; + dart.defineNamedConstructor(compile_time_constant_arguments_test_none_multi.A, 'named'); + dart.defineNamedConstructor(compile_time_constant_arguments_test_none_multi.A, 'optional'); + dart.setSignature(compile_time_constant_arguments_test_none_multi.A, { + constructors: () => ({ + A: [compile_time_constant_arguments_test_none_multi.A, [dart.dynamic]], + named: [compile_time_constant_arguments_test_none_multi.A, [], {a: dart.dynamic}], + optional: [compile_time_constant_arguments_test_none_multi.A, [], [dart.dynamic]] + }) + }); + compile_time_constant_arguments_test_none_multi.main = function() { + dart.const(new compile_time_constant_arguments_test_none_multi.A(1)); + dart.const(new compile_time_constant_arguments_test_none_multi.A.named()); + dart.const(new compile_time_constant_arguments_test_none_multi.A.optional()); + dart.const(new compile_time_constant_arguments_test_none_multi.A.optional(42)); + }; + dart.fn(compile_time_constant_arguments_test_none_multi.main); + // Exports: + exports.compile_time_constant_arguments_test_none_multi = compile_time_constant_arguments_test_none_multi; +}); dart_library.library('compile_time_constant_b_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -34078,6 +34116,58 @@ dart_library.library('compile_time_constant_b_test', null, /* Imports */[ // Exports: exports.compile_time_constant_b_test = compile_time_constant_b_test; }); +dart_library.library('compile_time_constant_c_test_01_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const compile_time_constant_c_test_01_multi = Object.create(null); + compile_time_constant_c_test_01_multi.m0 = dart.const(dart.map([499, 400 + 99])); + compile_time_constant_c_test_01_multi.m1 = dart.const(dart.map(["foo" + "bar", 42])); + compile_time_constant_c_test_01_multi.m2 = dart.const(dart.map()); + compile_time_constant_c_test_01_multi.m3 = dart.const(dart.map()); + compile_time_constant_c_test_01_multi.use = function(x) { + return x; + }; + dart.fn(compile_time_constant_c_test_01_multi.use); + compile_time_constant_c_test_01_multi.main = function() { + compile_time_constant_c_test_01_multi.use(compile_time_constant_c_test_01_multi.m0); + compile_time_constant_c_test_01_multi.use(compile_time_constant_c_test_01_multi.m1); + compile_time_constant_c_test_01_multi.use(compile_time_constant_c_test_01_multi.m2); + compile_time_constant_c_test_01_multi.use(compile_time_constant_c_test_01_multi.m3); + }; + dart.fn(compile_time_constant_c_test_01_multi.main); + // Exports: + exports.compile_time_constant_c_test_01_multi = compile_time_constant_c_test_01_multi; +}); +dart_library.library('compile_time_constant_c_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const compile_time_constant_c_test_none_multi = Object.create(null); + compile_time_constant_c_test_none_multi.m0 = dart.const(dart.map([499, 400 + 99])); + compile_time_constant_c_test_none_multi.m1 = dart.const(dart.map()); + compile_time_constant_c_test_none_multi.m2 = dart.const(dart.map()); + compile_time_constant_c_test_none_multi.m3 = dart.const(dart.map()); + compile_time_constant_c_test_none_multi.use = function(x) { + return x; + }; + dart.fn(compile_time_constant_c_test_none_multi.use); + compile_time_constant_c_test_none_multi.main = function() { + compile_time_constant_c_test_none_multi.use(compile_time_constant_c_test_none_multi.m0); + compile_time_constant_c_test_none_multi.use(compile_time_constant_c_test_none_multi.m1); + compile_time_constant_c_test_none_multi.use(compile_time_constant_c_test_none_multi.m2); + compile_time_constant_c_test_none_multi.use(compile_time_constant_c_test_none_multi.m3); + }; + dart.fn(compile_time_constant_c_test_none_multi.main); + // Exports: + exports.compile_time_constant_c_test_none_multi = compile_time_constant_c_test_none_multi; +}); dart_library.library('compile_time_constant_checked2_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -34531,58 +34621,6 @@ dart_library.library('compile_time_constant_checked_test_none_multi', null, /* I // Exports: exports.compile_time_constant_checked_test_none_multi = compile_time_constant_checked_test_none_multi; }); -dart_library.library('compile_time_constant_c_test_01_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const compile_time_constant_c_test_01_multi = Object.create(null); - compile_time_constant_c_test_01_multi.m0 = dart.const(dart.map([499, 400 + 99])); - compile_time_constant_c_test_01_multi.m1 = dart.const(dart.map(["foo" + "bar", 42])); - compile_time_constant_c_test_01_multi.m2 = dart.const(dart.map()); - compile_time_constant_c_test_01_multi.m3 = dart.const(dart.map()); - compile_time_constant_c_test_01_multi.use = function(x) { - return x; - }; - dart.fn(compile_time_constant_c_test_01_multi.use); - compile_time_constant_c_test_01_multi.main = function() { - compile_time_constant_c_test_01_multi.use(compile_time_constant_c_test_01_multi.m0); - compile_time_constant_c_test_01_multi.use(compile_time_constant_c_test_01_multi.m1); - compile_time_constant_c_test_01_multi.use(compile_time_constant_c_test_01_multi.m2); - compile_time_constant_c_test_01_multi.use(compile_time_constant_c_test_01_multi.m3); - }; - dart.fn(compile_time_constant_c_test_01_multi.main); - // Exports: - exports.compile_time_constant_c_test_01_multi = compile_time_constant_c_test_01_multi; -}); -dart_library.library('compile_time_constant_c_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const compile_time_constant_c_test_none_multi = Object.create(null); - compile_time_constant_c_test_none_multi.m0 = dart.const(dart.map([499, 400 + 99])); - compile_time_constant_c_test_none_multi.m1 = dart.const(dart.map()); - compile_time_constant_c_test_none_multi.m2 = dart.const(dart.map()); - compile_time_constant_c_test_none_multi.m3 = dart.const(dart.map()); - compile_time_constant_c_test_none_multi.use = function(x) { - return x; - }; - dart.fn(compile_time_constant_c_test_none_multi.use); - compile_time_constant_c_test_none_multi.main = function() { - compile_time_constant_c_test_none_multi.use(compile_time_constant_c_test_none_multi.m0); - compile_time_constant_c_test_none_multi.use(compile_time_constant_c_test_none_multi.m1); - compile_time_constant_c_test_none_multi.use(compile_time_constant_c_test_none_multi.m2); - compile_time_constant_c_test_none_multi.use(compile_time_constant_c_test_none_multi.m3); - }; - dart.fn(compile_time_constant_c_test_none_multi.main); - // Exports: - exports.compile_time_constant_c_test_none_multi = compile_time_constant_c_test_none_multi; -}); dart_library.library('compile_time_constant_d_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -35454,7 +35492,7 @@ dart_library.library('cond_expr_test', null, /* Imports */[ // Exports: exports.cond_expr_test = cond_expr_test; }); -dart_library.library('conditional_method_invocation_test_01_multi', null, /* Imports */[ +dart_library.library('condition_bailout_test', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -35463,102 +35501,59 @@ dart_library.library('conditional_method_invocation_test_01_multi', null, /* Imp const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const conditional_method_invocation_test_01_multi = Object.create(null); - const conditional_access_helper = Object.create(null); - conditional_method_invocation_test_01_multi.bad = function() { - expect$.Expect.fail('Should not be executed'); - }; - dart.fn(conditional_method_invocation_test_01_multi.bad); - conditional_method_invocation_test_01_multi.noMethod = function(e) { - return dart.is(e, core.NoSuchMethodError); - }; - dart.fn(conditional_method_invocation_test_01_multi.noMethod); - conditional_method_invocation_test_01_multi.B = class B extends core.Object {}; - conditional_method_invocation_test_01_multi.C = class C extends conditional_method_invocation_test_01_multi.B { - f(callback) { - return callback(); - } - g(callback) { - return callback(); - } - static staticF(callback) { - return callback(); - } - static staticG(callback) { - return callback(); + const condition_bailout_test = Object.create(null); + condition_bailout_test.A = class A extends core.Object { + ['unary-']() { + return this; } - }; - dart.setSignature(conditional_method_invocation_test_01_multi.C, { - methods: () => ({ - f: [dart.dynamic, [dart.functionType(dart.dynamic, [])]], - g: [core.int, [dart.functionType(core.int, [])]] - }), - statics: () => ({ - staticF: [dart.dynamic, [dart.functionType(dart.dynamic, [])]], - staticG: [core.int, [dart.functionType(core.int, [])]] - }), - names: ['staticF', 'staticG'] - }); - conditional_method_invocation_test_01_multi.nullC = function() { - return null; - }; - dart.fn(conditional_method_invocation_test_01_multi.nullC, conditional_method_invocation_test_01_multi.C, []); - conditional_method_invocation_test_01_multi.main = function() { - dart.nullSafe(conditional_method_invocation_test_01_multi.nullC(), _ => _.f(null)); - expect$.Expect.equals(null, dart.nullSafe(conditional_method_invocation_test_01_multi.nullC(), _ => _.f(dart.as(conditional_method_invocation_test_01_multi.bad(), dart.functionType(dart.dynamic, []))))); - }; - dart.fn(conditional_method_invocation_test_01_multi.main); - conditional_access_helper.topLevelVar = null; - conditional_access_helper.topLevelFunction = function() { - }; - dart.fn(conditional_access_helper.topLevelFunction, dart.void, []); - conditional_access_helper.C = class C extends core.Object { - static staticF(callback) { - return callback(); + foo(x) { + dart.dsend(condition_bailout_test.a, 'unary-'); + if (dart.notNull(dart.as(x, core.bool))) return true; + return false; } - static staticG(callback) { - return callback(); + loop1(x) { + dart.dsend(condition_bailout_test.a, 'unary-'); + while (dart.notNull(dart.as(x, core.bool))) + return true; + return false; } - }; - dart.setSignature(conditional_access_helper.C, { - statics: () => ({ - staticF: [dart.dynamic, [dart.functionType(dart.dynamic, [])]], - staticG: [core.int, [dart.functionType(core.int, [])]] - }), - names: ['staticF', 'staticG'] - }); - conditional_access_helper.C.staticInt = null; - conditional_access_helper.nullC = function() { - return null; - }; - dart.fn(conditional_access_helper.nullC, conditional_access_helper.C, []); - conditional_access_helper.D = class D extends core.Object {}; - conditional_access_helper.D.staticE = null; - conditional_access_helper.E = class E extends core.Object { - ['+'](i) { - return new conditional_access_helper.I(); + loop2(x) { + dart.dsend(condition_bailout_test.a, 'unary-'); + for (; dart.notNull(dart.as(x, core.bool));) + return true; + return false; } - ['-'](i) { - return new conditional_access_helper.I(); + loop3(x) { + dart.dsend(condition_bailout_test.a, 'unary-'); + let i = 0; + do { + if (i++ == 1) return false; + } while (!dart.notNull(dart.as(x, core.bool))); + return true; } }; - dart.setSignature(conditional_access_helper.E, { + dart.setSignature(condition_bailout_test.A, { methods: () => ({ - '+': [conditional_access_helper.G, [core.int]], - '-': [conditional_access_helper.G, [core.int]] + 'unary-': [dart.dynamic, []], + foo: [dart.dynamic, [dart.dynamic]], + loop1: [dart.dynamic, [dart.dynamic]], + loop2: [dart.dynamic, [dart.dynamic]], + loop3: [dart.dynamic, [dart.dynamic]] }) }); - conditional_access_helper.F = class F extends core.Object {}; - conditional_access_helper.G = class G extends conditional_access_helper.E {}; - conditional_access_helper.G[dart.implements] = () => [conditional_access_helper.F]; - conditional_access_helper.H = class H extends core.Object {}; - conditional_access_helper.I = class I extends conditional_access_helper.G {}; - conditional_access_helper.I[dart.implements] = () => [conditional_access_helper.H]; + condition_bailout_test.a = null; + condition_bailout_test.main = function() { + condition_bailout_test.a = new condition_bailout_test.A(); + expect$.Expect.isTrue(dart.dsend(condition_bailout_test.a, 'foo', true)); + expect$.Expect.isTrue(dart.dsend(condition_bailout_test.a, 'loop1', true)); + expect$.Expect.isTrue(dart.dsend(condition_bailout_test.a, 'loop2', true)); + expect$.Expect.isTrue(dart.dsend(condition_bailout_test.a, 'loop3', true)); + }; + dart.fn(condition_bailout_test.main); // Exports: - exports.conditional_method_invocation_test_01_multi = conditional_method_invocation_test_01_multi; - exports.conditional_access_helper = conditional_access_helper; + exports.condition_bailout_test = condition_bailout_test; }); -dart_library.library('conditional_method_invocation_test_02_multi', null, /* Imports */[ +dart_library.library('conditional_method_invocation_test_01_multi', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -35567,18 +35562,18 @@ dart_library.library('conditional_method_invocation_test_02_multi', null, /* Imp const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const conditional_method_invocation_test_02_multi = Object.create(null); + const conditional_method_invocation_test_01_multi = Object.create(null); const conditional_access_helper = Object.create(null); - conditional_method_invocation_test_02_multi.bad = function() { + conditional_method_invocation_test_01_multi.bad = function() { expect$.Expect.fail('Should not be executed'); }; - dart.fn(conditional_method_invocation_test_02_multi.bad); - conditional_method_invocation_test_02_multi.noMethod = function(e) { + dart.fn(conditional_method_invocation_test_01_multi.bad); + conditional_method_invocation_test_01_multi.noMethod = function(e) { return dart.is(e, core.NoSuchMethodError); }; - dart.fn(conditional_method_invocation_test_02_multi.noMethod); - conditional_method_invocation_test_02_multi.B = class B extends core.Object {}; - conditional_method_invocation_test_02_multi.C = class C extends conditional_method_invocation_test_02_multi.B { + dart.fn(conditional_method_invocation_test_01_multi.noMethod); + conditional_method_invocation_test_01_multi.B = class B extends core.Object {}; + conditional_method_invocation_test_01_multi.C = class C extends conditional_method_invocation_test_01_multi.B { f(callback) { return callback(); } @@ -35592,7 +35587,7 @@ dart_library.library('conditional_method_invocation_test_02_multi', null, /* Imp return callback(); } }; - dart.setSignature(conditional_method_invocation_test_02_multi.C, { + dart.setSignature(conditional_method_invocation_test_01_multi.C, { methods: () => ({ f: [dart.dynamic, [dart.functionType(dart.dynamic, [])]], g: [core.int, [dart.functionType(core.int, [])]] @@ -35603,15 +35598,119 @@ dart_library.library('conditional_method_invocation_test_02_multi', null, /* Imp }), names: ['staticF', 'staticG'] }); - conditional_method_invocation_test_02_multi.nullC = function() { + conditional_method_invocation_test_01_multi.nullC = function() { return null; }; - dart.fn(conditional_method_invocation_test_02_multi.nullC, conditional_method_invocation_test_02_multi.C, []); - conditional_method_invocation_test_02_multi.main = function() { - dart.nullSafe(conditional_method_invocation_test_02_multi.nullC(), _ => _.f(null)); - expect$.Expect.equals(1, new conditional_method_invocation_test_02_multi.C().f(dart.fn(() => 1, core.int, []))); + dart.fn(conditional_method_invocation_test_01_multi.nullC, conditional_method_invocation_test_01_multi.C, []); + conditional_method_invocation_test_01_multi.main = function() { + dart.nullSafe(conditional_method_invocation_test_01_multi.nullC(), _ => _.f(null)); + expect$.Expect.equals(null, dart.nullSafe(conditional_method_invocation_test_01_multi.nullC(), _ => _.f(dart.as(conditional_method_invocation_test_01_multi.bad(), dart.functionType(dart.dynamic, []))))); }; - dart.fn(conditional_method_invocation_test_02_multi.main); + dart.fn(conditional_method_invocation_test_01_multi.main); + conditional_access_helper.topLevelVar = null; + conditional_access_helper.topLevelFunction = function() { + }; + dart.fn(conditional_access_helper.topLevelFunction, dart.void, []); + conditional_access_helper.C = class C extends core.Object { + static staticF(callback) { + return callback(); + } + static staticG(callback) { + return callback(); + } + }; + dart.setSignature(conditional_access_helper.C, { + statics: () => ({ + staticF: [dart.dynamic, [dart.functionType(dart.dynamic, [])]], + staticG: [core.int, [dart.functionType(core.int, [])]] + }), + names: ['staticF', 'staticG'] + }); + conditional_access_helper.C.staticInt = null; + conditional_access_helper.nullC = function() { + return null; + }; + dart.fn(conditional_access_helper.nullC, conditional_access_helper.C, []); + conditional_access_helper.D = class D extends core.Object {}; + conditional_access_helper.D.staticE = null; + conditional_access_helper.E = class E extends core.Object { + ['+'](i) { + return new conditional_access_helper.I(); + } + ['-'](i) { + return new conditional_access_helper.I(); + } + }; + dart.setSignature(conditional_access_helper.E, { + methods: () => ({ + '+': [conditional_access_helper.G, [core.int]], + '-': [conditional_access_helper.G, [core.int]] + }) + }); + conditional_access_helper.F = class F extends core.Object {}; + conditional_access_helper.G = class G extends conditional_access_helper.E {}; + conditional_access_helper.G[dart.implements] = () => [conditional_access_helper.F]; + conditional_access_helper.H = class H extends core.Object {}; + conditional_access_helper.I = class I extends conditional_access_helper.G {}; + conditional_access_helper.I[dart.implements] = () => [conditional_access_helper.H]; + // Exports: + exports.conditional_method_invocation_test_01_multi = conditional_method_invocation_test_01_multi; + exports.conditional_access_helper = conditional_access_helper; +}); +dart_library.library('conditional_method_invocation_test_02_multi', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const conditional_method_invocation_test_02_multi = Object.create(null); + const conditional_access_helper = Object.create(null); + conditional_method_invocation_test_02_multi.bad = function() { + expect$.Expect.fail('Should not be executed'); + }; + dart.fn(conditional_method_invocation_test_02_multi.bad); + conditional_method_invocation_test_02_multi.noMethod = function(e) { + return dart.is(e, core.NoSuchMethodError); + }; + dart.fn(conditional_method_invocation_test_02_multi.noMethod); + conditional_method_invocation_test_02_multi.B = class B extends core.Object {}; + conditional_method_invocation_test_02_multi.C = class C extends conditional_method_invocation_test_02_multi.B { + f(callback) { + return callback(); + } + g(callback) { + return callback(); + } + static staticF(callback) { + return callback(); + } + static staticG(callback) { + return callback(); + } + }; + dart.setSignature(conditional_method_invocation_test_02_multi.C, { + methods: () => ({ + f: [dart.dynamic, [dart.functionType(dart.dynamic, [])]], + g: [core.int, [dart.functionType(core.int, [])]] + }), + statics: () => ({ + staticF: [dart.dynamic, [dart.functionType(dart.dynamic, [])]], + staticG: [core.int, [dart.functionType(core.int, [])]] + }), + names: ['staticF', 'staticG'] + }); + conditional_method_invocation_test_02_multi.nullC = function() { + return null; + }; + dart.fn(conditional_method_invocation_test_02_multi.nullC, conditional_method_invocation_test_02_multi.C, []); + conditional_method_invocation_test_02_multi.main = function() { + dart.nullSafe(conditional_method_invocation_test_02_multi.nullC(), _ => _.f(null)); + expect$.Expect.equals(1, new conditional_method_invocation_test_02_multi.C().f(dart.fn(() => 1, core.int, []))); + }; + dart.fn(conditional_method_invocation_test_02_multi.main); conditional_access_helper.topLevelVar = null; conditional_access_helper.topLevelFunction = function() { }; @@ -42133,207 +42232,6 @@ dart_library.library('conditional_rewrite_test', null, /* Imports */[ // Exports: exports.conditional_rewrite_test = conditional_rewrite_test; }); -dart_library.library('condition_bailout_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const condition_bailout_test = Object.create(null); - condition_bailout_test.A = class A extends core.Object { - ['unary-']() { - return this; - } - foo(x) { - dart.dsend(condition_bailout_test.a, 'unary-'); - if (dart.notNull(dart.as(x, core.bool))) return true; - return false; - } - loop1(x) { - dart.dsend(condition_bailout_test.a, 'unary-'); - while (dart.notNull(dart.as(x, core.bool))) - return true; - return false; - } - loop2(x) { - dart.dsend(condition_bailout_test.a, 'unary-'); - for (; dart.notNull(dart.as(x, core.bool));) - return true; - return false; - } - loop3(x) { - dart.dsend(condition_bailout_test.a, 'unary-'); - let i = 0; - do { - if (i++ == 1) return false; - } while (!dart.notNull(dart.as(x, core.bool))); - return true; - } - }; - dart.setSignature(condition_bailout_test.A, { - methods: () => ({ - 'unary-': [dart.dynamic, []], - foo: [dart.dynamic, [dart.dynamic]], - loop1: [dart.dynamic, [dart.dynamic]], - loop2: [dart.dynamic, [dart.dynamic]], - loop3: [dart.dynamic, [dart.dynamic]] - }) - }); - condition_bailout_test.a = null; - condition_bailout_test.main = function() { - condition_bailout_test.a = new condition_bailout_test.A(); - expect$.Expect.isTrue(dart.dsend(condition_bailout_test.a, 'foo', true)); - expect$.Expect.isTrue(dart.dsend(condition_bailout_test.a, 'loop1', true)); - expect$.Expect.isTrue(dart.dsend(condition_bailout_test.a, 'loop2', true)); - expect$.Expect.isTrue(dart.dsend(condition_bailout_test.a, 'loop3', true)); - }; - dart.fn(condition_bailout_test.main); - // Exports: - exports.condition_bailout_test = condition_bailout_test; -}); -dart_library.library('constant_locals_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const constant_locals_test_none_multi = Object.create(null); - constant_locals_test_none_multi.main = function() { - let c2 = 0; - let c5 = constant_locals_test_none_multi.constField; - let c8 = dart.const(new constant_locals_test_none_multi.Class()); - }; - dart.fn(constant_locals_test_none_multi.main, dart.void, []); - constant_locals_test_none_multi.field = 0; - constant_locals_test_none_multi.finalField = 0; - constant_locals_test_none_multi.constField = 0; - constant_locals_test_none_multi.method = function() { - return 0; - }; - dart.fn(constant_locals_test_none_multi.method); - constant_locals_test_none_multi.Class = class Class extends core.Object { - Class() { - } - }; - dart.setSignature(constant_locals_test_none_multi.Class, { - constructors: () => ({Class: [constant_locals_test_none_multi.Class, []]}) - }); - // Exports: - exports.constant_locals_test_none_multi = constant_locals_test_none_multi; -}); -dart_library.library('constant_propagation_phis_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const constant_propagation_phis_test = Object.create(null); - constant_propagation_phis_test.keys = dart.const(dart.list(["keyA"], core.String)); - constant_propagation_phis_test.values = dart.const(dart.list(["a"], core.String)); - constant_propagation_phis_test.main = function() { - for (let i = 0; i < 20; i++) - constant_propagation_phis_test.test(constant_propagation_phis_test.keys[dartx.get](0)); - }; - dart.fn(constant_propagation_phis_test.main); - constant_propagation_phis_test.test = function(key) { - let ref = constant_propagation_phis_test.key2value(key); - expect$.Expect.equals("a", ref == null ? "-" : ref); - }; - dart.fn(constant_propagation_phis_test.test); - constant_propagation_phis_test.key2value = function(key) { - let index = constant_propagation_phis_test.indexOf(constant_propagation_phis_test.keys, key); - return dart.equals(index, -1) ? null : constant_propagation_phis_test.values[dartx.get](dart.as(index, core.int)); - }; - dart.fn(constant_propagation_phis_test.key2value); - constant_propagation_phis_test.indexOf = function(keys, key) { - for (let i = dart.dsend(dart.dload(keys, 'length'), '-', 1); dart.notNull(dart.as(dart.dsend(i, '>=', 0), core.bool)); i = dart.dsend(i, '-', 1)) { - let equals = dart.equals(dart.dindex(keys, i), key); - if (equals) return i; - } - return -1; - }; - dart.fn(constant_propagation_phis_test.indexOf); - // Exports: - exports.constant_propagation_phis_test = constant_propagation_phis_test; -}); -dart_library.library('constant_string_interpolation_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const constant_string_interpolation_test = Object.create(null); - constant_string_interpolation_test.main = function() { - let a = new constant_string_interpolation_test.A(); - for (let i = 0; i < 20; i++) { - let r = constant_string_interpolation_test.interpolIt(a); - expect$.Expect.stringEquals("hello home", r); - } - let b = new constant_string_interpolation_test.B(); - let r = constant_string_interpolation_test.interpolIt(b); - expect$.Expect.stringEquals("hello world", r); - }; - dart.fn(constant_string_interpolation_test.main); - constant_string_interpolation_test.interpolIt = function(v) { - return `hello ${dart.dsend(v, 'foo')}`; - }; - dart.fn(constant_string_interpolation_test.interpolIt, core.String, [dart.dynamic]); - constant_string_interpolation_test.A = class A extends core.Object { - foo() { - return "home"; - } - }; - dart.setSignature(constant_string_interpolation_test.A, { - methods: () => ({foo: [dart.dynamic, []]}) - }); - constant_string_interpolation_test.B = class B extends core.Object { - foo() { - return "world"; - } - }; - dart.setSignature(constant_string_interpolation_test.B, { - methods: () => ({foo: [dart.dynamic, []]}) - }); - // Exports: - exports.constant_string_interpolation_test = constant_string_interpolation_test; -}); -dart_library.library('constant_type_literal_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const constant_type_literal_test_none_multi = Object.create(null); - constant_type_literal_test_none_multi.C$ = dart.generic(T => { - class C extends core.Object { - m() { - let lst = dart.const([]); - } - } - dart.setSignature(C, { - methods: () => ({m: [dart.void, []]}) - }); - return C; - }); - constant_type_literal_test_none_multi.C = constant_type_literal_test_none_multi.C$(); - constant_type_literal_test_none_multi.main = function() { - new constant_type_literal_test_none_multi.C().m(); - }; - dart.fn(constant_type_literal_test_none_multi.main); - // Exports: - exports.constant_type_literal_test_none_multi = constant_type_literal_test_none_multi; -}); dart_library.library('const_conditional_test_none_multi', null, /* Imports */[ 'dart_sdk', 'expect' @@ -43122,6 +43020,34 @@ dart_library.library('const_instance_field_test_none_multi', null, /* Imports */ // Exports: exports.const_instance_field_test_none_multi = const_instance_field_test_none_multi; }); +dart_library.library('const_local_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const const_local_test = Object.create(null); + const_local_test.main = function() { + let a = 1; + expect$.Expect.equals(1, a); + expect$.Expect.equals(1, dart.const(new const_local_test.A(a)).a); + expect$.Expect.equals(1, dart.const(dart.list([dart.const(new const_local_test.A(a))], const_local_test.A))[dartx.get](0).a); + }; + dart.fn(const_local_test.main); + const_local_test.A = class A extends core.Object { + A(a) { + this.a = a; + } + }; + dart.setSignature(const_local_test.A, { + constructors: () => ({A: [const_local_test.A, [dart.dynamic]]}) + }); + // Exports: + exports.const_local_test = const_local_test; +}); dart_library.library('const_locals_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -43161,34 +43087,6 @@ dart_library.library('const_locals_test', null, /* Imports */[ // Exports: exports.const_locals_test = const_locals_test; }); -dart_library.library('const_local_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const const_local_test = Object.create(null); - const_local_test.main = function() { - let a = 1; - expect$.Expect.equals(1, a); - expect$.Expect.equals(1, dart.const(new const_local_test.A(a)).a); - expect$.Expect.equals(1, dart.const(dart.list([dart.const(new const_local_test.A(a))], const_local_test.A))[dartx.get](0).a); - }; - dart.fn(const_local_test.main); - const_local_test.A = class A extends core.Object { - A(a) { - this.a = a; - } - }; - dart.setSignature(const_local_test.A, { - constructors: () => ({A: [const_local_test.A, [dart.dynamic]]}) - }); - // Exports: - exports.const_local_test = const_local_test; -}); dart_library.library('const_map_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -43302,6 +43200,689 @@ dart_library.library('const_nested_test', null, /* Imports */[ // Exports: exports.const_nested_test = const_nested_test; }); +dart_library.library('const_string_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const const_string_test = Object.create(null); + const_string_test.main = function() { + expect$.Expect.isTrue(core.identical("abcd", 'abcd')); + expect$.Expect.isTrue(core.identical('abcd', "abcd")); + expect$.Expect.isTrue(core.identical("ab\"cd", 'ab"cd')); + expect$.Expect.isTrue(core.identical('ab\'cd', "ab'cd")); + expect$.Expect.isTrue(core.identical("abcd", "ab" + "cd")); + expect$.Expect.isTrue(core.identical("abcd", "ab" + 'cd')); + expect$.Expect.isTrue(core.identical("abcd", 'ab' + 'cd')); + expect$.Expect.isTrue(core.identical("abcd", 'ab' + "cd")); + expect$.Expect.isTrue(core.identical("abcd", "a" + "b" + "cd")); + expect$.Expect.isTrue(core.identical("abcd", "a" + "b" + "c" + "d")); + expect$.Expect.isTrue(core.identical('abcd', 'a' + 'b' + 'c' + 'd')); + expect$.Expect.isTrue(core.identical("abcd", "a" + "b" + 'c' + "d")); + expect$.Expect.isTrue(core.identical("abcd", 'a' + 'b' + 'c' + 'd')); + expect$.Expect.isTrue(core.identical("abcd", 'a' + "b" + 'c' + "d")); + expect$.Expect.isTrue(core.identical("a'b'cd", "a" + "'b'" + 'c' + "d")); + expect$.Expect.isTrue(core.identical("a\"b\"cd", "a" + '"b"' + 'c' + "d")); + expect$.Expect.isTrue(core.identical("a\"b\"cd", "a" + '"b"' + 'c' + "d")); + expect$.Expect.isTrue(core.identical("a'b'cd", 'a' + "'b'" + 'c' + "d")); + expect$.Expect.isTrue(core.identical('a\'b\'cd', "a" + "'b'" + 'c' + "d")); + expect$.Expect.isTrue(core.identical('a"b"cd', 'a' + '"b"' + 'c' + "d")); + expect$.Expect.isTrue(core.identical("a\"b\"cd", 'a' + '"b"' + 'c' + "d")); + }; + dart.fn(const_string_test.main); + // Exports: + exports.const_string_test = const_string_test; +}); +dart_library.library('const_switch2_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const const_switch2_test_none_multi = Object.create(null); + const_switch2_test_none_multi.main = function() { + let a = dart.list([1, 2, 3], core.int)[dartx.get](2); + switch (a) { + case 1: + { + core.print("OK"); + } + } + }; + dart.fn(const_switch2_test_none_multi.main, core.int, []); + // Exports: + exports.const_switch2_test_none_multi = const_switch2_test_none_multi; +}); +dart_library.library('const_switch_test_01_multi', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const const_switch_test_01_multi = Object.create(null); + const_switch_test_01_multi.C = class C extends core.Object { + C(field) { + this.field = field; + } + }; + dart.setSignature(const_switch_test_01_multi.C, { + constructors: () => ({C: [const_switch_test_01_multi.C, [dart.dynamic]]}) + }); + const_switch_test_01_multi.c1 = dart.const(new const_switch_test_01_multi.C(0.0)); + const_switch_test_01_multi.c2 = dart.const(new const_switch_test_01_multi.C(0)); + const_switch_test_01_multi.c3 = dart.const(new const_switch_test_01_multi.C(0.5 + 0.5)); + const_switch_test_01_multi.c4 = dart.const(new const_switch_test_01_multi.C(1)); + const_switch_test_01_multi.main = function() { + expect$.Expect.equals('0.0', const_switch_test_01_multi.test(const_switch_test_01_multi.c1)); + }; + dart.fn(const_switch_test_01_multi.main); + const_switch_test_01_multi.test = function(c) { + switch (c) { + case dart.const(new const_switch_test_01_multi.C(0.0)): + { + return '0.0'; + } + case dart.const(new const_switch_test_01_multi.C(0)): + { + return '0'; + } + case dart.const(new const_switch_test_01_multi.C(1.0)): + { + return '1.0'; + } + case dart.const(new const_switch_test_01_multi.C(1)): + { + return '1'; + } + } + return null; + }; + dart.fn(const_switch_test_01_multi.test, core.String, [const_switch_test_01_multi.C]); + // Exports: + exports.const_switch_test_01_multi = const_switch_test_01_multi; +}); +dart_library.library('const_switch_test_02_multi', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const const_switch_test_02_multi = Object.create(null); + const_switch_test_02_multi.C = class C extends core.Object { + C(field) { + this.field = field; + } + }; + dart.setSignature(const_switch_test_02_multi.C, { + constructors: () => ({C: [const_switch_test_02_multi.C, [dart.dynamic]]}) + }); + const_switch_test_02_multi.c1 = dart.const(new const_switch_test_02_multi.C(0.0)); + const_switch_test_02_multi.c2 = dart.const(new const_switch_test_02_multi.C(0)); + const_switch_test_02_multi.c3 = dart.const(new const_switch_test_02_multi.C(0.5 + 0.5)); + const_switch_test_02_multi.c4 = dart.const(new const_switch_test_02_multi.C(1)); + const_switch_test_02_multi.main = function() { + expect$.Expect.equals('0', const_switch_test_02_multi.test(const_switch_test_02_multi.c2)); + }; + dart.fn(const_switch_test_02_multi.main); + const_switch_test_02_multi.test = function(c) { + switch (c) { + case dart.const(new const_switch_test_02_multi.C(0.0)): + { + return '0.0'; + } + case dart.const(new const_switch_test_02_multi.C(0)): + { + return '0'; + } + case dart.const(new const_switch_test_02_multi.C(1.0)): + { + return '1.0'; + } + case dart.const(new const_switch_test_02_multi.C(1)): + { + return '1'; + } + } + return null; + }; + dart.fn(const_switch_test_02_multi.test, core.String, [const_switch_test_02_multi.C]); + // Exports: + exports.const_switch_test_02_multi = const_switch_test_02_multi; +}); +dart_library.library('const_switch_test_03_multi', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const const_switch_test_03_multi = Object.create(null); + const_switch_test_03_multi.C = class C extends core.Object { + C(field) { + this.field = field; + } + }; + dart.setSignature(const_switch_test_03_multi.C, { + constructors: () => ({C: [const_switch_test_03_multi.C, [dart.dynamic]]}) + }); + const_switch_test_03_multi.c1 = dart.const(new const_switch_test_03_multi.C(0.0)); + const_switch_test_03_multi.c2 = dart.const(new const_switch_test_03_multi.C(0)); + const_switch_test_03_multi.c3 = dart.const(new const_switch_test_03_multi.C(0.5 + 0.5)); + const_switch_test_03_multi.c4 = dart.const(new const_switch_test_03_multi.C(1)); + const_switch_test_03_multi.main = function() { + expect$.Expect.equals('1.0', const_switch_test_03_multi.test(const_switch_test_03_multi.c3)); + }; + dart.fn(const_switch_test_03_multi.main); + const_switch_test_03_multi.test = function(c) { + switch (c) { + case dart.const(new const_switch_test_03_multi.C(0.0)): + { + return '0.0'; + } + case dart.const(new const_switch_test_03_multi.C(0)): + { + return '0'; + } + case dart.const(new const_switch_test_03_multi.C(1.0)): + { + return '1.0'; + } + case dart.const(new const_switch_test_03_multi.C(1)): + { + return '1'; + } + } + return null; + }; + dart.fn(const_switch_test_03_multi.test, core.String, [const_switch_test_03_multi.C]); + // Exports: + exports.const_switch_test_03_multi = const_switch_test_03_multi; +}); +dart_library.library('const_switch_test_04_multi', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const const_switch_test_04_multi = Object.create(null); + const_switch_test_04_multi.C = class C extends core.Object { + C(field) { + this.field = field; + } + }; + dart.setSignature(const_switch_test_04_multi.C, { + constructors: () => ({C: [const_switch_test_04_multi.C, [dart.dynamic]]}) + }); + const_switch_test_04_multi.c1 = dart.const(new const_switch_test_04_multi.C(0.0)); + const_switch_test_04_multi.c2 = dart.const(new const_switch_test_04_multi.C(0)); + const_switch_test_04_multi.c3 = dart.const(new const_switch_test_04_multi.C(0.5 + 0.5)); + const_switch_test_04_multi.c4 = dart.const(new const_switch_test_04_multi.C(1)); + const_switch_test_04_multi.main = function() { + expect$.Expect.equals('1', const_switch_test_04_multi.test(const_switch_test_04_multi.c4)); + }; + dart.fn(const_switch_test_04_multi.main); + const_switch_test_04_multi.test = function(c) { + switch (c) { + case dart.const(new const_switch_test_04_multi.C(0.0)): + { + return '0.0'; + } + case dart.const(new const_switch_test_04_multi.C(0)): + { + return '0'; + } + case dart.const(new const_switch_test_04_multi.C(1.0)): + { + return '1.0'; + } + case dart.const(new const_switch_test_04_multi.C(1)): + { + return '1'; + } + } + return null; + }; + dart.fn(const_switch_test_04_multi.test, core.String, [const_switch_test_04_multi.C]); + // Exports: + exports.const_switch_test_04_multi = const_switch_test_04_multi; +}); +dart_library.library('const_switch_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const const_switch_test_none_multi = Object.create(null); + const_switch_test_none_multi.C = class C extends core.Object { + C(field) { + this.field = field; + } + }; + dart.setSignature(const_switch_test_none_multi.C, { + constructors: () => ({C: [const_switch_test_none_multi.C, [dart.dynamic]]}) + }); + const_switch_test_none_multi.c1 = dart.const(new const_switch_test_none_multi.C(0.0)); + const_switch_test_none_multi.c2 = dart.const(new const_switch_test_none_multi.C(0)); + const_switch_test_none_multi.c3 = dart.const(new const_switch_test_none_multi.C(0.5 + 0.5)); + const_switch_test_none_multi.c4 = dart.const(new const_switch_test_none_multi.C(1)); + const_switch_test_none_multi.main = function() { + }; + dart.fn(const_switch_test_none_multi.main); + const_switch_test_none_multi.test = function(c) { + switch (c) { + case dart.const(new const_switch_test_none_multi.C(0.0)): + { + return '0.0'; + } + case dart.const(new const_switch_test_none_multi.C(0)): + { + return '0'; + } + case dart.const(new const_switch_test_none_multi.C(1.0)): + { + return '1.0'; + } + case dart.const(new const_switch_test_none_multi.C(1)): + { + return '1'; + } + } + return null; + }; + dart.fn(const_switch_test_none_multi.test, core.String, [const_switch_test_none_multi.C]); + // Exports: + exports.const_switch_test_none_multi = const_switch_test_none_multi; +}); +dart_library.library('const_syntax_test_none_multi', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const const_syntax_test_none_multi = Object.create(null); + const_syntax_test_none_multi.main = function() { + let f0 = 42; + let f2 = 87; + expect$.Expect.equals(42, f0); + expect$.Expect.equals(87, f2); + expect$.Expect.equals(42, const_syntax_test_none_multi.F0); + expect$.Expect.equals(87, const_syntax_test_none_multi.F2); + expect$.Expect.isTrue(dart.is(const_syntax_test_none_multi.P0, const_syntax_test_none_multi.Point)); + expect$.Expect.isTrue(typeof const_syntax_test_none_multi.A0 == 'number'); + expect$.Expect.isTrue(typeof const_syntax_test_none_multi.A1 == 'number'); + expect$.Expect.isTrue(dart.is(const_syntax_test_none_multi.C0.X, const_syntax_test_none_multi.C1)); + expect$.Expect.equals("Hello 42", const_syntax_test_none_multi.B2); + let cf1 = core.identical(dart.const(new const_syntax_test_none_multi.Point(1, 2)), dart.const(new const_syntax_test_none_multi.Point(1, 2))); + let f5 = const_syntax_test_none_multi.B5; + }; + dart.fn(const_syntax_test_none_multi.main); + const_syntax_test_none_multi.F0 = 42; + const_syntax_test_none_multi.F2 = 87; + const_syntax_test_none_multi.Point = class Point extends core.Object { + Point(x, y) { + this.x = x; + this.y = y; + } + ['+'](other) { + return this.x; + } + }; + dart.setSignature(const_syntax_test_none_multi.Point, { + constructors: () => ({Point: [const_syntax_test_none_multi.Point, [dart.dynamic, dart.dynamic]]}), + methods: () => ({'+': [dart.dynamic, [core.int]]}) + }); + const_syntax_test_none_multi.P0 = dart.const(new const_syntax_test_none_multi.Point(0, 0)); + const_syntax_test_none_multi.A0 = 42; + const_syntax_test_none_multi.A1 = dart.notNull(const_syntax_test_none_multi.A0) + 1; + const_syntax_test_none_multi.C0 = class C0 extends core.Object {}; + dart.defineLazy(const_syntax_test_none_multi.C0, { + get X() { + return dart.const(new const_syntax_test_none_multi.C1()); + } + }); + const_syntax_test_none_multi.C1 = class C1 extends core.Object { + C1() { + this.x = null; + } + }; + dart.setSignature(const_syntax_test_none_multi.C1, { + constructors: () => ({C1: [const_syntax_test_none_multi.C1, []]}) + }); + const_syntax_test_none_multi.B0 = 42; + const_syntax_test_none_multi.B1 = "Hello"; + const_syntax_test_none_multi.B2 = `${const_syntax_test_none_multi.B1} ${const_syntax_test_none_multi.B0}`; + const_syntax_test_none_multi.B5 = core.identical(1, dart.const(new const_syntax_test_none_multi.Point(1, 2))); + // Exports: + exports.const_syntax_test_none_multi = const_syntax_test_none_multi; +}); +dart_library.library('const_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const const_test = Object.create(null); + const_test.AConst = class AConst extends core.Object { + AConst() { + this.b_ = 3; + } + }; + dart.setSignature(const_test.AConst, { + constructors: () => ({AConst: [const_test.AConst, []]}) + }); + const_test.BConst = class BConst extends core.Object { + BConst() { + } + set foo(value) {} + get foo() { + return 5; + } + get(ix) { + return ix; + } + set(ix, value) { + return value; + } + }; + dart.setSignature(const_test.BConst, { + constructors: () => ({BConst: [const_test.BConst, []]}), + methods: () => ({ + get: [dart.dynamic, [dart.dynamic]], + set: [dart.dynamic, [dart.dynamic, dart.dynamic]] + }) + }); + const_test.testMain = function() { + let o = dart.const(new const_test.AConst()); + expect$.Expect.equals(3, o.b_); + let o$ = dart.const(new const_test.BConst()); + let x = o$.foo; + o$.foo = dart.dsend(x, '+', 1); + expect$.Expect.equals(5, x); + let o$0 = dart.const(new const_test.BConst()), i = 5; + let y = o$0.get(i); + o$0.set(i, dart.dsend(y, '+', 1)); + expect$.Expect.equals(5, y); + }; + dart.fn(const_test.testMain); + const_test.main = function() { + for (let i = 0; i < 20; i++) { + const_test.testMain(); + } + }; + dart.fn(const_test.main); + // Exports: + exports.const_test = const_test; +}); +dart_library.library('const_types_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const const_types_test_none_multi = Object.create(null); + const_types_test_none_multi.use = function(x) { + }; + dart.fn(const_types_test_none_multi.use); + const_types_test_none_multi.Class$ = dart.generic(T => { + class Class extends core.Object { + Class() { + } + named() { + } + test() { + const_types_test_none_multi.use(dart.const([])); + const_types_test_none_multi.use(dart.const(dart.list([], const_types_test_none_multi.Class))); + const_types_test_none_multi.use(dart.const(dart.list([], const_types_test_none_multi.Class$(core.int)))); + const_types_test_none_multi.use(dart.const(dart.map())); + const_types_test_none_multi.use(dart.const(dart.map({}, core.String, const_types_test_none_multi.Class))); + const_types_test_none_multi.use(dart.const(dart.map({}, core.String, const_types_test_none_multi.Class$(core.int)))); + const_types_test_none_multi.use(dart.const(new const_types_test_none_multi.Class())); + const_types_test_none_multi.use(dart.const(new (const_types_test_none_multi.Class$(core.int))())); + const_types_test_none_multi.use(dart.const(new const_types_test_none_multi.Class.named())); + const_types_test_none_multi.use(dart.const(new (const_types_test_none_multi.Class$(core.int)).named())); + } + } + dart.defineNamedConstructor(Class, 'named'); + Class[dart.implements] = () => [const_types_test_none_multi.Superclass]; + dart.setSignature(Class, { + constructors: () => ({ + Class: [const_types_test_none_multi.Class$(T), []], + named: [const_types_test_none_multi.Class$(T), []] + }), + methods: () => ({test: [dart.void, []]}) + }); + return Class; + }); + const_types_test_none_multi.Class = const_types_test_none_multi.Class$(); + const_types_test_none_multi.Superclass$ = dart.generic(T => { + class Superclass extends core.Object {} + return Superclass; + }); + const_types_test_none_multi.Superclass = const_types_test_none_multi.Superclass$(); + const_types_test_none_multi.main = function() { + new const_types_test_none_multi.Class().test(); + new const_types_test_none_multi.Superclass(); + }; + dart.fn(const_types_test_none_multi.main, dart.void, []); + // Exports: + exports.const_types_test_none_multi = const_types_test_none_multi; +}); +dart_library.library('const_var_test', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const const_var_test = Object.create(null); + const const_var_helper = Object.create(null); + const_var_test.untypedTopLevel = 1; + const_var_test.typedTopLevel = 2; + const_var_test.genericTopLevel = dart.const(dart.map({}, core.String, core.String)); + const_var_test.main = function() { + let untypedLocal = 3; + let typedLocal = 4; + let genericLocal = dart.const(dart.map({}, core.String, core.String)); + dart.const([]); + dart.const(dart.map()); + dart.const(dart.list([], core.int)); + dart.const(dart.map({}, core.String, core.int)); + dart.const(new const_var_test.Foo()); + dart.const(new (const_var_test.Foo$(core.int))()); + dart.const(new const_var_helper.Foo()); + dart.const(new (const_var_helper.Foo$(core.int))()); + }; + dart.fn(const_var_test.main); + const_var_test.Foo$ = dart.generic(E => { + class Foo extends core.Object { + Foo() { + } + } + dart.setSignature(Foo, { + constructors: () => ({Foo: [const_var_test.Foo$(E), []]}) + }); + return Foo; + }); + const_var_test.Foo = const_var_test.Foo$(); + const_var_helper.Foo$ = dart.generic(E => { + class Foo extends core.Object { + Foo() { + } + } + dart.setSignature(Foo, { + constructors: () => ({Foo: [const_var_helper.Foo$(E), []]}) + }); + return Foo; + }); + const_var_helper.Foo = const_var_helper.Foo$(); + // Exports: + exports.const_var_test = const_var_test; + exports.const_var_helper = const_var_helper; +}); +dart_library.library('constant_locals_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const constant_locals_test_none_multi = Object.create(null); + constant_locals_test_none_multi.main = function() { + let c2 = 0; + let c5 = constant_locals_test_none_multi.constField; + let c8 = dart.const(new constant_locals_test_none_multi.Class()); + }; + dart.fn(constant_locals_test_none_multi.main, dart.void, []); + constant_locals_test_none_multi.field = 0; + constant_locals_test_none_multi.finalField = 0; + constant_locals_test_none_multi.constField = 0; + constant_locals_test_none_multi.method = function() { + return 0; + }; + dart.fn(constant_locals_test_none_multi.method); + constant_locals_test_none_multi.Class = class Class extends core.Object { + Class() { + } + }; + dart.setSignature(constant_locals_test_none_multi.Class, { + constructors: () => ({Class: [constant_locals_test_none_multi.Class, []]}) + }); + // Exports: + exports.constant_locals_test_none_multi = constant_locals_test_none_multi; +}); +dart_library.library('constant_propagation_phis_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const constant_propagation_phis_test = Object.create(null); + constant_propagation_phis_test.keys = dart.const(dart.list(["keyA"], core.String)); + constant_propagation_phis_test.values = dart.const(dart.list(["a"], core.String)); + constant_propagation_phis_test.main = function() { + for (let i = 0; i < 20; i++) + constant_propagation_phis_test.test(constant_propagation_phis_test.keys[dartx.get](0)); + }; + dart.fn(constant_propagation_phis_test.main); + constant_propagation_phis_test.test = function(key) { + let ref = constant_propagation_phis_test.key2value(key); + expect$.Expect.equals("a", ref == null ? "-" : ref); + }; + dart.fn(constant_propagation_phis_test.test); + constant_propagation_phis_test.key2value = function(key) { + let index = constant_propagation_phis_test.indexOf(constant_propagation_phis_test.keys, key); + return dart.equals(index, -1) ? null : constant_propagation_phis_test.values[dartx.get](dart.as(index, core.int)); + }; + dart.fn(constant_propagation_phis_test.key2value); + constant_propagation_phis_test.indexOf = function(keys, key) { + for (let i = dart.dsend(dart.dload(keys, 'length'), '-', 1); dart.notNull(dart.as(dart.dsend(i, '>=', 0), core.bool)); i = dart.dsend(i, '-', 1)) { + let equals = dart.equals(dart.dindex(keys, i), key); + if (equals) return i; + } + return -1; + }; + dart.fn(constant_propagation_phis_test.indexOf); + // Exports: + exports.constant_propagation_phis_test = constant_propagation_phis_test; +}); +dart_library.library('constant_string_interpolation_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const constant_string_interpolation_test = Object.create(null); + constant_string_interpolation_test.main = function() { + let a = new constant_string_interpolation_test.A(); + for (let i = 0; i < 20; i++) { + let r = constant_string_interpolation_test.interpolIt(a); + expect$.Expect.stringEquals("hello home", r); + } + let b = new constant_string_interpolation_test.B(); + let r = constant_string_interpolation_test.interpolIt(b); + expect$.Expect.stringEquals("hello world", r); + }; + dart.fn(constant_string_interpolation_test.main); + constant_string_interpolation_test.interpolIt = function(v) { + return `hello ${dart.dsend(v, 'foo')}`; + }; + dart.fn(constant_string_interpolation_test.interpolIt, core.String, [dart.dynamic]); + constant_string_interpolation_test.A = class A extends core.Object { + foo() { + return "home"; + } + }; + dart.setSignature(constant_string_interpolation_test.A, { + methods: () => ({foo: [dart.dynamic, []]}) + }); + constant_string_interpolation_test.B = class B extends core.Object { + foo() { + return "world"; + } + }; + dart.setSignature(constant_string_interpolation_test.B, { + methods: () => ({foo: [dart.dynamic, []]}) + }); + // Exports: + exports.constant_string_interpolation_test = constant_string_interpolation_test; +}); +dart_library.library('constant_type_literal_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const constant_type_literal_test_none_multi = Object.create(null); + constant_type_literal_test_none_multi.C$ = dart.generic(T => { + class C extends core.Object { + m() { + let lst = dart.const([]); + } + } + dart.setSignature(C, { + methods: () => ({m: [dart.void, []]}) + }); + return C; + }); + constant_type_literal_test_none_multi.C = constant_type_literal_test_none_multi.C$(); + constant_type_literal_test_none_multi.main = function() { + new constant_type_literal_test_none_multi.C().m(); + }; + dart.fn(constant_type_literal_test_none_multi.main); + // Exports: + exports.constant_type_literal_test_none_multi = constant_type_literal_test_none_multi; +}); dart_library.library('constructor10_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -43918,6 +44499,22 @@ dart_library.library('constructor_name_clash_test', null, /* Imports */[ exports.constructor_name_clash_test = constructor_name_clash_test; exports.constructor_name_clash_lib = constructor_name_clash_lib; }); +dart_library.library('constructor_name_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const constructor_name_test_none_multi = Object.create(null); + constructor_name_test_none_multi.Foo = class Foo extends core.Object {}; + constructor_name_test_none_multi.main = function() { + new constructor_name_test_none_multi.Foo(); + }; + dart.fn(constructor_name_test_none_multi.main, dart.void, []); + // Exports: + exports.constructor_name_test_none_multi = constructor_name_test_none_multi; +}); dart_library.library('constructor_named_arguments_test_none_multi', null, /* Imports */[ 'dart_sdk', 'expect' @@ -44009,22 +44606,6 @@ dart_library.library('constructor_named_arguments_test_none_multi', null, /* Imp // Exports: exports.constructor_named_arguments_test_none_multi = constructor_named_arguments_test_none_multi; }); -dart_library.library('constructor_name_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const constructor_name_test_none_multi = Object.create(null); - constructor_name_test_none_multi.Foo = class Foo extends core.Object {}; - constructor_name_test_none_multi.main = function() { - new constructor_name_test_none_multi.Foo(); - }; - dart.fn(constructor_name_test_none_multi.main, dart.void, []); - // Exports: - exports.constructor_name_test_none_multi = constructor_name_test_none_multi; -}); dart_library.library('constructor_redirect2_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -44219,549 +44800,6 @@ dart_library.library('constructor_return_test_none_multi', null, /* Imports */[ // Exports: exports.constructor_return_test_none_multi = constructor_return_test_none_multi; }); -dart_library.library('const_string_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const const_string_test = Object.create(null); - const_string_test.main = function() { - expect$.Expect.isTrue(core.identical("abcd", 'abcd')); - expect$.Expect.isTrue(core.identical('abcd', "abcd")); - expect$.Expect.isTrue(core.identical("ab\"cd", 'ab"cd')); - expect$.Expect.isTrue(core.identical('ab\'cd', "ab'cd")); - expect$.Expect.isTrue(core.identical("abcd", "ab" + "cd")); - expect$.Expect.isTrue(core.identical("abcd", "ab" + 'cd')); - expect$.Expect.isTrue(core.identical("abcd", 'ab' + 'cd')); - expect$.Expect.isTrue(core.identical("abcd", 'ab' + "cd")); - expect$.Expect.isTrue(core.identical("abcd", "a" + "b" + "cd")); - expect$.Expect.isTrue(core.identical("abcd", "a" + "b" + "c" + "d")); - expect$.Expect.isTrue(core.identical('abcd', 'a' + 'b' + 'c' + 'd')); - expect$.Expect.isTrue(core.identical("abcd", "a" + "b" + 'c' + "d")); - expect$.Expect.isTrue(core.identical("abcd", 'a' + 'b' + 'c' + 'd')); - expect$.Expect.isTrue(core.identical("abcd", 'a' + "b" + 'c' + "d")); - expect$.Expect.isTrue(core.identical("a'b'cd", "a" + "'b'" + 'c' + "d")); - expect$.Expect.isTrue(core.identical("a\"b\"cd", "a" + '"b"' + 'c' + "d")); - expect$.Expect.isTrue(core.identical("a\"b\"cd", "a" + '"b"' + 'c' + "d")); - expect$.Expect.isTrue(core.identical("a'b'cd", 'a' + "'b'" + 'c' + "d")); - expect$.Expect.isTrue(core.identical('a\'b\'cd', "a" + "'b'" + 'c' + "d")); - expect$.Expect.isTrue(core.identical('a"b"cd', 'a' + '"b"' + 'c' + "d")); - expect$.Expect.isTrue(core.identical("a\"b\"cd", 'a' + '"b"' + 'c' + "d")); - }; - dart.fn(const_string_test.main); - // Exports: - exports.const_string_test = const_string_test; -}); -dart_library.library('const_switch2_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const const_switch2_test_none_multi = Object.create(null); - const_switch2_test_none_multi.main = function() { - let a = dart.list([1, 2, 3], core.int)[dartx.get](2); - switch (a) { - case 1: - { - core.print("OK"); - } - } - }; - dart.fn(const_switch2_test_none_multi.main, core.int, []); - // Exports: - exports.const_switch2_test_none_multi = const_switch2_test_none_multi; -}); -dart_library.library('const_switch_test_01_multi', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const const_switch_test_01_multi = Object.create(null); - const_switch_test_01_multi.C = class C extends core.Object { - C(field) { - this.field = field; - } - }; - dart.setSignature(const_switch_test_01_multi.C, { - constructors: () => ({C: [const_switch_test_01_multi.C, [dart.dynamic]]}) - }); - const_switch_test_01_multi.c1 = dart.const(new const_switch_test_01_multi.C(0.0)); - const_switch_test_01_multi.c2 = dart.const(new const_switch_test_01_multi.C(0)); - const_switch_test_01_multi.c3 = dart.const(new const_switch_test_01_multi.C(0.5 + 0.5)); - const_switch_test_01_multi.c4 = dart.const(new const_switch_test_01_multi.C(1)); - const_switch_test_01_multi.main = function() { - expect$.Expect.equals('0.0', const_switch_test_01_multi.test(const_switch_test_01_multi.c1)); - }; - dart.fn(const_switch_test_01_multi.main); - const_switch_test_01_multi.test = function(c) { - switch (c) { - case dart.const(new const_switch_test_01_multi.C(0.0)): - { - return '0.0'; - } - case dart.const(new const_switch_test_01_multi.C(0)): - { - return '0'; - } - case dart.const(new const_switch_test_01_multi.C(1.0)): - { - return '1.0'; - } - case dart.const(new const_switch_test_01_multi.C(1)): - { - return '1'; - } - } - return null; - }; - dart.fn(const_switch_test_01_multi.test, core.String, [const_switch_test_01_multi.C]); - // Exports: - exports.const_switch_test_01_multi = const_switch_test_01_multi; -}); -dart_library.library('const_switch_test_02_multi', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const const_switch_test_02_multi = Object.create(null); - const_switch_test_02_multi.C = class C extends core.Object { - C(field) { - this.field = field; - } - }; - dart.setSignature(const_switch_test_02_multi.C, { - constructors: () => ({C: [const_switch_test_02_multi.C, [dart.dynamic]]}) - }); - const_switch_test_02_multi.c1 = dart.const(new const_switch_test_02_multi.C(0.0)); - const_switch_test_02_multi.c2 = dart.const(new const_switch_test_02_multi.C(0)); - const_switch_test_02_multi.c3 = dart.const(new const_switch_test_02_multi.C(0.5 + 0.5)); - const_switch_test_02_multi.c4 = dart.const(new const_switch_test_02_multi.C(1)); - const_switch_test_02_multi.main = function() { - expect$.Expect.equals('0', const_switch_test_02_multi.test(const_switch_test_02_multi.c2)); - }; - dart.fn(const_switch_test_02_multi.main); - const_switch_test_02_multi.test = function(c) { - switch (c) { - case dart.const(new const_switch_test_02_multi.C(0.0)): - { - return '0.0'; - } - case dart.const(new const_switch_test_02_multi.C(0)): - { - return '0'; - } - case dart.const(new const_switch_test_02_multi.C(1.0)): - { - return '1.0'; - } - case dart.const(new const_switch_test_02_multi.C(1)): - { - return '1'; - } - } - return null; - }; - dart.fn(const_switch_test_02_multi.test, core.String, [const_switch_test_02_multi.C]); - // Exports: - exports.const_switch_test_02_multi = const_switch_test_02_multi; -}); -dart_library.library('const_switch_test_03_multi', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const const_switch_test_03_multi = Object.create(null); - const_switch_test_03_multi.C = class C extends core.Object { - C(field) { - this.field = field; - } - }; - dart.setSignature(const_switch_test_03_multi.C, { - constructors: () => ({C: [const_switch_test_03_multi.C, [dart.dynamic]]}) - }); - const_switch_test_03_multi.c1 = dart.const(new const_switch_test_03_multi.C(0.0)); - const_switch_test_03_multi.c2 = dart.const(new const_switch_test_03_multi.C(0)); - const_switch_test_03_multi.c3 = dart.const(new const_switch_test_03_multi.C(0.5 + 0.5)); - const_switch_test_03_multi.c4 = dart.const(new const_switch_test_03_multi.C(1)); - const_switch_test_03_multi.main = function() { - expect$.Expect.equals('1.0', const_switch_test_03_multi.test(const_switch_test_03_multi.c3)); - }; - dart.fn(const_switch_test_03_multi.main); - const_switch_test_03_multi.test = function(c) { - switch (c) { - case dart.const(new const_switch_test_03_multi.C(0.0)): - { - return '0.0'; - } - case dart.const(new const_switch_test_03_multi.C(0)): - { - return '0'; - } - case dart.const(new const_switch_test_03_multi.C(1.0)): - { - return '1.0'; - } - case dart.const(new const_switch_test_03_multi.C(1)): - { - return '1'; - } - } - return null; - }; - dart.fn(const_switch_test_03_multi.test, core.String, [const_switch_test_03_multi.C]); - // Exports: - exports.const_switch_test_03_multi = const_switch_test_03_multi; -}); -dart_library.library('const_switch_test_04_multi', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const const_switch_test_04_multi = Object.create(null); - const_switch_test_04_multi.C = class C extends core.Object { - C(field) { - this.field = field; - } - }; - dart.setSignature(const_switch_test_04_multi.C, { - constructors: () => ({C: [const_switch_test_04_multi.C, [dart.dynamic]]}) - }); - const_switch_test_04_multi.c1 = dart.const(new const_switch_test_04_multi.C(0.0)); - const_switch_test_04_multi.c2 = dart.const(new const_switch_test_04_multi.C(0)); - const_switch_test_04_multi.c3 = dart.const(new const_switch_test_04_multi.C(0.5 + 0.5)); - const_switch_test_04_multi.c4 = dart.const(new const_switch_test_04_multi.C(1)); - const_switch_test_04_multi.main = function() { - expect$.Expect.equals('1', const_switch_test_04_multi.test(const_switch_test_04_multi.c4)); - }; - dart.fn(const_switch_test_04_multi.main); - const_switch_test_04_multi.test = function(c) { - switch (c) { - case dart.const(new const_switch_test_04_multi.C(0.0)): - { - return '0.0'; - } - case dart.const(new const_switch_test_04_multi.C(0)): - { - return '0'; - } - case dart.const(new const_switch_test_04_multi.C(1.0)): - { - return '1.0'; - } - case dart.const(new const_switch_test_04_multi.C(1)): - { - return '1'; - } - } - return null; - }; - dart.fn(const_switch_test_04_multi.test, core.String, [const_switch_test_04_multi.C]); - // Exports: - exports.const_switch_test_04_multi = const_switch_test_04_multi; -}); -dart_library.library('const_switch_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const const_switch_test_none_multi = Object.create(null); - const_switch_test_none_multi.C = class C extends core.Object { - C(field) { - this.field = field; - } - }; - dart.setSignature(const_switch_test_none_multi.C, { - constructors: () => ({C: [const_switch_test_none_multi.C, [dart.dynamic]]}) - }); - const_switch_test_none_multi.c1 = dart.const(new const_switch_test_none_multi.C(0.0)); - const_switch_test_none_multi.c2 = dart.const(new const_switch_test_none_multi.C(0)); - const_switch_test_none_multi.c3 = dart.const(new const_switch_test_none_multi.C(0.5 + 0.5)); - const_switch_test_none_multi.c4 = dart.const(new const_switch_test_none_multi.C(1)); - const_switch_test_none_multi.main = function() { - }; - dart.fn(const_switch_test_none_multi.main); - const_switch_test_none_multi.test = function(c) { - switch (c) { - case dart.const(new const_switch_test_none_multi.C(0.0)): - { - return '0.0'; - } - case dart.const(new const_switch_test_none_multi.C(0)): - { - return '0'; - } - case dart.const(new const_switch_test_none_multi.C(1.0)): - { - return '1.0'; - } - case dart.const(new const_switch_test_none_multi.C(1)): - { - return '1'; - } - } - return null; - }; - dart.fn(const_switch_test_none_multi.test, core.String, [const_switch_test_none_multi.C]); - // Exports: - exports.const_switch_test_none_multi = const_switch_test_none_multi; -}); -dart_library.library('const_syntax_test_none_multi', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const const_syntax_test_none_multi = Object.create(null); - const_syntax_test_none_multi.main = function() { - let f0 = 42; - let f2 = 87; - expect$.Expect.equals(42, f0); - expect$.Expect.equals(87, f2); - expect$.Expect.equals(42, const_syntax_test_none_multi.F0); - expect$.Expect.equals(87, const_syntax_test_none_multi.F2); - expect$.Expect.isTrue(dart.is(const_syntax_test_none_multi.P0, const_syntax_test_none_multi.Point)); - expect$.Expect.isTrue(typeof const_syntax_test_none_multi.A0 == 'number'); - expect$.Expect.isTrue(typeof const_syntax_test_none_multi.A1 == 'number'); - expect$.Expect.isTrue(dart.is(const_syntax_test_none_multi.C0.X, const_syntax_test_none_multi.C1)); - expect$.Expect.equals("Hello 42", const_syntax_test_none_multi.B2); - let cf1 = core.identical(dart.const(new const_syntax_test_none_multi.Point(1, 2)), dart.const(new const_syntax_test_none_multi.Point(1, 2))); - let f5 = const_syntax_test_none_multi.B5; - }; - dart.fn(const_syntax_test_none_multi.main); - const_syntax_test_none_multi.F0 = 42; - const_syntax_test_none_multi.F2 = 87; - const_syntax_test_none_multi.Point = class Point extends core.Object { - Point(x, y) { - this.x = x; - this.y = y; - } - ['+'](other) { - return this.x; - } - }; - dart.setSignature(const_syntax_test_none_multi.Point, { - constructors: () => ({Point: [const_syntax_test_none_multi.Point, [dart.dynamic, dart.dynamic]]}), - methods: () => ({'+': [dart.dynamic, [core.int]]}) - }); - const_syntax_test_none_multi.P0 = dart.const(new const_syntax_test_none_multi.Point(0, 0)); - const_syntax_test_none_multi.A0 = 42; - const_syntax_test_none_multi.A1 = dart.notNull(const_syntax_test_none_multi.A0) + 1; - const_syntax_test_none_multi.C0 = class C0 extends core.Object {}; - dart.defineLazy(const_syntax_test_none_multi.C0, { - get X() { - return dart.const(new const_syntax_test_none_multi.C1()); - } - }); - const_syntax_test_none_multi.C1 = class C1 extends core.Object { - C1() { - this.x = null; - } - }; - dart.setSignature(const_syntax_test_none_multi.C1, { - constructors: () => ({C1: [const_syntax_test_none_multi.C1, []]}) - }); - const_syntax_test_none_multi.B0 = 42; - const_syntax_test_none_multi.B1 = "Hello"; - const_syntax_test_none_multi.B2 = `${const_syntax_test_none_multi.B1} ${const_syntax_test_none_multi.B0}`; - const_syntax_test_none_multi.B5 = core.identical(1, dart.const(new const_syntax_test_none_multi.Point(1, 2))); - // Exports: - exports.const_syntax_test_none_multi = const_syntax_test_none_multi; -}); -dart_library.library('const_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const const_test = Object.create(null); - const_test.AConst = class AConst extends core.Object { - AConst() { - this.b_ = 3; - } - }; - dart.setSignature(const_test.AConst, { - constructors: () => ({AConst: [const_test.AConst, []]}) - }); - const_test.BConst = class BConst extends core.Object { - BConst() { - } - set foo(value) {} - get foo() { - return 5; - } - get(ix) { - return ix; - } - set(ix, value) { - return value; - } - }; - dart.setSignature(const_test.BConst, { - constructors: () => ({BConst: [const_test.BConst, []]}), - methods: () => ({ - get: [dart.dynamic, [dart.dynamic]], - set: [dart.dynamic, [dart.dynamic, dart.dynamic]] - }) - }); - const_test.testMain = function() { - let o = dart.const(new const_test.AConst()); - expect$.Expect.equals(3, o.b_); - let o$ = dart.const(new const_test.BConst()); - let x = o$.foo; - o$.foo = dart.dsend(x, '+', 1); - expect$.Expect.equals(5, x); - let o$0 = dart.const(new const_test.BConst()), i = 5; - let y = o$0.get(i); - o$0.set(i, dart.dsend(y, '+', 1)); - expect$.Expect.equals(5, y); - }; - dart.fn(const_test.testMain); - const_test.main = function() { - for (let i = 0; i < 20; i++) { - const_test.testMain(); - } - }; - dart.fn(const_test.main); - // Exports: - exports.const_test = const_test; -}); -dart_library.library('const_types_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const const_types_test_none_multi = Object.create(null); - const_types_test_none_multi.use = function(x) { - }; - dart.fn(const_types_test_none_multi.use); - const_types_test_none_multi.Class$ = dart.generic(T => { - class Class extends core.Object { - Class() { - } - named() { - } - test() { - const_types_test_none_multi.use(dart.const([])); - const_types_test_none_multi.use(dart.const(dart.list([], const_types_test_none_multi.Class))); - const_types_test_none_multi.use(dart.const(dart.list([], const_types_test_none_multi.Class$(core.int)))); - const_types_test_none_multi.use(dart.const(dart.map())); - const_types_test_none_multi.use(dart.const(dart.map({}, core.String, const_types_test_none_multi.Class))); - const_types_test_none_multi.use(dart.const(dart.map({}, core.String, const_types_test_none_multi.Class$(core.int)))); - const_types_test_none_multi.use(dart.const(new const_types_test_none_multi.Class())); - const_types_test_none_multi.use(dart.const(new (const_types_test_none_multi.Class$(core.int))())); - const_types_test_none_multi.use(dart.const(new const_types_test_none_multi.Class.named())); - const_types_test_none_multi.use(dart.const(new (const_types_test_none_multi.Class$(core.int)).named())); - } - } - dart.defineNamedConstructor(Class, 'named'); - Class[dart.implements] = () => [const_types_test_none_multi.Superclass]; - dart.setSignature(Class, { - constructors: () => ({ - Class: [const_types_test_none_multi.Class$(T), []], - named: [const_types_test_none_multi.Class$(T), []] - }), - methods: () => ({test: [dart.void, []]}) - }); - return Class; - }); - const_types_test_none_multi.Class = const_types_test_none_multi.Class$(); - const_types_test_none_multi.Superclass$ = dart.generic(T => { - class Superclass extends core.Object {} - return Superclass; - }); - const_types_test_none_multi.Superclass = const_types_test_none_multi.Superclass$(); - const_types_test_none_multi.main = function() { - new const_types_test_none_multi.Class().test(); - new const_types_test_none_multi.Superclass(); - }; - dart.fn(const_types_test_none_multi.main, dart.void, []); - // Exports: - exports.const_types_test_none_multi = const_types_test_none_multi; -}); -dart_library.library('const_var_test', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const const_var_test = Object.create(null); - const const_var_helper = Object.create(null); - const_var_test.untypedTopLevel = 1; - const_var_test.typedTopLevel = 2; - const_var_test.genericTopLevel = dart.const(dart.map({}, core.String, core.String)); - const_var_test.main = function() { - let untypedLocal = 3; - let typedLocal = 4; - let genericLocal = dart.const(dart.map({}, core.String, core.String)); - dart.const([]); - dart.const(dart.map()); - dart.const(dart.list([], core.int)); - dart.const(dart.map({}, core.String, core.int)); - dart.const(new const_var_test.Foo()); - dart.const(new (const_var_test.Foo$(core.int))()); - dart.const(new const_var_helper.Foo()); - dart.const(new (const_var_helper.Foo$(core.int))()); - }; - dart.fn(const_var_test.main); - const_var_test.Foo$ = dart.generic(E => { - class Foo extends core.Object { - Foo() { - } - } - dart.setSignature(Foo, { - constructors: () => ({Foo: [const_var_test.Foo$(E), []]}) - }); - return Foo; - }); - const_var_test.Foo = const_var_test.Foo$(); - const_var_helper.Foo$ = dart.generic(E => { - class Foo extends core.Object { - Foo() { - } - } - dart.setSignature(Foo, { - constructors: () => ({Foo: [const_var_helper.Foo$(E), []]}) - }); - return Foo; - }); - const_var_helper.Foo = const_var_helper.Foo$(); - // Exports: - exports.const_var_test = const_var_test; - exports.const_var_helper = const_var_helper; -}); dart_library.library('context2_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -45882,891 +45920,15 @@ dart_library.library('cyclic_import_test', null, /* Imports */[ const sub$131 = Object.create(null); const cyclic_import_test$132 = Object.create(null); const sub$132 = Object.create(null); - const cyclic_import_test$133 = Object.create(null); - const sub$133 = Object.create(null); - const cyclic_import_test$134 = Object.create(null); - const sub$134 = Object.create(null); - const cyclic_import_test$135 = Object.create(null); - const sub$135 = Object.create(null); - const cyclic_import_test$136 = Object.create(null); - const sub$136 = Object.create(null); - const cyclic_import_test$137 = Object.create(null); - const sub$137 = Object.create(null); - const cyclic_import_test$138 = Object.create(null); - const sub$138 = Object.create(null); - const cyclic_import_test$139 = Object.create(null); - const sub$139 = Object.create(null); - const cyclic_import_test$140 = Object.create(null); - const sub$140 = Object.create(null); - const cyclic_import_test$141 = Object.create(null); - const sub$141 = Object.create(null); - const cyclic_import_test$142 = Object.create(null); - const sub$142 = Object.create(null); - const cyclic_import_test$143 = Object.create(null); - const sub$143 = Object.create(null); - const cyclic_import_test$144 = Object.create(null); - const sub$144 = Object.create(null); - const cyclic_import_test$145 = Object.create(null); - const sub$145 = Object.create(null); - const cyclic_import_test$146 = Object.create(null); - const sub$146 = Object.create(null); - const cyclic_import_test$147 = Object.create(null); - const sub$147 = Object.create(null); - const cyclic_import_test$148 = Object.create(null); - const sub$148 = Object.create(null); - const cyclic_import_test$149 = Object.create(null); - const sub$149 = Object.create(null); - const cyclic_import_test$150 = Object.create(null); - const sub$150 = Object.create(null); - const cyclic_import_test$151 = Object.create(null); - const sub$151 = Object.create(null); - const cyclic_import_test$152 = Object.create(null); - const sub$152 = Object.create(null); - const cyclic_import_test$153 = Object.create(null); - const sub$153 = Object.create(null); - const cyclic_import_test$154 = Object.create(null); - const sub$154 = Object.create(null); - const cyclic_import_test$155 = Object.create(null); - const sub$155 = Object.create(null); - const cyclic_import_test$156 = Object.create(null); - const sub$156 = Object.create(null); - const cyclic_import_test$157 = Object.create(null); - const sub$157 = Object.create(null); - const cyclic_import_test$158 = Object.create(null); - const sub$158 = Object.create(null); - const cyclic_import_test$159 = Object.create(null); - const sub$159 = Object.create(null); - const cyclic_import_test$160 = Object.create(null); - const sub$160 = Object.create(null); - const cyclic_import_test$161 = Object.create(null); - const sub$161 = Object.create(null); - const cyclic_import_test$162 = Object.create(null); - const sub$162 = Object.create(null); - const cyclic_import_test$163 = Object.create(null); - const sub$163 = Object.create(null); - const cyclic_import_test$164 = Object.create(null); - const sub$164 = Object.create(null); - const cyclic_import_test$165 = Object.create(null); - const sub$165 = Object.create(null); - const cyclic_import_test$166 = Object.create(null); - const sub$166 = Object.create(null); - const cyclic_import_test$167 = Object.create(null); - const sub$167 = Object.create(null); - const cyclic_import_test$168 = Object.create(null); - const sub$168 = Object.create(null); - const cyclic_import_test$169 = Object.create(null); - const sub$169 = Object.create(null); - const cyclic_import_test$170 = Object.create(null); - const sub$170 = Object.create(null); - const cyclic_import_test$171 = Object.create(null); - const sub$171 = Object.create(null); - const cyclic_import_test$172 = Object.create(null); - const sub$172 = Object.create(null); - const cyclic_import_test$173 = Object.create(null); - const sub$173 = Object.create(null); - const cyclic_import_test$174 = Object.create(null); - const sub$174 = Object.create(null); - const cyclic_import_test$175 = Object.create(null); - const sub$175 = Object.create(null); - const cyclic_import_test$176 = Object.create(null); - const sub$176 = Object.create(null); - const cyclic_import_test$177 = Object.create(null); - const sub$177 = Object.create(null); - const cyclic_import_test$178 = Object.create(null); - const sub$178 = Object.create(null); - const cyclic_import_test$179 = Object.create(null); - const sub$179 = Object.create(null); - const cyclic_import_test$180 = Object.create(null); - const sub$180 = Object.create(null); - const cyclic_import_test$181 = Object.create(null); - const sub$181 = Object.create(null); - const cyclic_import_test$182 = Object.create(null); - const sub$182 = Object.create(null); - const cyclic_import_test$183 = Object.create(null); - const sub$183 = Object.create(null); - const cyclic_import_test$184 = Object.create(null); - const sub$184 = Object.create(null); - const cyclic_import_test$185 = Object.create(null); - const sub$185 = Object.create(null); - const cyclic_import_test$186 = Object.create(null); - const sub$186 = Object.create(null); - const cyclic_import_test$187 = Object.create(null); - const sub$187 = Object.create(null); - const cyclic_import_test$188 = Object.create(null); - const sub$188 = Object.create(null); - const cyclic_import_test$189 = Object.create(null); - const sub$189 = Object.create(null); - const cyclic_import_test$190 = Object.create(null); - const sub$190 = Object.create(null); - const cyclic_import_test$191 = Object.create(null); - const sub$191 = Object.create(null); - const cyclic_import_test$192 = Object.create(null); - const sub$192 = Object.create(null); - const cyclic_import_test$193 = Object.create(null); - const sub$193 = Object.create(null); - const cyclic_import_test$194 = Object.create(null); - const sub$194 = Object.create(null); - const cyclic_import_test$195 = Object.create(null); - const sub$195 = Object.create(null); - const cyclic_import_test$196 = Object.create(null); - const sub$196 = Object.create(null); - const cyclic_import_test$197 = Object.create(null); - const sub$197 = Object.create(null); - const cyclic_import_test$198 = Object.create(null); - const sub$198 = Object.create(null); - const cyclic_import_test$199 = Object.create(null); - const sub$199 = Object.create(null); - const cyclic_import_test$200 = Object.create(null); - const sub$200 = Object.create(null); - const cyclic_import_test$201 = Object.create(null); - const sub$201 = Object.create(null); - const cyclic_import_test$202 = Object.create(null); - const sub$202 = Object.create(null); - const cyclic_import_test$203 = Object.create(null); - const sub$203 = Object.create(null); - const cyclic_import_test$204 = Object.create(null); - const sub$204 = Object.create(null); - const cyclic_import_test$205 = Object.create(null); - const sub$205 = Object.create(null); - const cyclic_import_test$206 = Object.create(null); - const sub$206 = Object.create(null); - const cyclic_import_test$207 = Object.create(null); - const sub$207 = Object.create(null); - const cyclic_import_test$208 = Object.create(null); - const sub$208 = Object.create(null); - const cyclic_import_test$209 = Object.create(null); - const sub$209 = Object.create(null); - const cyclic_import_test$210 = Object.create(null); - const sub$210 = Object.create(null); - const cyclic_import_test$211 = Object.create(null); - const sub$211 = Object.create(null); - const cyclic_import_test$212 = Object.create(null); - const sub$212 = Object.create(null); - const cyclic_import_test$213 = Object.create(null); - const sub$213 = Object.create(null); - const cyclic_import_test$214 = Object.create(null); - const sub$214 = Object.create(null); - const cyclic_import_test$215 = Object.create(null); - const sub$215 = Object.create(null); - const cyclic_import_test$216 = Object.create(null); - const sub$216 = Object.create(null); - const cyclic_import_test$217 = Object.create(null); - const sub$217 = Object.create(null); - const cyclic_import_test$218 = Object.create(null); - const sub$218 = Object.create(null); - const cyclic_import_test$219 = Object.create(null); - const sub$219 = Object.create(null); - const cyclic_import_test$220 = Object.create(null); - const sub$220 = Object.create(null); - const cyclic_import_test$221 = Object.create(null); - const sub$221 = Object.create(null); - const cyclic_import_test$222 = Object.create(null); - const sub$222 = Object.create(null); - const cyclic_import_test$223 = Object.create(null); - const sub$223 = Object.create(null); - const cyclic_import_test$224 = Object.create(null); - const sub$224 = Object.create(null); - const cyclic_import_test$225 = Object.create(null); - const sub$225 = Object.create(null); - const cyclic_import_test$226 = Object.create(null); - const sub$226 = Object.create(null); - const cyclic_import_test$227 = Object.create(null); - const sub$227 = Object.create(null); - const cyclic_import_test$228 = Object.create(null); - const sub$228 = Object.create(null); - const cyclic_import_test$229 = Object.create(null); - const sub$229 = Object.create(null); - const cyclic_import_test$230 = Object.create(null); - const sub$230 = Object.create(null); - const cyclic_import_test$231 = Object.create(null); - const sub$231 = Object.create(null); - const cyclic_import_test$232 = Object.create(null); - const sub$232 = Object.create(null); - const cyclic_import_test$233 = Object.create(null); - const sub$233 = Object.create(null); - const cyclic_import_test$234 = Object.create(null); - const sub$234 = Object.create(null); - const cyclic_import_test$235 = Object.create(null); - const sub$235 = Object.create(null); - const cyclic_import_test$236 = Object.create(null); - const sub$236 = Object.create(null); - const cyclic_import_test$237 = Object.create(null); - const sub$237 = Object.create(null); - const cyclic_import_test$238 = Object.create(null); - const sub$238 = Object.create(null); - const cyclic_import_test$239 = Object.create(null); - const sub$239 = Object.create(null); - const cyclic_import_test$240 = Object.create(null); - const sub$240 = Object.create(null); - const cyclic_import_test$241 = Object.create(null); - const sub$241 = Object.create(null); - const cyclic_import_test$242 = Object.create(null); - const sub$242 = Object.create(null); - const cyclic_import_test$243 = Object.create(null); - const sub$243 = Object.create(null); - const cyclic_import_test$244 = Object.create(null); - const sub$244 = Object.create(null); - const cyclic_import_test$245 = Object.create(null); - const sub$245 = Object.create(null); - const cyclic_import_test$246 = Object.create(null); - const sub$246 = Object.create(null); - const cyclic_import_test$247 = Object.create(null); - const sub$247 = Object.create(null); - const cyclic_import_test$248 = Object.create(null); - const sub$248 = Object.create(null); - const cyclic_import_test$249 = Object.create(null); - const sub$249 = Object.create(null); - const cyclic_import_test$250 = Object.create(null); - const sub$250 = Object.create(null); - const cyclic_import_test$251 = Object.create(null); - const sub$251 = Object.create(null); - const cyclic_import_test$252 = Object.create(null); - const sub$252 = Object.create(null); - const cyclic_import_test$253 = Object.create(null); - const sub$253 = Object.create(null); - const cyclic_import_test$254 = Object.create(null); - const sub$254 = Object.create(null); - const cyclic_import_test$255 = Object.create(null); - const sub$255 = Object.create(null); - const cyclic_import_test$256 = Object.create(null); - const sub$256 = Object.create(null); - const cyclic_import_test$257 = Object.create(null); - const sub$257 = Object.create(null); - const cyclic_import_test$258 = Object.create(null); - const sub$258 = Object.create(null); - const cyclic_import_test$259 = Object.create(null); - const sub$259 = Object.create(null); - const cyclic_import_test$260 = Object.create(null); - const sub$260 = Object.create(null); - const cyclic_import_test$261 = Object.create(null); - const sub$261 = Object.create(null); - const cyclic_import_test$262 = Object.create(null); - const sub$262 = Object.create(null); - const cyclic_import_test$263 = Object.create(null); - const sub$263 = Object.create(null); - const cyclic_import_test$264 = Object.create(null); - const sub$264 = Object.create(null); - const cyclic_import_test$265 = Object.create(null); - const sub$265 = Object.create(null); - const cyclic_import_test$266 = Object.create(null); - const sub$266 = Object.create(null); - const cyclic_import_test$267 = Object.create(null); - const sub$267 = Object.create(null); - const cyclic_import_test$268 = Object.create(null); - const sub$268 = Object.create(null); - const cyclic_import_test$269 = Object.create(null); - const sub$269 = Object.create(null); - const cyclic_import_test$270 = Object.create(null); - const sub$270 = Object.create(null); - const cyclic_import_test$271 = Object.create(null); - const sub$271 = Object.create(null); - const cyclic_import_test$272 = Object.create(null); - const sub$272 = Object.create(null); - const cyclic_import_test$273 = Object.create(null); - const sub$273 = Object.create(null); - const cyclic_import_test$274 = Object.create(null); - const sub$274 = Object.create(null); - const cyclic_import_test$275 = Object.create(null); - const sub$275 = Object.create(null); - const cyclic_import_test$276 = Object.create(null); - const sub$276 = Object.create(null); - const cyclic_import_test$277 = Object.create(null); - const sub$277 = Object.create(null); - const cyclic_import_test$278 = Object.create(null); - const sub$278 = Object.create(null); - const cyclic_import_test$279 = Object.create(null); - const sub$279 = Object.create(null); - const cyclic_import_test$280 = Object.create(null); - const sub$280 = Object.create(null); - const cyclic_import_test$281 = Object.create(null); - const sub$281 = Object.create(null); - const cyclic_import_test$282 = Object.create(null); - const sub$282 = Object.create(null); - const cyclic_import_test$283 = Object.create(null); - const sub$283 = Object.create(null); - const cyclic_import_test$284 = Object.create(null); - const sub$284 = Object.create(null); - const cyclic_import_test$285 = Object.create(null); - const sub$285 = Object.create(null); - const cyclic_import_test$286 = Object.create(null); - const sub$286 = Object.create(null); - const cyclic_import_test$287 = Object.create(null); - const sub$287 = Object.create(null); - const cyclic_import_test$288 = Object.create(null); - const sub$288 = Object.create(null); - const cyclic_import_test$289 = Object.create(null); - const sub$289 = Object.create(null); - const cyclic_import_test$290 = Object.create(null); - const sub$290 = Object.create(null); - const cyclic_import_test$291 = Object.create(null); - const sub$291 = Object.create(null); - const cyclic_import_test$292 = Object.create(null); - const sub$292 = Object.create(null); - const cyclic_import_test$293 = Object.create(null); - const sub$293 = Object.create(null); - const cyclic_import_test$294 = Object.create(null); - const sub$294 = Object.create(null); - const cyclic_import_test$295 = Object.create(null); - const sub$295 = Object.create(null); - const cyclic_import_test$296 = Object.create(null); - const sub$296 = Object.create(null); - const cyclic_import_test$297 = Object.create(null); - const sub$297 = Object.create(null); - const cyclic_import_test$298 = Object.create(null); - const sub$298 = Object.create(null); - const cyclic_import_test$299 = Object.create(null); - const sub$299 = Object.create(null); - const cyclic_import_test$300 = Object.create(null); - const sub$300 = Object.create(null); - const cyclic_import_test$301 = Object.create(null); - const sub$301 = Object.create(null); - const cyclic_import_test$302 = Object.create(null); - const sub$302 = Object.create(null); - const cyclic_import_test$303 = Object.create(null); - const sub$303 = Object.create(null); - const cyclic_import_test$304 = Object.create(null); - const sub$304 = Object.create(null); - const cyclic_import_test$305 = Object.create(null); - const sub$305 = Object.create(null); - const cyclic_import_test$306 = Object.create(null); - const sub$306 = Object.create(null); - const cyclic_import_test$307 = Object.create(null); - const sub$307 = Object.create(null); - const cyclic_import_test$308 = Object.create(null); - const sub$308 = Object.create(null); - const cyclic_import_test$309 = Object.create(null); - const sub$309 = Object.create(null); - const cyclic_import_test$310 = Object.create(null); - const sub$310 = Object.create(null); - const cyclic_import_test$311 = Object.create(null); - const sub$311 = Object.create(null); - const cyclic_import_test$312 = Object.create(null); - const sub$312 = Object.create(null); - const cyclic_import_test$313 = Object.create(null); - const sub$313 = Object.create(null); - const cyclic_import_test$314 = Object.create(null); - const sub$314 = Object.create(null); - const cyclic_import_test$315 = Object.create(null); - const sub$315 = Object.create(null); - const cyclic_import_test$316 = Object.create(null); - const sub$316 = Object.create(null); - const cyclic_import_test$317 = Object.create(null); - const sub$317 = Object.create(null); - const cyclic_import_test$318 = Object.create(null); - const sub$318 = Object.create(null); - const cyclic_import_test$319 = Object.create(null); - const sub$319 = Object.create(null); - const cyclic_import_test$320 = Object.create(null); - const sub$320 = Object.create(null); - const cyclic_import_test$321 = Object.create(null); - const sub$321 = Object.create(null); - const cyclic_import_test$322 = Object.create(null); - const sub$322 = Object.create(null); - const cyclic_import_test$323 = Object.create(null); - const sub$323 = Object.create(null); - const cyclic_import_test$324 = Object.create(null); - const sub$324 = Object.create(null); - const cyclic_import_test$325 = Object.create(null); - const sub$325 = Object.create(null); - const cyclic_import_test$326 = Object.create(null); - const sub$326 = Object.create(null); - const cyclic_import_test$327 = Object.create(null); - const sub$327 = Object.create(null); - const cyclic_import_test$328 = Object.create(null); - const sub$328 = Object.create(null); - const cyclic_import_test$329 = Object.create(null); - const sub$329 = Object.create(null); - const cyclic_import_test$330 = Object.create(null); - const sub$330 = Object.create(null); - const cyclic_import_test$331 = Object.create(null); - const sub$331 = Object.create(null); - const cyclic_import_test$332 = Object.create(null); - const sub$332 = Object.create(null); - const cyclic_import_test$333 = Object.create(null); - const sub$333 = Object.create(null); - const cyclic_import_test$334 = Object.create(null); - const sub$334 = Object.create(null); - const cyclic_import_test$335 = Object.create(null); - const sub$335 = Object.create(null); - const cyclic_import_test$336 = Object.create(null); - const sub$336 = Object.create(null); - const cyclic_import_test$337 = Object.create(null); - const sub$337 = Object.create(null); - const cyclic_import_test$338 = Object.create(null); - const sub$338 = Object.create(null); - const cyclic_import_test$339 = Object.create(null); - const sub$339 = Object.create(null); - const cyclic_import_test$340 = Object.create(null); - const sub$340 = Object.create(null); - const cyclic_import_test$341 = Object.create(null); - const sub$341 = Object.create(null); - const cyclic_import_test$342 = Object.create(null); - const sub$342 = Object.create(null); - const cyclic_import_test$343 = Object.create(null); - const sub$343 = Object.create(null); - const cyclic_import_test$344 = Object.create(null); - const sub$344 = Object.create(null); - const cyclic_import_test$345 = Object.create(null); - const sub$345 = Object.create(null); - const cyclic_import_test$346 = Object.create(null); - const sub$346 = Object.create(null); - const cyclic_import_test$347 = Object.create(null); - const sub$347 = Object.create(null); - const cyclic_import_test$348 = Object.create(null); - const sub$348 = Object.create(null); - const cyclic_import_test$349 = Object.create(null); - const sub$349 = Object.create(null); - const cyclic_import_test$350 = Object.create(null); - const sub$350 = Object.create(null); - const cyclic_import_test$351 = Object.create(null); - const sub$351 = Object.create(null); - const cyclic_import_test$352 = Object.create(null); - const sub$352 = Object.create(null); - const cyclic_import_test$353 = Object.create(null); - const sub$353 = Object.create(null); - const cyclic_import_test$354 = Object.create(null); - const sub$354 = Object.create(null); - const cyclic_import_test$355 = Object.create(null); - const sub$355 = Object.create(null); - const cyclic_import_test$356 = Object.create(null); - const sub$356 = Object.create(null); - const cyclic_import_test$357 = Object.create(null); - const sub$357 = Object.create(null); - const cyclic_import_test$358 = Object.create(null); - const sub$358 = Object.create(null); - const cyclic_import_test$359 = Object.create(null); - const sub$359 = Object.create(null); - const cyclic_import_test$360 = Object.create(null); - const sub$360 = Object.create(null); - const cyclic_import_test$361 = Object.create(null); - const sub$361 = Object.create(null); - const cyclic_import_test$362 = Object.create(null); - const sub$362 = Object.create(null); - const cyclic_import_test$363 = Object.create(null); - const sub$363 = Object.create(null); - const cyclic_import_test$364 = Object.create(null); - const sub$364 = Object.create(null); - const cyclic_import_test$365 = Object.create(null); - const sub$365 = Object.create(null); - const cyclic_import_test$366 = Object.create(null); - const sub$366 = Object.create(null); - const cyclic_import_test$367 = Object.create(null); - const sub$367 = Object.create(null); - const cyclic_import_test$368 = Object.create(null); - const sub$368 = Object.create(null); - const cyclic_import_test$369 = Object.create(null); - const sub$369 = Object.create(null); - const cyclic_import_test$370 = Object.create(null); - const sub$370 = Object.create(null); - const cyclic_import_test$371 = Object.create(null); - const sub$371 = Object.create(null); - const cyclic_import_test$372 = Object.create(null); - const sub$372 = Object.create(null); - const cyclic_import_test$373 = Object.create(null); - const sub$373 = Object.create(null); - const cyclic_import_test$374 = Object.create(null); - const sub$374 = Object.create(null); - const cyclic_import_test$375 = Object.create(null); - const sub$375 = Object.create(null); - const cyclic_import_test$376 = Object.create(null); - const sub$376 = Object.create(null); - const cyclic_import_test$377 = Object.create(null); - const sub$377 = Object.create(null); - const cyclic_import_test$378 = Object.create(null); - const sub$378 = Object.create(null); - const cyclic_import_test$379 = Object.create(null); - const sub$379 = Object.create(null); - const cyclic_import_test$380 = Object.create(null); - const sub$380 = Object.create(null); - const cyclic_import_test$381 = Object.create(null); - const sub$381 = Object.create(null); - const cyclic_import_test$382 = Object.create(null); - const sub$382 = Object.create(null); - const cyclic_import_test$383 = Object.create(null); - const sub$383 = Object.create(null); - const cyclic_import_test$384 = Object.create(null); - const sub$384 = Object.create(null); - const cyclic_import_test$385 = Object.create(null); - const sub$385 = Object.create(null); - const cyclic_import_test$386 = Object.create(null); - const sub$386 = Object.create(null); - const cyclic_import_test$387 = Object.create(null); - const sub$387 = Object.create(null); - const cyclic_import_test$388 = Object.create(null); - const sub$388 = Object.create(null); - const cyclic_import_test$389 = Object.create(null); - const sub$389 = Object.create(null); - const cyclic_import_test$390 = Object.create(null); - const sub$390 = Object.create(null); - const cyclic_import_test$391 = Object.create(null); - const sub$391 = Object.create(null); - const cyclic_import_test$392 = Object.create(null); - const sub$392 = Object.create(null); - const cyclic_import_test$393 = Object.create(null); - const sub$393 = Object.create(null); - const cyclic_import_test$394 = Object.create(null); - const sub$394 = Object.create(null); - const cyclic_import_test$395 = Object.create(null); - const sub$395 = Object.create(null); - const cyclic_import_test$396 = Object.create(null); - const sub$396 = Object.create(null); - const cyclic_import_test$397 = Object.create(null); - const sub$397 = Object.create(null); - const cyclic_import_test$398 = Object.create(null); - const sub$398 = Object.create(null); - const cyclic_import_test$399 = Object.create(null); - const sub$399 = Object.create(null); - const cyclic_import_test$400 = Object.create(null); - const sub$400 = Object.create(null); - const cyclic_import_test$401 = Object.create(null); - const sub$401 = Object.create(null); - const cyclic_import_test$402 = Object.create(null); - const sub$402 = Object.create(null); - const cyclic_import_test$403 = Object.create(null); - const sub$403 = Object.create(null); - const cyclic_import_test$404 = Object.create(null); - const sub$404 = Object.create(null); - const cyclic_import_test$405 = Object.create(null); - const sub$405 = Object.create(null); - const cyclic_import_test$406 = Object.create(null); - const sub$406 = Object.create(null); - const cyclic_import_test$407 = Object.create(null); - const sub$407 = Object.create(null); - const cyclic_import_test$408 = Object.create(null); - const sub$408 = Object.create(null); - const cyclic_import_test$409 = Object.create(null); - const sub$409 = Object.create(null); - const cyclic_import_test$410 = Object.create(null); - const sub$410 = Object.create(null); - const cyclic_import_test$411 = Object.create(null); - const sub$411 = Object.create(null); - const cyclic_import_test$412 = Object.create(null); - const sub$412 = Object.create(null); - const cyclic_import_test$413 = Object.create(null); - const sub$413 = Object.create(null); - const cyclic_import_test$414 = Object.create(null); - const sub$414 = Object.create(null); - const cyclic_import_test$415 = Object.create(null); - const sub$415 = Object.create(null); - const cyclic_import_test$416 = Object.create(null); - const sub$416 = Object.create(null); - const cyclic_import_test$417 = Object.create(null); - const sub$417 = Object.create(null); - const cyclic_import_test$418 = Object.create(null); - const sub$418 = Object.create(null); - const cyclic_import_test$419 = Object.create(null); - const sub$419 = Object.create(null); - const cyclic_import_test$420 = Object.create(null); - const sub$420 = Object.create(null); - const cyclic_import_test$421 = Object.create(null); - const sub$421 = Object.create(null); - const cyclic_import_test$422 = Object.create(null); - const sub$422 = Object.create(null); - const cyclic_import_test$423 = Object.create(null); - const sub$423 = Object.create(null); - const cyclic_import_test$424 = Object.create(null); - const sub$424 = Object.create(null); - const cyclic_import_test$425 = Object.create(null); - const sub$425 = Object.create(null); - const cyclic_import_test$426 = Object.create(null); - const sub$426 = Object.create(null); - const cyclic_import_test$427 = Object.create(null); - const sub$427 = Object.create(null); - const cyclic_import_test$428 = Object.create(null); - const sub$428 = Object.create(null); - const cyclic_import_test$429 = Object.create(null); - const sub$429 = Object.create(null); - const cyclic_import_test$430 = Object.create(null); - const sub$430 = Object.create(null); - const cyclic_import_test$431 = Object.create(null); - const sub$431 = Object.create(null); - const cyclic_import_test$432 = Object.create(null); - const sub$432 = Object.create(null); - const cyclic_import_test$433 = Object.create(null); - const sub$433 = Object.create(null); - const cyclic_import_test$434 = Object.create(null); - const sub$434 = Object.create(null); - const cyclic_import_test$435 = Object.create(null); - const sub$435 = Object.create(null); - const cyclic_import_test$436 = Object.create(null); - const sub$436 = Object.create(null); - const cyclic_import_test$437 = Object.create(null); - const sub$437 = Object.create(null); - const cyclic_import_test$438 = Object.create(null); - const sub$438 = Object.create(null); - const cyclic_import_test$439 = Object.create(null); - const sub$439 = Object.create(null); - const cyclic_import_test$440 = Object.create(null); - const sub$440 = Object.create(null); - const cyclic_import_test$441 = Object.create(null); - const sub$441 = Object.create(null); - const cyclic_import_test$442 = Object.create(null); - const sub$442 = Object.create(null); - const cyclic_import_test$443 = Object.create(null); - const sub$443 = Object.create(null); - const cyclic_import_test$444 = Object.create(null); - const sub$444 = Object.create(null); - const cyclic_import_test$445 = Object.create(null); - const sub$445 = Object.create(null); - const cyclic_import_test$446 = Object.create(null); - const sub$446 = Object.create(null); - const cyclic_import_test$447 = Object.create(null); - const sub$447 = Object.create(null); - const cyclic_import_test$448 = Object.create(null); - const sub$448 = Object.create(null); - const cyclic_import_test$449 = Object.create(null); - const sub$449 = Object.create(null); - const cyclic_import_test$450 = Object.create(null); - const sub$450 = Object.create(null); - const cyclic_import_test$451 = Object.create(null); - const sub$451 = Object.create(null); - const cyclic_import_test$452 = Object.create(null); - const sub$452 = Object.create(null); - const cyclic_import_test$453 = Object.create(null); - const sub$453 = Object.create(null); - const cyclic_import_test$454 = Object.create(null); - const sub$454 = Object.create(null); - const cyclic_import_test$455 = Object.create(null); - const sub$455 = Object.create(null); - const cyclic_import_test$456 = Object.create(null); - const sub$456 = Object.create(null); - const cyclic_import_test$457 = Object.create(null); - const sub$457 = Object.create(null); - const cyclic_import_test$458 = Object.create(null); - const sub$458 = Object.create(null); - const cyclic_import_test$459 = Object.create(null); - const sub$459 = Object.create(null); - const cyclic_import_test$460 = Object.create(null); - const sub$460 = Object.create(null); - const cyclic_import_test$461 = Object.create(null); - const sub$461 = Object.create(null); - const cyclic_import_test$462 = Object.create(null); - const sub$462 = Object.create(null); - const cyclic_import_test$463 = Object.create(null); - const sub$463 = Object.create(null); - const cyclic_import_test$464 = Object.create(null); - const sub$464 = Object.create(null); - const cyclic_import_test$465 = Object.create(null); - const sub$465 = Object.create(null); - const cyclic_import_test$466 = Object.create(null); - const sub$466 = Object.create(null); - const cyclic_import_test$467 = Object.create(null); - const sub$467 = Object.create(null); - const cyclic_import_test$468 = Object.create(null); - const sub$468 = Object.create(null); - const cyclic_import_test$469 = Object.create(null); - const sub$469 = Object.create(null); - const cyclic_import_test$470 = Object.create(null); - const sub$470 = Object.create(null); - const cyclic_import_test$471 = Object.create(null); - const sub$471 = Object.create(null); - const cyclic_import_test$472 = Object.create(null); - const sub$472 = Object.create(null); - const cyclic_import_test$473 = Object.create(null); - const sub$473 = Object.create(null); - const cyclic_import_test$474 = Object.create(null); - const sub$474 = Object.create(null); - const cyclic_import_test$475 = Object.create(null); - const sub$475 = Object.create(null); - const cyclic_import_test$476 = Object.create(null); - const sub$476 = Object.create(null); - const cyclic_import_test$477 = Object.create(null); - const sub$477 = Object.create(null); - const cyclic_import_test$478 = Object.create(null); - const sub$478 = Object.create(null); - const cyclic_import_test$479 = Object.create(null); - const sub$479 = Object.create(null); - const cyclic_import_test$480 = Object.create(null); - const sub$480 = Object.create(null); - const cyclic_import_test$481 = Object.create(null); - const sub$481 = Object.create(null); - const cyclic_import_test$482 = Object.create(null); - const sub$482 = Object.create(null); - const cyclic_import_test$483 = Object.create(null); - const sub$483 = Object.create(null); - const cyclic_import_test$484 = Object.create(null); - const sub$484 = Object.create(null); - const cyclic_import_test$485 = Object.create(null); - const sub$485 = Object.create(null); - const cyclic_import_test$486 = Object.create(null); - const sub$486 = Object.create(null); - const cyclic_import_test$487 = Object.create(null); - const sub$487 = Object.create(null); - const cyclic_import_test$488 = Object.create(null); - const sub$488 = Object.create(null); - const cyclic_import_test$489 = Object.create(null); - const sub$489 = Object.create(null); - const cyclic_import_test$490 = Object.create(null); - const sub$490 = Object.create(null); - const cyclic_import_test$491 = Object.create(null); - const sub$491 = Object.create(null); - const cyclic_import_test$492 = Object.create(null); - const sub$492 = Object.create(null); - const cyclic_import_test$493 = Object.create(null); - const sub$493 = Object.create(null); - const cyclic_import_test$494 = Object.create(null); - const sub$494 = Object.create(null); - const cyclic_import_test$495 = Object.create(null); - const sub$495 = Object.create(null); - const cyclic_import_test$496 = Object.create(null); - const sub$496 = Object.create(null); - const cyclic_import_test$497 = Object.create(null); - const sub$497 = Object.create(null); - const cyclic_import_test$498 = Object.create(null); - const sub$498 = Object.create(null); - const cyclic_import_test$499 = Object.create(null); - const sub$499 = Object.create(null); - const cyclic_import_test$500 = Object.create(null); - const sub$500 = Object.create(null); - const cyclic_import_test$501 = Object.create(null); - const sub$501 = Object.create(null); - const cyclic_import_test$502 = Object.create(null); - const sub$502 = Object.create(null); - const cyclic_import_test$503 = Object.create(null); - const sub$503 = Object.create(null); - const cyclic_import_test$504 = Object.create(null); - const sub$504 = Object.create(null); - const cyclic_import_test$505 = Object.create(null); - const sub$505 = Object.create(null); - const cyclic_import_test$506 = Object.create(null); - const sub$506 = Object.create(null); - const cyclic_import_test$507 = Object.create(null); - const sub$507 = Object.create(null); - const cyclic_import_test$508 = Object.create(null); - const sub$508 = Object.create(null); - const cyclic_import_test$509 = Object.create(null); - const sub$509 = Object.create(null); - const cyclic_import_test$510 = Object.create(null); - const sub$510 = Object.create(null); - const cyclic_import_test$511 = Object.create(null); - const sub$511 = Object.create(null); - const cyclic_import_test$512 = Object.create(null); - const sub$512 = Object.create(null); - const cyclic_import_test$513 = Object.create(null); - const sub$513 = Object.create(null); - const cyclic_import_test$514 = Object.create(null); - const sub$514 = Object.create(null); - const cyclic_import_test$515 = Object.create(null); - const sub$515 = Object.create(null); - const cyclic_import_test$516 = Object.create(null); - const sub$516 = Object.create(null); - const cyclic_import_test$517 = Object.create(null); - const sub$517 = Object.create(null); - const cyclic_import_test$518 = Object.create(null); - const sub$518 = Object.create(null); - const cyclic_import_test$519 = Object.create(null); - const sub$519 = Object.create(null); - const cyclic_import_test$520 = Object.create(null); - const sub$520 = Object.create(null); - const cyclic_import_test$521 = Object.create(null); - const sub$521 = Object.create(null); - const cyclic_import_test$522 = Object.create(null); - const sub$522 = Object.create(null); - const cyclic_import_test$523 = Object.create(null); - const sub$523 = Object.create(null); - const cyclic_import_test$524 = Object.create(null); - const sub$524 = Object.create(null); - const cyclic_import_test$525 = Object.create(null); - const sub$525 = Object.create(null); - const cyclic_import_test$526 = Object.create(null); - const sub$526 = Object.create(null); - const cyclic_import_test$527 = Object.create(null); - const sub$527 = Object.create(null); - const cyclic_import_test$528 = Object.create(null); - const sub$528 = Object.create(null); - const cyclic_import_test$529 = Object.create(null); - const sub$529 = Object.create(null); - const cyclic_import_test$530 = Object.create(null); - const sub$530 = Object.create(null); - const cyclic_import_test$531 = Object.create(null); - const sub$531 = Object.create(null); - const cyclic_import_test$532 = Object.create(null); - const sub$532 = Object.create(null); - const cyclic_import_test$533 = Object.create(null); - const sub$533 = Object.create(null); - const cyclic_import_test$534 = Object.create(null); - const sub$534 = Object.create(null); - const cyclic_import_test$535 = Object.create(null); - const sub$535 = Object.create(null); - const cyclic_import_test$536 = Object.create(null); - const sub$536 = Object.create(null); - const cyclic_import_test$537 = Object.create(null); - const sub$537 = Object.create(null); - const cyclic_import_test$538 = Object.create(null); - const sub$538 = Object.create(null); - const cyclic_import_test$539 = Object.create(null); - const sub$539 = Object.create(null); - const cyclic_import_test$540 = Object.create(null); - const sub$540 = Object.create(null); - const cyclic_import_test$541 = Object.create(null); - const sub$541 = Object.create(null); - const cyclic_import_test$542 = Object.create(null); - const sub$542 = Object.create(null); - const cyclic_import_test$543 = Object.create(null); - const sub$543 = Object.create(null); - const cyclic_import_test$544 = Object.create(null); - const sub$544 = Object.create(null); - const cyclic_import_test$545 = Object.create(null); - const sub$545 = Object.create(null); - const cyclic_import_test$546 = Object.create(null); - const sub$546 = Object.create(null); - const cyclic_import_test$547 = Object.create(null); - const sub$547 = Object.create(null); - const cyclic_import_test$548 = Object.create(null); - const sub$548 = Object.create(null); - const cyclic_import_test$549 = Object.create(null); - const sub$549 = Object.create(null); - const cyclic_import_test$550 = Object.create(null); - const sub$550 = Object.create(null); - const cyclic_import_test$551 = Object.create(null); - const sub$551 = Object.create(null); - const cyclic_import_test$552 = Object.create(null); - const sub$552 = Object.create(null); - const cyclic_import_test$553 = Object.create(null); - const sub$553 = Object.create(null); - const cyclic_import_test$554 = Object.create(null); - const sub$554 = Object.create(null); - const cyclic_import_test$555 = Object.create(null); - const sub$555 = Object.create(null); - const cyclic_import_test$556 = Object.create(null); - const sub$556 = Object.create(null); - const cyclic_import_test$557 = Object.create(null); - const sub$557 = Object.create(null); - const cyclic_import_test$558 = Object.create(null); - const sub$558 = Object.create(null); - const cyclic_import_test$559 = Object.create(null); - const sub$559 = Object.create(null); - const cyclic_import_test$560 = Object.create(null); - const sub$560 = Object.create(null); - const cyclic_import_test$561 = Object.create(null); - const sub$561 = Object.create(null); - const cyclic_import_test$562 = Object.create(null); - const sub$562 = Object.create(null); - const cyclic_import_test$563 = Object.create(null); - const sub$563 = Object.create(null); - const cyclic_import_test$564 = Object.create(null); - const sub$564 = Object.create(null); - const cyclic_import_test$565 = Object.create(null); - const sub$565 = Object.create(null); - const cyclic_import_test$566 = Object.create(null); - const sub$566 = Object.create(null); - const cyclic_import_test$567 = Object.create(null); - const sub$567 = Object.create(null); - const cyclic_import_test$568 = Object.create(null); - const sub$568 = Object.create(null); - const cyclic_import_test$569 = Object.create(null); - const sub$569 = Object.create(null); - const cyclic_import_test$570 = Object.create(null); - const sub$570 = Object.create(null); - cyclic_import_test$570.value = 42; - cyclic_import_test$570.main = function() { - sub$570.subMain(); - }; - dart.fn(cyclic_import_test$570.main); - sub$570.subMain = function() { - expect$.Expect.equals(42, cyclic_import_test$570.value); - }; - dart.fn(sub$570.subMain); + cyclic_import_test$132.value = 42; + cyclic_import_test$132.main = function() { + sub$132.subMain(); + }; + dart.fn(cyclic_import_test$132.main); + sub$132.subMain = function() { + expect$.Expect.equals(42, cyclic_import_test$132.value); + }; + dart.fn(sub$132.subMain); // Exports: exports.cyclic_import_test = cyclic_import_test; exports.sub = sub; @@ -47038,882 +46200,6 @@ dart_library.library('cyclic_import_test', null, /* Imports */[ exports.sub = sub$131; exports.cyclic_import_test = cyclic_import_test$132; exports.sub = sub$132; - exports.cyclic_import_test = cyclic_import_test$133; - exports.sub = sub$133; - exports.cyclic_import_test = cyclic_import_test$134; - exports.sub = sub$134; - exports.cyclic_import_test = cyclic_import_test$135; - exports.sub = sub$135; - exports.cyclic_import_test = cyclic_import_test$136; - exports.sub = sub$136; - exports.cyclic_import_test = cyclic_import_test$137; - exports.sub = sub$137; - exports.cyclic_import_test = cyclic_import_test$138; - exports.sub = sub$138; - exports.cyclic_import_test = cyclic_import_test$139; - exports.sub = sub$139; - exports.cyclic_import_test = cyclic_import_test$140; - exports.sub = sub$140; - exports.cyclic_import_test = cyclic_import_test$141; - exports.sub = sub$141; - exports.cyclic_import_test = cyclic_import_test$142; - exports.sub = sub$142; - exports.cyclic_import_test = cyclic_import_test$143; - exports.sub = sub$143; - exports.cyclic_import_test = cyclic_import_test$144; - exports.sub = sub$144; - exports.cyclic_import_test = cyclic_import_test$145; - exports.sub = sub$145; - exports.cyclic_import_test = cyclic_import_test$146; - exports.sub = sub$146; - exports.cyclic_import_test = cyclic_import_test$147; - exports.sub = sub$147; - exports.cyclic_import_test = cyclic_import_test$148; - exports.sub = sub$148; - exports.cyclic_import_test = cyclic_import_test$149; - exports.sub = sub$149; - exports.cyclic_import_test = cyclic_import_test$150; - exports.sub = sub$150; - exports.cyclic_import_test = cyclic_import_test$151; - exports.sub = sub$151; - exports.cyclic_import_test = cyclic_import_test$152; - exports.sub = sub$152; - exports.cyclic_import_test = cyclic_import_test$153; - exports.sub = sub$153; - exports.cyclic_import_test = cyclic_import_test$154; - exports.sub = sub$154; - exports.cyclic_import_test = cyclic_import_test$155; - exports.sub = sub$155; - exports.cyclic_import_test = cyclic_import_test$156; - exports.sub = sub$156; - exports.cyclic_import_test = cyclic_import_test$157; - exports.sub = sub$157; - exports.cyclic_import_test = cyclic_import_test$158; - exports.sub = sub$158; - exports.cyclic_import_test = cyclic_import_test$159; - exports.sub = sub$159; - exports.cyclic_import_test = cyclic_import_test$160; - exports.sub = sub$160; - exports.cyclic_import_test = cyclic_import_test$161; - exports.sub = sub$161; - exports.cyclic_import_test = cyclic_import_test$162; - exports.sub = sub$162; - exports.cyclic_import_test = cyclic_import_test$163; - exports.sub = sub$163; - exports.cyclic_import_test = cyclic_import_test$164; - exports.sub = sub$164; - exports.cyclic_import_test = cyclic_import_test$165; - exports.sub = sub$165; - exports.cyclic_import_test = cyclic_import_test$166; - exports.sub = sub$166; - exports.cyclic_import_test = cyclic_import_test$167; - exports.sub = sub$167; - exports.cyclic_import_test = cyclic_import_test$168; - exports.sub = sub$168; - exports.cyclic_import_test = cyclic_import_test$169; - exports.sub = sub$169; - exports.cyclic_import_test = cyclic_import_test$170; - exports.sub = sub$170; - exports.cyclic_import_test = cyclic_import_test$171; - exports.sub = sub$171; - exports.cyclic_import_test = cyclic_import_test$172; - exports.sub = sub$172; - exports.cyclic_import_test = cyclic_import_test$173; - exports.sub = sub$173; - exports.cyclic_import_test = cyclic_import_test$174; - exports.sub = sub$174; - exports.cyclic_import_test = cyclic_import_test$175; - exports.sub = sub$175; - exports.cyclic_import_test = cyclic_import_test$176; - exports.sub = sub$176; - exports.cyclic_import_test = cyclic_import_test$177; - exports.sub = sub$177; - exports.cyclic_import_test = cyclic_import_test$178; - exports.sub = sub$178; - exports.cyclic_import_test = cyclic_import_test$179; - exports.sub = sub$179; - exports.cyclic_import_test = cyclic_import_test$180; - exports.sub = sub$180; - exports.cyclic_import_test = cyclic_import_test$181; - exports.sub = sub$181; - exports.cyclic_import_test = cyclic_import_test$182; - exports.sub = sub$182; - exports.cyclic_import_test = cyclic_import_test$183; - exports.sub = sub$183; - exports.cyclic_import_test = cyclic_import_test$184; - exports.sub = sub$184; - exports.cyclic_import_test = cyclic_import_test$185; - exports.sub = sub$185; - exports.cyclic_import_test = cyclic_import_test$186; - exports.sub = sub$186; - exports.cyclic_import_test = cyclic_import_test$187; - exports.sub = sub$187; - exports.cyclic_import_test = cyclic_import_test$188; - exports.sub = sub$188; - exports.cyclic_import_test = cyclic_import_test$189; - exports.sub = sub$189; - exports.cyclic_import_test = cyclic_import_test$190; - exports.sub = sub$190; - exports.cyclic_import_test = cyclic_import_test$191; - exports.sub = sub$191; - exports.cyclic_import_test = cyclic_import_test$192; - exports.sub = sub$192; - exports.cyclic_import_test = cyclic_import_test$193; - exports.sub = sub$193; - exports.cyclic_import_test = cyclic_import_test$194; - exports.sub = sub$194; - exports.cyclic_import_test = cyclic_import_test$195; - exports.sub = sub$195; - exports.cyclic_import_test = cyclic_import_test$196; - exports.sub = sub$196; - exports.cyclic_import_test = cyclic_import_test$197; - exports.sub = sub$197; - exports.cyclic_import_test = cyclic_import_test$198; - exports.sub = sub$198; - exports.cyclic_import_test = cyclic_import_test$199; - exports.sub = sub$199; - exports.cyclic_import_test = cyclic_import_test$200; - exports.sub = sub$200; - exports.cyclic_import_test = cyclic_import_test$201; - exports.sub = sub$201; - exports.cyclic_import_test = cyclic_import_test$202; - exports.sub = sub$202; - exports.cyclic_import_test = cyclic_import_test$203; - exports.sub = sub$203; - exports.cyclic_import_test = cyclic_import_test$204; - exports.sub = sub$204; - exports.cyclic_import_test = cyclic_import_test$205; - exports.sub = sub$205; - exports.cyclic_import_test = cyclic_import_test$206; - exports.sub = sub$206; - exports.cyclic_import_test = cyclic_import_test$207; - exports.sub = sub$207; - exports.cyclic_import_test = cyclic_import_test$208; - exports.sub = sub$208; - exports.cyclic_import_test = cyclic_import_test$209; - exports.sub = sub$209; - exports.cyclic_import_test = cyclic_import_test$210; - exports.sub = sub$210; - exports.cyclic_import_test = cyclic_import_test$211; - exports.sub = sub$211; - exports.cyclic_import_test = cyclic_import_test$212; - exports.sub = sub$212; - exports.cyclic_import_test = cyclic_import_test$213; - exports.sub = sub$213; - exports.cyclic_import_test = cyclic_import_test$214; - exports.sub = sub$214; - exports.cyclic_import_test = cyclic_import_test$215; - exports.sub = sub$215; - exports.cyclic_import_test = cyclic_import_test$216; - exports.sub = sub$216; - exports.cyclic_import_test = cyclic_import_test$217; - exports.sub = sub$217; - exports.cyclic_import_test = cyclic_import_test$218; - exports.sub = sub$218; - exports.cyclic_import_test = cyclic_import_test$219; - exports.sub = sub$219; - exports.cyclic_import_test = cyclic_import_test$220; - exports.sub = sub$220; - exports.cyclic_import_test = cyclic_import_test$221; - exports.sub = sub$221; - exports.cyclic_import_test = cyclic_import_test$222; - exports.sub = sub$222; - exports.cyclic_import_test = cyclic_import_test$223; - exports.sub = sub$223; - exports.cyclic_import_test = cyclic_import_test$224; - exports.sub = sub$224; - exports.cyclic_import_test = cyclic_import_test$225; - exports.sub = sub$225; - exports.cyclic_import_test = cyclic_import_test$226; - exports.sub = sub$226; - exports.cyclic_import_test = cyclic_import_test$227; - exports.sub = sub$227; - exports.cyclic_import_test = cyclic_import_test$228; - exports.sub = sub$228; - exports.cyclic_import_test = cyclic_import_test$229; - exports.sub = sub$229; - exports.cyclic_import_test = cyclic_import_test$230; - exports.sub = sub$230; - exports.cyclic_import_test = cyclic_import_test$231; - exports.sub = sub$231; - exports.cyclic_import_test = cyclic_import_test$232; - exports.sub = sub$232; - exports.cyclic_import_test = cyclic_import_test$233; - exports.sub = sub$233; - exports.cyclic_import_test = cyclic_import_test$234; - exports.sub = sub$234; - exports.cyclic_import_test = cyclic_import_test$235; - exports.sub = sub$235; - exports.cyclic_import_test = cyclic_import_test$236; - exports.sub = sub$236; - exports.cyclic_import_test = cyclic_import_test$237; - exports.sub = sub$237; - exports.cyclic_import_test = cyclic_import_test$238; - exports.sub = sub$238; - exports.cyclic_import_test = cyclic_import_test$239; - exports.sub = sub$239; - exports.cyclic_import_test = cyclic_import_test$240; - exports.sub = sub$240; - exports.cyclic_import_test = cyclic_import_test$241; - exports.sub = sub$241; - exports.cyclic_import_test = cyclic_import_test$242; - exports.sub = sub$242; - exports.cyclic_import_test = cyclic_import_test$243; - exports.sub = sub$243; - exports.cyclic_import_test = cyclic_import_test$244; - exports.sub = sub$244; - exports.cyclic_import_test = cyclic_import_test$245; - exports.sub = sub$245; - exports.cyclic_import_test = cyclic_import_test$246; - exports.sub = sub$246; - exports.cyclic_import_test = cyclic_import_test$247; - exports.sub = sub$247; - exports.cyclic_import_test = cyclic_import_test$248; - exports.sub = sub$248; - exports.cyclic_import_test = cyclic_import_test$249; - exports.sub = sub$249; - exports.cyclic_import_test = cyclic_import_test$250; - exports.sub = sub$250; - exports.cyclic_import_test = cyclic_import_test$251; - exports.sub = sub$251; - exports.cyclic_import_test = cyclic_import_test$252; - exports.sub = sub$252; - exports.cyclic_import_test = cyclic_import_test$253; - exports.sub = sub$253; - exports.cyclic_import_test = cyclic_import_test$254; - exports.sub = sub$254; - exports.cyclic_import_test = cyclic_import_test$255; - exports.sub = sub$255; - exports.cyclic_import_test = cyclic_import_test$256; - exports.sub = sub$256; - exports.cyclic_import_test = cyclic_import_test$257; - exports.sub = sub$257; - exports.cyclic_import_test = cyclic_import_test$258; - exports.sub = sub$258; - exports.cyclic_import_test = cyclic_import_test$259; - exports.sub = sub$259; - exports.cyclic_import_test = cyclic_import_test$260; - exports.sub = sub$260; - exports.cyclic_import_test = cyclic_import_test$261; - exports.sub = sub$261; - exports.cyclic_import_test = cyclic_import_test$262; - exports.sub = sub$262; - exports.cyclic_import_test = cyclic_import_test$263; - exports.sub = sub$263; - exports.cyclic_import_test = cyclic_import_test$264; - exports.sub = sub$264; - exports.cyclic_import_test = cyclic_import_test$265; - exports.sub = sub$265; - exports.cyclic_import_test = cyclic_import_test$266; - exports.sub = sub$266; - exports.cyclic_import_test = cyclic_import_test$267; - exports.sub = sub$267; - exports.cyclic_import_test = cyclic_import_test$268; - exports.sub = sub$268; - exports.cyclic_import_test = cyclic_import_test$269; - exports.sub = sub$269; - exports.cyclic_import_test = cyclic_import_test$270; - exports.sub = sub$270; - exports.cyclic_import_test = cyclic_import_test$271; - exports.sub = sub$271; - exports.cyclic_import_test = cyclic_import_test$272; - exports.sub = sub$272; - exports.cyclic_import_test = cyclic_import_test$273; - exports.sub = sub$273; - exports.cyclic_import_test = cyclic_import_test$274; - exports.sub = sub$274; - exports.cyclic_import_test = cyclic_import_test$275; - exports.sub = sub$275; - exports.cyclic_import_test = cyclic_import_test$276; - exports.sub = sub$276; - exports.cyclic_import_test = cyclic_import_test$277; - exports.sub = sub$277; - exports.cyclic_import_test = cyclic_import_test$278; - exports.sub = sub$278; - exports.cyclic_import_test = cyclic_import_test$279; - exports.sub = sub$279; - exports.cyclic_import_test = cyclic_import_test$280; - exports.sub = sub$280; - exports.cyclic_import_test = cyclic_import_test$281; - exports.sub = sub$281; - exports.cyclic_import_test = cyclic_import_test$282; - exports.sub = sub$282; - exports.cyclic_import_test = cyclic_import_test$283; - exports.sub = sub$283; - exports.cyclic_import_test = cyclic_import_test$284; - exports.sub = sub$284; - exports.cyclic_import_test = cyclic_import_test$285; - exports.sub = sub$285; - exports.cyclic_import_test = cyclic_import_test$286; - exports.sub = sub$286; - exports.cyclic_import_test = cyclic_import_test$287; - exports.sub = sub$287; - exports.cyclic_import_test = cyclic_import_test$288; - exports.sub = sub$288; - exports.cyclic_import_test = cyclic_import_test$289; - exports.sub = sub$289; - exports.cyclic_import_test = cyclic_import_test$290; - exports.sub = sub$290; - exports.cyclic_import_test = cyclic_import_test$291; - exports.sub = sub$291; - exports.cyclic_import_test = cyclic_import_test$292; - exports.sub = sub$292; - exports.cyclic_import_test = cyclic_import_test$293; - exports.sub = sub$293; - exports.cyclic_import_test = cyclic_import_test$294; - exports.sub = sub$294; - exports.cyclic_import_test = cyclic_import_test$295; - exports.sub = sub$295; - exports.cyclic_import_test = cyclic_import_test$296; - exports.sub = sub$296; - exports.cyclic_import_test = cyclic_import_test$297; - exports.sub = sub$297; - exports.cyclic_import_test = cyclic_import_test$298; - exports.sub = sub$298; - exports.cyclic_import_test = cyclic_import_test$299; - exports.sub = sub$299; - exports.cyclic_import_test = cyclic_import_test$300; - exports.sub = sub$300; - exports.cyclic_import_test = cyclic_import_test$301; - exports.sub = sub$301; - exports.cyclic_import_test = cyclic_import_test$302; - exports.sub = sub$302; - exports.cyclic_import_test = cyclic_import_test$303; - exports.sub = sub$303; - exports.cyclic_import_test = cyclic_import_test$304; - exports.sub = sub$304; - exports.cyclic_import_test = cyclic_import_test$305; - exports.sub = sub$305; - exports.cyclic_import_test = cyclic_import_test$306; - exports.sub = sub$306; - exports.cyclic_import_test = cyclic_import_test$307; - exports.sub = sub$307; - exports.cyclic_import_test = cyclic_import_test$308; - exports.sub = sub$308; - exports.cyclic_import_test = cyclic_import_test$309; - exports.sub = sub$309; - exports.cyclic_import_test = cyclic_import_test$310; - exports.sub = sub$310; - exports.cyclic_import_test = cyclic_import_test$311; - exports.sub = sub$311; - exports.cyclic_import_test = cyclic_import_test$312; - exports.sub = sub$312; - exports.cyclic_import_test = cyclic_import_test$313; - exports.sub = sub$313; - exports.cyclic_import_test = cyclic_import_test$314; - exports.sub = sub$314; - exports.cyclic_import_test = cyclic_import_test$315; - exports.sub = sub$315; - exports.cyclic_import_test = cyclic_import_test$316; - exports.sub = sub$316; - exports.cyclic_import_test = cyclic_import_test$317; - exports.sub = sub$317; - exports.cyclic_import_test = cyclic_import_test$318; - exports.sub = sub$318; - exports.cyclic_import_test = cyclic_import_test$319; - exports.sub = sub$319; - exports.cyclic_import_test = cyclic_import_test$320; - exports.sub = sub$320; - exports.cyclic_import_test = cyclic_import_test$321; - exports.sub = sub$321; - exports.cyclic_import_test = cyclic_import_test$322; - exports.sub = sub$322; - exports.cyclic_import_test = cyclic_import_test$323; - exports.sub = sub$323; - exports.cyclic_import_test = cyclic_import_test$324; - exports.sub = sub$324; - exports.cyclic_import_test = cyclic_import_test$325; - exports.sub = sub$325; - exports.cyclic_import_test = cyclic_import_test$326; - exports.sub = sub$326; - exports.cyclic_import_test = cyclic_import_test$327; - exports.sub = sub$327; - exports.cyclic_import_test = cyclic_import_test$328; - exports.sub = sub$328; - exports.cyclic_import_test = cyclic_import_test$329; - exports.sub = sub$329; - exports.cyclic_import_test = cyclic_import_test$330; - exports.sub = sub$330; - exports.cyclic_import_test = cyclic_import_test$331; - exports.sub = sub$331; - exports.cyclic_import_test = cyclic_import_test$332; - exports.sub = sub$332; - exports.cyclic_import_test = cyclic_import_test$333; - exports.sub = sub$333; - exports.cyclic_import_test = cyclic_import_test$334; - exports.sub = sub$334; - exports.cyclic_import_test = cyclic_import_test$335; - exports.sub = sub$335; - exports.cyclic_import_test = cyclic_import_test$336; - exports.sub = sub$336; - exports.cyclic_import_test = cyclic_import_test$337; - exports.sub = sub$337; - exports.cyclic_import_test = cyclic_import_test$338; - exports.sub = sub$338; - exports.cyclic_import_test = cyclic_import_test$339; - exports.sub = sub$339; - exports.cyclic_import_test = cyclic_import_test$340; - exports.sub = sub$340; - exports.cyclic_import_test = cyclic_import_test$341; - exports.sub = sub$341; - exports.cyclic_import_test = cyclic_import_test$342; - exports.sub = sub$342; - exports.cyclic_import_test = cyclic_import_test$343; - exports.sub = sub$343; - exports.cyclic_import_test = cyclic_import_test$344; - exports.sub = sub$344; - exports.cyclic_import_test = cyclic_import_test$345; - exports.sub = sub$345; - exports.cyclic_import_test = cyclic_import_test$346; - exports.sub = sub$346; - exports.cyclic_import_test = cyclic_import_test$347; - exports.sub = sub$347; - exports.cyclic_import_test = cyclic_import_test$348; - exports.sub = sub$348; - exports.cyclic_import_test = cyclic_import_test$349; - exports.sub = sub$349; - exports.cyclic_import_test = cyclic_import_test$350; - exports.sub = sub$350; - exports.cyclic_import_test = cyclic_import_test$351; - exports.sub = sub$351; - exports.cyclic_import_test = cyclic_import_test$352; - exports.sub = sub$352; - exports.cyclic_import_test = cyclic_import_test$353; - exports.sub = sub$353; - exports.cyclic_import_test = cyclic_import_test$354; - exports.sub = sub$354; - exports.cyclic_import_test = cyclic_import_test$355; - exports.sub = sub$355; - exports.cyclic_import_test = cyclic_import_test$356; - exports.sub = sub$356; - exports.cyclic_import_test = cyclic_import_test$357; - exports.sub = sub$357; - exports.cyclic_import_test = cyclic_import_test$358; - exports.sub = sub$358; - exports.cyclic_import_test = cyclic_import_test$359; - exports.sub = sub$359; - exports.cyclic_import_test = cyclic_import_test$360; - exports.sub = sub$360; - exports.cyclic_import_test = cyclic_import_test$361; - exports.sub = sub$361; - exports.cyclic_import_test = cyclic_import_test$362; - exports.sub = sub$362; - exports.cyclic_import_test = cyclic_import_test$363; - exports.sub = sub$363; - exports.cyclic_import_test = cyclic_import_test$364; - exports.sub = sub$364; - exports.cyclic_import_test = cyclic_import_test$365; - exports.sub = sub$365; - exports.cyclic_import_test = cyclic_import_test$366; - exports.sub = sub$366; - exports.cyclic_import_test = cyclic_import_test$367; - exports.sub = sub$367; - exports.cyclic_import_test = cyclic_import_test$368; - exports.sub = sub$368; - exports.cyclic_import_test = cyclic_import_test$369; - exports.sub = sub$369; - exports.cyclic_import_test = cyclic_import_test$370; - exports.sub = sub$370; - exports.cyclic_import_test = cyclic_import_test$371; - exports.sub = sub$371; - exports.cyclic_import_test = cyclic_import_test$372; - exports.sub = sub$372; - exports.cyclic_import_test = cyclic_import_test$373; - exports.sub = sub$373; - exports.cyclic_import_test = cyclic_import_test$374; - exports.sub = sub$374; - exports.cyclic_import_test = cyclic_import_test$375; - exports.sub = sub$375; - exports.cyclic_import_test = cyclic_import_test$376; - exports.sub = sub$376; - exports.cyclic_import_test = cyclic_import_test$377; - exports.sub = sub$377; - exports.cyclic_import_test = cyclic_import_test$378; - exports.sub = sub$378; - exports.cyclic_import_test = cyclic_import_test$379; - exports.sub = sub$379; - exports.cyclic_import_test = cyclic_import_test$380; - exports.sub = sub$380; - exports.cyclic_import_test = cyclic_import_test$381; - exports.sub = sub$381; - exports.cyclic_import_test = cyclic_import_test$382; - exports.sub = sub$382; - exports.cyclic_import_test = cyclic_import_test$383; - exports.sub = sub$383; - exports.cyclic_import_test = cyclic_import_test$384; - exports.sub = sub$384; - exports.cyclic_import_test = cyclic_import_test$385; - exports.sub = sub$385; - exports.cyclic_import_test = cyclic_import_test$386; - exports.sub = sub$386; - exports.cyclic_import_test = cyclic_import_test$387; - exports.sub = sub$387; - exports.cyclic_import_test = cyclic_import_test$388; - exports.sub = sub$388; - exports.cyclic_import_test = cyclic_import_test$389; - exports.sub = sub$389; - exports.cyclic_import_test = cyclic_import_test$390; - exports.sub = sub$390; - exports.cyclic_import_test = cyclic_import_test$391; - exports.sub = sub$391; - exports.cyclic_import_test = cyclic_import_test$392; - exports.sub = sub$392; - exports.cyclic_import_test = cyclic_import_test$393; - exports.sub = sub$393; - exports.cyclic_import_test = cyclic_import_test$394; - exports.sub = sub$394; - exports.cyclic_import_test = cyclic_import_test$395; - exports.sub = sub$395; - exports.cyclic_import_test = cyclic_import_test$396; - exports.sub = sub$396; - exports.cyclic_import_test = cyclic_import_test$397; - exports.sub = sub$397; - exports.cyclic_import_test = cyclic_import_test$398; - exports.sub = sub$398; - exports.cyclic_import_test = cyclic_import_test$399; - exports.sub = sub$399; - exports.cyclic_import_test = cyclic_import_test$400; - exports.sub = sub$400; - exports.cyclic_import_test = cyclic_import_test$401; - exports.sub = sub$401; - exports.cyclic_import_test = cyclic_import_test$402; - exports.sub = sub$402; - exports.cyclic_import_test = cyclic_import_test$403; - exports.sub = sub$403; - exports.cyclic_import_test = cyclic_import_test$404; - exports.sub = sub$404; - exports.cyclic_import_test = cyclic_import_test$405; - exports.sub = sub$405; - exports.cyclic_import_test = cyclic_import_test$406; - exports.sub = sub$406; - exports.cyclic_import_test = cyclic_import_test$407; - exports.sub = sub$407; - exports.cyclic_import_test = cyclic_import_test$408; - exports.sub = sub$408; - exports.cyclic_import_test = cyclic_import_test$409; - exports.sub = sub$409; - exports.cyclic_import_test = cyclic_import_test$410; - exports.sub = sub$410; - exports.cyclic_import_test = cyclic_import_test$411; - exports.sub = sub$411; - exports.cyclic_import_test = cyclic_import_test$412; - exports.sub = sub$412; - exports.cyclic_import_test = cyclic_import_test$413; - exports.sub = sub$413; - exports.cyclic_import_test = cyclic_import_test$414; - exports.sub = sub$414; - exports.cyclic_import_test = cyclic_import_test$415; - exports.sub = sub$415; - exports.cyclic_import_test = cyclic_import_test$416; - exports.sub = sub$416; - exports.cyclic_import_test = cyclic_import_test$417; - exports.sub = sub$417; - exports.cyclic_import_test = cyclic_import_test$418; - exports.sub = sub$418; - exports.cyclic_import_test = cyclic_import_test$419; - exports.sub = sub$419; - exports.cyclic_import_test = cyclic_import_test$420; - exports.sub = sub$420; - exports.cyclic_import_test = cyclic_import_test$421; - exports.sub = sub$421; - exports.cyclic_import_test = cyclic_import_test$422; - exports.sub = sub$422; - exports.cyclic_import_test = cyclic_import_test$423; - exports.sub = sub$423; - exports.cyclic_import_test = cyclic_import_test$424; - exports.sub = sub$424; - exports.cyclic_import_test = cyclic_import_test$425; - exports.sub = sub$425; - exports.cyclic_import_test = cyclic_import_test$426; - exports.sub = sub$426; - exports.cyclic_import_test = cyclic_import_test$427; - exports.sub = sub$427; - exports.cyclic_import_test = cyclic_import_test$428; - exports.sub = sub$428; - exports.cyclic_import_test = cyclic_import_test$429; - exports.sub = sub$429; - exports.cyclic_import_test = cyclic_import_test$430; - exports.sub = sub$430; - exports.cyclic_import_test = cyclic_import_test$431; - exports.sub = sub$431; - exports.cyclic_import_test = cyclic_import_test$432; - exports.sub = sub$432; - exports.cyclic_import_test = cyclic_import_test$433; - exports.sub = sub$433; - exports.cyclic_import_test = cyclic_import_test$434; - exports.sub = sub$434; - exports.cyclic_import_test = cyclic_import_test$435; - exports.sub = sub$435; - exports.cyclic_import_test = cyclic_import_test$436; - exports.sub = sub$436; - exports.cyclic_import_test = cyclic_import_test$437; - exports.sub = sub$437; - exports.cyclic_import_test = cyclic_import_test$438; - exports.sub = sub$438; - exports.cyclic_import_test = cyclic_import_test$439; - exports.sub = sub$439; - exports.cyclic_import_test = cyclic_import_test$440; - exports.sub = sub$440; - exports.cyclic_import_test = cyclic_import_test$441; - exports.sub = sub$441; - exports.cyclic_import_test = cyclic_import_test$442; - exports.sub = sub$442; - exports.cyclic_import_test = cyclic_import_test$443; - exports.sub = sub$443; - exports.cyclic_import_test = cyclic_import_test$444; - exports.sub = sub$444; - exports.cyclic_import_test = cyclic_import_test$445; - exports.sub = sub$445; - exports.cyclic_import_test = cyclic_import_test$446; - exports.sub = sub$446; - exports.cyclic_import_test = cyclic_import_test$447; - exports.sub = sub$447; - exports.cyclic_import_test = cyclic_import_test$448; - exports.sub = sub$448; - exports.cyclic_import_test = cyclic_import_test$449; - exports.sub = sub$449; - exports.cyclic_import_test = cyclic_import_test$450; - exports.sub = sub$450; - exports.cyclic_import_test = cyclic_import_test$451; - exports.sub = sub$451; - exports.cyclic_import_test = cyclic_import_test$452; - exports.sub = sub$452; - exports.cyclic_import_test = cyclic_import_test$453; - exports.sub = sub$453; - exports.cyclic_import_test = cyclic_import_test$454; - exports.sub = sub$454; - exports.cyclic_import_test = cyclic_import_test$455; - exports.sub = sub$455; - exports.cyclic_import_test = cyclic_import_test$456; - exports.sub = sub$456; - exports.cyclic_import_test = cyclic_import_test$457; - exports.sub = sub$457; - exports.cyclic_import_test = cyclic_import_test$458; - exports.sub = sub$458; - exports.cyclic_import_test = cyclic_import_test$459; - exports.sub = sub$459; - exports.cyclic_import_test = cyclic_import_test$460; - exports.sub = sub$460; - exports.cyclic_import_test = cyclic_import_test$461; - exports.sub = sub$461; - exports.cyclic_import_test = cyclic_import_test$462; - exports.sub = sub$462; - exports.cyclic_import_test = cyclic_import_test$463; - exports.sub = sub$463; - exports.cyclic_import_test = cyclic_import_test$464; - exports.sub = sub$464; - exports.cyclic_import_test = cyclic_import_test$465; - exports.sub = sub$465; - exports.cyclic_import_test = cyclic_import_test$466; - exports.sub = sub$466; - exports.cyclic_import_test = cyclic_import_test$467; - exports.sub = sub$467; - exports.cyclic_import_test = cyclic_import_test$468; - exports.sub = sub$468; - exports.cyclic_import_test = cyclic_import_test$469; - exports.sub = sub$469; - exports.cyclic_import_test = cyclic_import_test$470; - exports.sub = sub$470; - exports.cyclic_import_test = cyclic_import_test$471; - exports.sub = sub$471; - exports.cyclic_import_test = cyclic_import_test$472; - exports.sub = sub$472; - exports.cyclic_import_test = cyclic_import_test$473; - exports.sub = sub$473; - exports.cyclic_import_test = cyclic_import_test$474; - exports.sub = sub$474; - exports.cyclic_import_test = cyclic_import_test$475; - exports.sub = sub$475; - exports.cyclic_import_test = cyclic_import_test$476; - exports.sub = sub$476; - exports.cyclic_import_test = cyclic_import_test$477; - exports.sub = sub$477; - exports.cyclic_import_test = cyclic_import_test$478; - exports.sub = sub$478; - exports.cyclic_import_test = cyclic_import_test$479; - exports.sub = sub$479; - exports.cyclic_import_test = cyclic_import_test$480; - exports.sub = sub$480; - exports.cyclic_import_test = cyclic_import_test$481; - exports.sub = sub$481; - exports.cyclic_import_test = cyclic_import_test$482; - exports.sub = sub$482; - exports.cyclic_import_test = cyclic_import_test$483; - exports.sub = sub$483; - exports.cyclic_import_test = cyclic_import_test$484; - exports.sub = sub$484; - exports.cyclic_import_test = cyclic_import_test$485; - exports.sub = sub$485; - exports.cyclic_import_test = cyclic_import_test$486; - exports.sub = sub$486; - exports.cyclic_import_test = cyclic_import_test$487; - exports.sub = sub$487; - exports.cyclic_import_test = cyclic_import_test$488; - exports.sub = sub$488; - exports.cyclic_import_test = cyclic_import_test$489; - exports.sub = sub$489; - exports.cyclic_import_test = cyclic_import_test$490; - exports.sub = sub$490; - exports.cyclic_import_test = cyclic_import_test$491; - exports.sub = sub$491; - exports.cyclic_import_test = cyclic_import_test$492; - exports.sub = sub$492; - exports.cyclic_import_test = cyclic_import_test$493; - exports.sub = sub$493; - exports.cyclic_import_test = cyclic_import_test$494; - exports.sub = sub$494; - exports.cyclic_import_test = cyclic_import_test$495; - exports.sub = sub$495; - exports.cyclic_import_test = cyclic_import_test$496; - exports.sub = sub$496; - exports.cyclic_import_test = cyclic_import_test$497; - exports.sub = sub$497; - exports.cyclic_import_test = cyclic_import_test$498; - exports.sub = sub$498; - exports.cyclic_import_test = cyclic_import_test$499; - exports.sub = sub$499; - exports.cyclic_import_test = cyclic_import_test$500; - exports.sub = sub$500; - exports.cyclic_import_test = cyclic_import_test$501; - exports.sub = sub$501; - exports.cyclic_import_test = cyclic_import_test$502; - exports.sub = sub$502; - exports.cyclic_import_test = cyclic_import_test$503; - exports.sub = sub$503; - exports.cyclic_import_test = cyclic_import_test$504; - exports.sub = sub$504; - exports.cyclic_import_test = cyclic_import_test$505; - exports.sub = sub$505; - exports.cyclic_import_test = cyclic_import_test$506; - exports.sub = sub$506; - exports.cyclic_import_test = cyclic_import_test$507; - exports.sub = sub$507; - exports.cyclic_import_test = cyclic_import_test$508; - exports.sub = sub$508; - exports.cyclic_import_test = cyclic_import_test$509; - exports.sub = sub$509; - exports.cyclic_import_test = cyclic_import_test$510; - exports.sub = sub$510; - exports.cyclic_import_test = cyclic_import_test$511; - exports.sub = sub$511; - exports.cyclic_import_test = cyclic_import_test$512; - exports.sub = sub$512; - exports.cyclic_import_test = cyclic_import_test$513; - exports.sub = sub$513; - exports.cyclic_import_test = cyclic_import_test$514; - exports.sub = sub$514; - exports.cyclic_import_test = cyclic_import_test$515; - exports.sub = sub$515; - exports.cyclic_import_test = cyclic_import_test$516; - exports.sub = sub$516; - exports.cyclic_import_test = cyclic_import_test$517; - exports.sub = sub$517; - exports.cyclic_import_test = cyclic_import_test$518; - exports.sub = sub$518; - exports.cyclic_import_test = cyclic_import_test$519; - exports.sub = sub$519; - exports.cyclic_import_test = cyclic_import_test$520; - exports.sub = sub$520; - exports.cyclic_import_test = cyclic_import_test$521; - exports.sub = sub$521; - exports.cyclic_import_test = cyclic_import_test$522; - exports.sub = sub$522; - exports.cyclic_import_test = cyclic_import_test$523; - exports.sub = sub$523; - exports.cyclic_import_test = cyclic_import_test$524; - exports.sub = sub$524; - exports.cyclic_import_test = cyclic_import_test$525; - exports.sub = sub$525; - exports.cyclic_import_test = cyclic_import_test$526; - exports.sub = sub$526; - exports.cyclic_import_test = cyclic_import_test$527; - exports.sub = sub$527; - exports.cyclic_import_test = cyclic_import_test$528; - exports.sub = sub$528; - exports.cyclic_import_test = cyclic_import_test$529; - exports.sub = sub$529; - exports.cyclic_import_test = cyclic_import_test$530; - exports.sub = sub$530; - exports.cyclic_import_test = cyclic_import_test$531; - exports.sub = sub$531; - exports.cyclic_import_test = cyclic_import_test$532; - exports.sub = sub$532; - exports.cyclic_import_test = cyclic_import_test$533; - exports.sub = sub$533; - exports.cyclic_import_test = cyclic_import_test$534; - exports.sub = sub$534; - exports.cyclic_import_test = cyclic_import_test$535; - exports.sub = sub$535; - exports.cyclic_import_test = cyclic_import_test$536; - exports.sub = sub$536; - exports.cyclic_import_test = cyclic_import_test$537; - exports.sub = sub$537; - exports.cyclic_import_test = cyclic_import_test$538; - exports.sub = sub$538; - exports.cyclic_import_test = cyclic_import_test$539; - exports.sub = sub$539; - exports.cyclic_import_test = cyclic_import_test$540; - exports.sub = sub$540; - exports.cyclic_import_test = cyclic_import_test$541; - exports.sub = sub$541; - exports.cyclic_import_test = cyclic_import_test$542; - exports.sub = sub$542; - exports.cyclic_import_test = cyclic_import_test$543; - exports.sub = sub$543; - exports.cyclic_import_test = cyclic_import_test$544; - exports.sub = sub$544; - exports.cyclic_import_test = cyclic_import_test$545; - exports.sub = sub$545; - exports.cyclic_import_test = cyclic_import_test$546; - exports.sub = sub$546; - exports.cyclic_import_test = cyclic_import_test$547; - exports.sub = sub$547; - exports.cyclic_import_test = cyclic_import_test$548; - exports.sub = sub$548; - exports.cyclic_import_test = cyclic_import_test$549; - exports.sub = sub$549; - exports.cyclic_import_test = cyclic_import_test$550; - exports.sub = sub$550; - exports.cyclic_import_test = cyclic_import_test$551; - exports.sub = sub$551; - exports.cyclic_import_test = cyclic_import_test$552; - exports.sub = sub$552; - exports.cyclic_import_test = cyclic_import_test$553; - exports.sub = sub$553; - exports.cyclic_import_test = cyclic_import_test$554; - exports.sub = sub$554; - exports.cyclic_import_test = cyclic_import_test$555; - exports.sub = sub$555; - exports.cyclic_import_test = cyclic_import_test$556; - exports.sub = sub$556; - exports.cyclic_import_test = cyclic_import_test$557; - exports.sub = sub$557; - exports.cyclic_import_test = cyclic_import_test$558; - exports.sub = sub$558; - exports.cyclic_import_test = cyclic_import_test$559; - exports.sub = sub$559; - exports.cyclic_import_test = cyclic_import_test$560; - exports.sub = sub$560; - exports.cyclic_import_test = cyclic_import_test$561; - exports.sub = sub$561; - exports.cyclic_import_test = cyclic_import_test$562; - exports.sub = sub$562; - exports.cyclic_import_test = cyclic_import_test$563; - exports.sub = sub$563; - exports.cyclic_import_test = cyclic_import_test$564; - exports.sub = sub$564; - exports.cyclic_import_test = cyclic_import_test$565; - exports.sub = sub$565; - exports.cyclic_import_test = cyclic_import_test$566; - exports.sub = sub$566; - exports.cyclic_import_test = cyclic_import_test$567; - exports.sub = sub$567; - exports.cyclic_import_test = cyclic_import_test$568; - exports.sub = sub$568; - exports.cyclic_import_test = cyclic_import_test$569; - exports.sub = sub$569; - exports.cyclic_import_test = cyclic_import_test$570; - exports.sub = sub$570; }); dart_library.library('cyclic_metadata_test_01_multi', null, /* Imports */[ 'dart_sdk' @@ -48080,80 +46366,6 @@ dart_library.library('cyclic_type2_test', null, /* Imports */[ // Exports: exports.cyclic_type2_test = cyclic_type2_test; }); -dart_library.library('cyclic_typedef_test_12_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const cyclic_typedef_test_12_multi = Object.create(null); - cyclic_typedef_test_12_multi.A = dart.typedef('A', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_12_multi.Class])); - cyclic_typedef_test_12_multi.B = dart.typedef('B', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_12_multi.A])); - cyclic_typedef_test_12_multi.C = dart.typedef('C', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_12_multi.B])); - cyclic_typedef_test_12_multi.Class = class Class extends core.Object { - Class() { - this.a = null; - } - }; - cyclic_typedef_test_12_multi.testA = function(a) { - }; - dart.fn(cyclic_typedef_test_12_multi.testA, dart.void, [cyclic_typedef_test_12_multi.A]); - cyclic_typedef_test_12_multi.main = function() { - cyclic_typedef_test_12_multi.testA(null); - }; - dart.fn(cyclic_typedef_test_12_multi.main, dart.void, []); - // Exports: - exports.cyclic_typedef_test_12_multi = cyclic_typedef_test_12_multi; -}); -dart_library.library('cyclic_typedef_test_13_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const cyclic_typedef_test_13_multi = Object.create(null); - cyclic_typedef_test_13_multi.A = dart.typedef('A', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_13_multi.Class])); - cyclic_typedef_test_13_multi.B = dart.typedef('B', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_13_multi.A])); - cyclic_typedef_test_13_multi.C = dart.typedef('C', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_13_multi.B])); - cyclic_typedef_test_13_multi.Class$ = dart.generic(T => { - class Class extends core.Object {} - return Class; - }); - cyclic_typedef_test_13_multi.Class = cyclic_typedef_test_13_multi.Class$(); - cyclic_typedef_test_13_multi.testA = function(a) { - }; - dart.fn(cyclic_typedef_test_13_multi.testA, dart.void, [cyclic_typedef_test_13_multi.A]); - cyclic_typedef_test_13_multi.main = function() { - cyclic_typedef_test_13_multi.testA(null); - }; - dart.fn(cyclic_typedef_test_13_multi.main, dart.void, []); - // Exports: - exports.cyclic_typedef_test_13_multi = cyclic_typedef_test_13_multi; -}); -dart_library.library('cyclic_typedef_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const cyclic_typedef_test_none_multi = Object.create(null); - cyclic_typedef_test_none_multi.A = dart.typedef('A', () => dart.functionType(dart.dynamic, [])); - cyclic_typedef_test_none_multi.B = dart.typedef('B', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_none_multi.A])); - cyclic_typedef_test_none_multi.C = dart.typedef('C', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_none_multi.B])); - cyclic_typedef_test_none_multi.Class = class Class extends core.Object {}; - cyclic_typedef_test_none_multi.testA = function(a) { - }; - dart.fn(cyclic_typedef_test_none_multi.testA, dart.void, [cyclic_typedef_test_none_multi.A]); - cyclic_typedef_test_none_multi.main = function() { - cyclic_typedef_test_none_multi.testA(null); - }; - dart.fn(cyclic_typedef_test_none_multi.main, dart.void, []); - // Exports: - exports.cyclic_typedef_test_none_multi = cyclic_typedef_test_none_multi; -}); dart_library.library('cyclic_type_test_00_multi', null, /* Imports */[ 'dart_sdk', 'expect' @@ -48476,6 +46688,80 @@ dart_library.library('cyclic_type_variable_test_none_multi', null, /* Imports */ // Exports: exports.cyclic_type_variable_test_none_multi = cyclic_type_variable_test_none_multi; }); +dart_library.library('cyclic_typedef_test_12_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const cyclic_typedef_test_12_multi = Object.create(null); + cyclic_typedef_test_12_multi.A = dart.typedef('A', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_12_multi.Class])); + cyclic_typedef_test_12_multi.B = dart.typedef('B', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_12_multi.A])); + cyclic_typedef_test_12_multi.C = dart.typedef('C', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_12_multi.B])); + cyclic_typedef_test_12_multi.Class = class Class extends core.Object { + Class() { + this.a = null; + } + }; + cyclic_typedef_test_12_multi.testA = function(a) { + }; + dart.fn(cyclic_typedef_test_12_multi.testA, dart.void, [cyclic_typedef_test_12_multi.A]); + cyclic_typedef_test_12_multi.main = function() { + cyclic_typedef_test_12_multi.testA(null); + }; + dart.fn(cyclic_typedef_test_12_multi.main, dart.void, []); + // Exports: + exports.cyclic_typedef_test_12_multi = cyclic_typedef_test_12_multi; +}); +dart_library.library('cyclic_typedef_test_13_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const cyclic_typedef_test_13_multi = Object.create(null); + cyclic_typedef_test_13_multi.A = dart.typedef('A', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_13_multi.Class])); + cyclic_typedef_test_13_multi.B = dart.typedef('B', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_13_multi.A])); + cyclic_typedef_test_13_multi.C = dart.typedef('C', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_13_multi.B])); + cyclic_typedef_test_13_multi.Class$ = dart.generic(T => { + class Class extends core.Object {} + return Class; + }); + cyclic_typedef_test_13_multi.Class = cyclic_typedef_test_13_multi.Class$(); + cyclic_typedef_test_13_multi.testA = function(a) { + }; + dart.fn(cyclic_typedef_test_13_multi.testA, dart.void, [cyclic_typedef_test_13_multi.A]); + cyclic_typedef_test_13_multi.main = function() { + cyclic_typedef_test_13_multi.testA(null); + }; + dart.fn(cyclic_typedef_test_13_multi.main, dart.void, []); + // Exports: + exports.cyclic_typedef_test_13_multi = cyclic_typedef_test_13_multi; +}); +dart_library.library('cyclic_typedef_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const cyclic_typedef_test_none_multi = Object.create(null); + cyclic_typedef_test_none_multi.A = dart.typedef('A', () => dart.functionType(dart.dynamic, [])); + cyclic_typedef_test_none_multi.B = dart.typedef('B', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_none_multi.A])); + cyclic_typedef_test_none_multi.C = dart.typedef('C', () => dart.functionType(dart.dynamic, [cyclic_typedef_test_none_multi.B])); + cyclic_typedef_test_none_multi.Class = class Class extends core.Object {}; + cyclic_typedef_test_none_multi.testA = function(a) { + }; + dart.fn(cyclic_typedef_test_none_multi.testA, dart.void, [cyclic_typedef_test_none_multi.A]); + cyclic_typedef_test_none_multi.main = function() { + cyclic_typedef_test_none_multi.testA(null); + }; + dart.fn(cyclic_typedef_test_none_multi.main, dart.void, []); + // Exports: + exports.cyclic_typedef_test_none_multi = cyclic_typedef_test_none_multi; +}); dart_library.library('dangling_else_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -50740,66 +49026,6 @@ dart_library.library('deferred_type_dependency_test_type_annotation_multi', null exports.deferred_type_dependency_lib3 = deferred_type_dependency_lib3; exports.deferred_type_dependency_lib2 = deferred_type_dependency_lib2; }); -dart_library.library('deoptimized_function_on_stack_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const deoptimized_function_on_stack_test = Object.create(null); - deoptimized_function_on_stack_test.main = function() { - deoptimized_function_on_stack_test.warmup(); - deoptimized_function_on_stack_test.runTest(); - }; - dart.fn(deoptimized_function_on_stack_test.main); - deoptimized_function_on_stack_test.warmup = function() { - let a = dart.list([new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.A()], deoptimized_function_on_stack_test.A); - let res = 0; - for (let i = 0; i < 20; i++) { - res = dart.as(deoptimized_function_on_stack_test.call(a, 0), core.int); - } - expect$.Expect.equals(10, res); - }; - dart.fn(deoptimized_function_on_stack_test.warmup); - deoptimized_function_on_stack_test.runTest = function() { - let a = dart.list([new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.B(), new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.B(), new deoptimized_function_on_stack_test.B()], core.Object); - let res = deoptimized_function_on_stack_test.call(a, 0); - expect$.Expect.equals(35, res); - }; - dart.fn(deoptimized_function_on_stack_test.runTest); - deoptimized_function_on_stack_test.call = function(a, n) { - if (dart.notNull(n) < dart.notNull(a[dartx.length])) { - let sum = deoptimized_function_on_stack_test.call(a, dart.notNull(n) + 1); - for (let i = n; dart.notNull(i) < dart.notNull(a[dartx.length]); i = dart.notNull(i) + 1) { - sum = dart.dsend(sum, '+', dart.dsend(a[dartx.get](i), 'foo')); - } - return sum; - } - return 0; - }; - dart.fn(deoptimized_function_on_stack_test.call, dart.dynamic, [core.List, core.int]); - deoptimized_function_on_stack_test.A = class A extends core.Object { - foo() { - return 1; - } - }; - dart.setSignature(deoptimized_function_on_stack_test.A, { - methods: () => ({foo: [dart.dynamic, []]}) - }); - deoptimized_function_on_stack_test.B = class B extends core.Object { - foo() { - return 2; - } - }; - dart.setSignature(deoptimized_function_on_stack_test.B, { - methods: () => ({foo: [dart.dynamic, []]}) - }); - // Exports: - exports.deoptimized_function_on_stack_test = deoptimized_function_on_stack_test; -}); dart_library.library('deopt_inlined_function_lazy_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -50993,6 +49219,66 @@ dart_library.library('deopt_smi_op_test', null, /* Imports */[ // Exports: exports.deopt_smi_op_test = deopt_smi_op_test; }); +dart_library.library('deoptimized_function_on_stack_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const deoptimized_function_on_stack_test = Object.create(null); + deoptimized_function_on_stack_test.main = function() { + deoptimized_function_on_stack_test.warmup(); + deoptimized_function_on_stack_test.runTest(); + }; + dart.fn(deoptimized_function_on_stack_test.main); + deoptimized_function_on_stack_test.warmup = function() { + let a = dart.list([new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.A()], deoptimized_function_on_stack_test.A); + let res = 0; + for (let i = 0; i < 20; i++) { + res = dart.as(deoptimized_function_on_stack_test.call(a, 0), core.int); + } + expect$.Expect.equals(10, res); + }; + dart.fn(deoptimized_function_on_stack_test.warmup); + deoptimized_function_on_stack_test.runTest = function() { + let a = dart.list([new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.B(), new deoptimized_function_on_stack_test.A(), new deoptimized_function_on_stack_test.B(), new deoptimized_function_on_stack_test.B()], core.Object); + let res = deoptimized_function_on_stack_test.call(a, 0); + expect$.Expect.equals(35, res); + }; + dart.fn(deoptimized_function_on_stack_test.runTest); + deoptimized_function_on_stack_test.call = function(a, n) { + if (dart.notNull(n) < dart.notNull(a[dartx.length])) { + let sum = deoptimized_function_on_stack_test.call(a, dart.notNull(n) + 1); + for (let i = n; dart.notNull(i) < dart.notNull(a[dartx.length]); i = dart.notNull(i) + 1) { + sum = dart.dsend(sum, '+', dart.dsend(a[dartx.get](i), 'foo')); + } + return sum; + } + return 0; + }; + dart.fn(deoptimized_function_on_stack_test.call, dart.dynamic, [core.List, core.int]); + deoptimized_function_on_stack_test.A = class A extends core.Object { + foo() { + return 1; + } + }; + dart.setSignature(deoptimized_function_on_stack_test.A, { + methods: () => ({foo: [dart.dynamic, []]}) + }); + deoptimized_function_on_stack_test.B = class B extends core.Object { + foo() { + return 2; + } + }; + dart.setSignature(deoptimized_function_on_stack_test.B, { + methods: () => ({foo: [dart.dynamic, []]}) + }); + // Exports: + exports.deoptimized_function_on_stack_test = deoptimized_function_on_stack_test; +}); dart_library.library('disassemble_test', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -51229,6 +49515,183 @@ dart_library.library('div_with_power_of_two_test', null, /* Imports */[ // Exports: exports.div_with_power_of_two_test = div_with_power_of_two_test; }); +dart_library.library('do_while2_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const do_while2_test = Object.create(null); + do_while2_test.a = 42; + do_while2_test.foo1 = function() { + let i = 0; + let saved = null; + do { + saved = i; + i = do_while2_test.a; + } while (dart.equals(i, saved)); + expect$.Expect.equals(0, saved); + expect$.Expect.equals(42, i); + }; + dart.fn(do_while2_test.foo1); + do_while2_test.foo2 = function() { + let i = 0; + let saved = null; + do { + saved = i; + i = do_while2_test.a; + } while (!dart.equals(i, saved)); + expect$.Expect.equals(42, saved); + expect$.Expect.equals(42, i); + }; + dart.fn(do_while2_test.foo2); + do_while2_test.foo3 = function() { + let i = 0; + let saved = null; + do { + saved = i; + i = do_while2_test.a; + if (dart.equals(i, saved)) continue; + } while (!dart.equals(i, saved)); + expect$.Expect.equals(42, saved); + expect$.Expect.equals(42, i); + }; + dart.fn(do_while2_test.foo3); + do_while2_test.main = function() { + do_while2_test.foo1(); + do_while2_test.foo2(); + do_while2_test.foo3(); + }; + dart.fn(do_while2_test.main); + // Exports: + exports.do_while2_test = do_while2_test; +}); +dart_library.library('do_while3_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const do_while3_test = Object.create(null); + do_while3_test.main = function() { + let c = 0; + do { + c++; + } while (c++ < 2); + expect$.Expect.equals(4, c); + }; + dart.fn(do_while3_test.main); + // Exports: + exports.do_while3_test = do_while3_test; +}); +dart_library.library('do_while4_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const do_while4_test = Object.create(null); + do_while4_test.a = false; + do_while4_test.main = function() { + do { + if (!dart.notNull(do_while4_test.a)) break; + let c = do_while4_test.main(); + do_while4_test.a = true; + } while (true); + expect$.Expect.isFalse(do_while4_test.a); + }; + dart.fn(do_while4_test.main); + // Exports: + exports.do_while4_test = do_while4_test; +}); +dart_library.library('do_while_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const do_while_test = Object.create(null); + do_while_test.Helper = class Helper extends core.Object { + static f1(b) { + do + return 1; + while (dart.notNull(b)); + return 2; + } + static f2(b) { + do { + return 1; + } while (dart.notNull(b)); + return 2; + } + static f3(b) { + do + ; + while (dart.notNull(b)); + return 2; + } + static f4(b) { + do { + } while (dart.notNull(b)); + return 2; + } + static f5(n) { + let i = 0; + do { + i++; + } while (i < dart.notNull(n)); + return i; + } + }; + dart.setSignature(do_while_test.Helper, { + statics: () => ({ + f1: [core.int, [core.bool]], + f2: [core.int, [core.bool]], + f3: [core.int, [core.bool]], + f4: [core.int, [core.bool]], + f5: [core.int, [core.int]] + }), + names: ['f1', 'f2', 'f3', 'f4', 'f5'] + }); + do_while_test.DoWhileTest = class DoWhileTest extends core.Object { + static testMain() { + expect$.Expect.equals(1, do_while_test.Helper.f1(true)); + expect$.Expect.equals(1, do_while_test.Helper.f1(false)); + expect$.Expect.equals(1, do_while_test.Helper.f2(true)); + expect$.Expect.equals(1, do_while_test.Helper.f2(false)); + expect$.Expect.equals(2, do_while_test.Helper.f3(false)); + expect$.Expect.equals(2, do_while_test.Helper.f4(false)); + expect$.Expect.equals(1, do_while_test.Helper.f5(-2)); + expect$.Expect.equals(1, do_while_test.Helper.f5(-1)); + expect$.Expect.equals(1, do_while_test.Helper.f5(0)); + expect$.Expect.equals(1, do_while_test.Helper.f5(1)); + expect$.Expect.equals(2, do_while_test.Helper.f5(2)); + expect$.Expect.equals(3, do_while_test.Helper.f5(3)); + } + }; + dart.setSignature(do_while_test.DoWhileTest, { + statics: () => ({testMain: [dart.dynamic, []]}), + names: ['testMain'] + }); + do_while_test.main = function() { + do_while_test.DoWhileTest.testMain(); + }; + dart.fn(do_while_test.main); + // Exports: + exports.do_while_test = do_while_test; +}); dart_library.library('double_comparison_test', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -51726,183 +50189,6 @@ dart_library.library('double_to_string_test', null, /* Imports */[ // Exports: exports.double_to_string_test = double_to_string_test; }); -dart_library.library('do_while2_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const do_while2_test = Object.create(null); - do_while2_test.a = 42; - do_while2_test.foo1 = function() { - let i = 0; - let saved = null; - do { - saved = i; - i = do_while2_test.a; - } while (dart.equals(i, saved)); - expect$.Expect.equals(0, saved); - expect$.Expect.equals(42, i); - }; - dart.fn(do_while2_test.foo1); - do_while2_test.foo2 = function() { - let i = 0; - let saved = null; - do { - saved = i; - i = do_while2_test.a; - } while (!dart.equals(i, saved)); - expect$.Expect.equals(42, saved); - expect$.Expect.equals(42, i); - }; - dart.fn(do_while2_test.foo2); - do_while2_test.foo3 = function() { - let i = 0; - let saved = null; - do { - saved = i; - i = do_while2_test.a; - if (dart.equals(i, saved)) continue; - } while (!dart.equals(i, saved)); - expect$.Expect.equals(42, saved); - expect$.Expect.equals(42, i); - }; - dart.fn(do_while2_test.foo3); - do_while2_test.main = function() { - do_while2_test.foo1(); - do_while2_test.foo2(); - do_while2_test.foo3(); - }; - dart.fn(do_while2_test.main); - // Exports: - exports.do_while2_test = do_while2_test; -}); -dart_library.library('do_while3_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const do_while3_test = Object.create(null); - do_while3_test.main = function() { - let c = 0; - do { - c++; - } while (c++ < 2); - expect$.Expect.equals(4, c); - }; - dart.fn(do_while3_test.main); - // Exports: - exports.do_while3_test = do_while3_test; -}); -dart_library.library('do_while4_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const do_while4_test = Object.create(null); - do_while4_test.a = false; - do_while4_test.main = function() { - do { - if (!dart.notNull(do_while4_test.a)) break; - let c = do_while4_test.main(); - do_while4_test.a = true; - } while (true); - expect$.Expect.isFalse(do_while4_test.a); - }; - dart.fn(do_while4_test.main); - // Exports: - exports.do_while4_test = do_while4_test; -}); -dart_library.library('do_while_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const do_while_test = Object.create(null); - do_while_test.Helper = class Helper extends core.Object { - static f1(b) { - do - return 1; - while (dart.notNull(b)); - return 2; - } - static f2(b) { - do { - return 1; - } while (dart.notNull(b)); - return 2; - } - static f3(b) { - do - ; - while (dart.notNull(b)); - return 2; - } - static f4(b) { - do { - } while (dart.notNull(b)); - return 2; - } - static f5(n) { - let i = 0; - do { - i++; - } while (i < dart.notNull(n)); - return i; - } - }; - dart.setSignature(do_while_test.Helper, { - statics: () => ({ - f1: [core.int, [core.bool]], - f2: [core.int, [core.bool]], - f3: [core.int, [core.bool]], - f4: [core.int, [core.bool]], - f5: [core.int, [core.int]] - }), - names: ['f1', 'f2', 'f3', 'f4', 'f5'] - }); - do_while_test.DoWhileTest = class DoWhileTest extends core.Object { - static testMain() { - expect$.Expect.equals(1, do_while_test.Helper.f1(true)); - expect$.Expect.equals(1, do_while_test.Helper.f1(false)); - expect$.Expect.equals(1, do_while_test.Helper.f2(true)); - expect$.Expect.equals(1, do_while_test.Helper.f2(false)); - expect$.Expect.equals(2, do_while_test.Helper.f3(false)); - expect$.Expect.equals(2, do_while_test.Helper.f4(false)); - expect$.Expect.equals(1, do_while_test.Helper.f5(-2)); - expect$.Expect.equals(1, do_while_test.Helper.f5(-1)); - expect$.Expect.equals(1, do_while_test.Helper.f5(0)); - expect$.Expect.equals(1, do_while_test.Helper.f5(1)); - expect$.Expect.equals(2, do_while_test.Helper.f5(2)); - expect$.Expect.equals(3, do_while_test.Helper.f5(3)); - } - }; - dart.setSignature(do_while_test.DoWhileTest, { - statics: () => ({testMain: [dart.dynamic, []]}), - names: ['testMain'] - }); - do_while_test.main = function() { - do_while_test.DoWhileTest.testMain(); - }; - dart.fn(do_while_test.main); - // Exports: - exports.do_while_test = do_while_test; -}); dart_library.library('duplicate_constructor_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -55431,6 +53717,98 @@ dart_library.library('external_test_none_multi', null, /* Imports */[ // Exports: exports.external_test_none_multi = external_test_none_multi; }); +dart_library.library('f_bounded_equality_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const f_bounded_equality_test = Object.create(null); + f_bounded_equality_test.Magnitude$ = dart.generic(T => { + class Magnitude extends core.Object { + get t() { + return T; + } + } + return Magnitude; + }); + f_bounded_equality_test.Magnitude = f_bounded_equality_test.Magnitude$(); + f_bounded_equality_test.Real = class Real extends f_bounded_equality_test.Magnitude {}; + dart.setBaseClass(f_bounded_equality_test.Real, f_bounded_equality_test.Magnitude$(f_bounded_equality_test.Real)); + f_bounded_equality_test.FBound$ = dart.generic(F => { + class FBound extends core.Object { + get f() { + return F; + } + } + return FBound; + }); + f_bounded_equality_test.FBound = f_bounded_equality_test.FBound$(); + f_bounded_equality_test.Bar = class Bar extends f_bounded_equality_test.FBound {}; + dart.setBaseClass(f_bounded_equality_test.Bar, f_bounded_equality_test.FBound$(f_bounded_equality_test.Bar)); + f_bounded_equality_test.main = function() { + let r = new f_bounded_equality_test.Real(); + expect$.Expect.equals(r.runtimeType, f_bounded_equality_test.Real); + expect$.Expect.equals(r.t, f_bounded_equality_test.Real); + expect$.Expect.equals(r.runtimeType, r.t); + let b = new f_bounded_equality_test.Bar(); + expect$.Expect.equals(b.runtimeType, f_bounded_equality_test.Bar); + expect$.Expect.equals(b.f, f_bounded_equality_test.Bar); + expect$.Expect.equals(b.runtimeType, b.f); + }; + dart.fn(f_bounded_equality_test.main); + // Exports: + exports.f_bounded_equality_test = f_bounded_equality_test; +}); +dart_library.library('f_bounded_quantification3_test', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const f_bounded_quantification3_test = Object.create(null); + f_bounded_quantification3_test.FBound1$ = dart.generic((F1, F2) => { + class FBound1 extends core.Object { + Test() { + new (f_bounded_quantification3_test.FBound1$(F1, F2))(); + new (f_bounded_quantification3_test.FBound2$(F1, F2))(); + } + } + dart.setSignature(FBound1, { + methods: () => ({Test: [dart.dynamic, []]}) + }); + return FBound1; + }); + f_bounded_quantification3_test.FBound1 = f_bounded_quantification3_test.FBound1$(); + f_bounded_quantification3_test.FBound2$ = dart.generic((F1, F2) => { + class FBound2 extends core.Object { + Test() { + new (f_bounded_quantification3_test.FBound1$(F1, F2))(); + new (f_bounded_quantification3_test.FBound2$(F1, F2))(); + } + } + dart.setSignature(FBound2, { + methods: () => ({Test: [dart.dynamic, []]}) + }); + return FBound2; + }); + f_bounded_quantification3_test.FBound2 = f_bounded_quantification3_test.FBound2$(); + f_bounded_quantification3_test.Bar = class Bar extends f_bounded_quantification3_test.FBound1 {}; + dart.setBaseClass(f_bounded_quantification3_test.Bar, f_bounded_quantification3_test.FBound1$(f_bounded_quantification3_test.Bar, f_bounded_quantification3_test.Baz)); + f_bounded_quantification3_test.Baz = class Baz extends f_bounded_quantification3_test.FBound2 {}; + dart.setBaseClass(f_bounded_quantification3_test.Baz, f_bounded_quantification3_test.FBound2$(f_bounded_quantification3_test.Bar, f_bounded_quantification3_test.Baz)); + f_bounded_quantification3_test.main = function() { + new (f_bounded_quantification3_test.FBound1$(f_bounded_quantification3_test.Bar, f_bounded_quantification3_test.Baz))().Test(); + new (f_bounded_quantification3_test.FBound2$(f_bounded_quantification3_test.Bar, f_bounded_quantification3_test.Baz))().Test(); + }; + dart.fn(f_bounded_quantification3_test.main); + // Exports: + exports.f_bounded_quantification3_test = f_bounded_quantification3_test; +}); dart_library.library('factory_arrow_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -56022,98 +54400,6 @@ dart_library.library('fauxverride_test_none_multi', null, /* Imports */[ // Exports: exports.fauxverride_test_none_multi = fauxverride_test_none_multi; }); -dart_library.library('f_bounded_equality_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const f_bounded_equality_test = Object.create(null); - f_bounded_equality_test.Magnitude$ = dart.generic(T => { - class Magnitude extends core.Object { - get t() { - return T; - } - } - return Magnitude; - }); - f_bounded_equality_test.Magnitude = f_bounded_equality_test.Magnitude$(); - f_bounded_equality_test.Real = class Real extends f_bounded_equality_test.Magnitude {}; - dart.setBaseClass(f_bounded_equality_test.Real, f_bounded_equality_test.Magnitude$(f_bounded_equality_test.Real)); - f_bounded_equality_test.FBound$ = dart.generic(F => { - class FBound extends core.Object { - get f() { - return F; - } - } - return FBound; - }); - f_bounded_equality_test.FBound = f_bounded_equality_test.FBound$(); - f_bounded_equality_test.Bar = class Bar extends f_bounded_equality_test.FBound {}; - dart.setBaseClass(f_bounded_equality_test.Bar, f_bounded_equality_test.FBound$(f_bounded_equality_test.Bar)); - f_bounded_equality_test.main = function() { - let r = new f_bounded_equality_test.Real(); - expect$.Expect.equals(r.runtimeType, f_bounded_equality_test.Real); - expect$.Expect.equals(r.t, f_bounded_equality_test.Real); - expect$.Expect.equals(r.runtimeType, r.t); - let b = new f_bounded_equality_test.Bar(); - expect$.Expect.equals(b.runtimeType, f_bounded_equality_test.Bar); - expect$.Expect.equals(b.f, f_bounded_equality_test.Bar); - expect$.Expect.equals(b.runtimeType, b.f); - }; - dart.fn(f_bounded_equality_test.main); - // Exports: - exports.f_bounded_equality_test = f_bounded_equality_test; -}); -dart_library.library('f_bounded_quantification3_test', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const f_bounded_quantification3_test = Object.create(null); - f_bounded_quantification3_test.FBound1$ = dart.generic((F1, F2) => { - class FBound1 extends core.Object { - Test() { - new (f_bounded_quantification3_test.FBound1$(F1, F2))(); - new (f_bounded_quantification3_test.FBound2$(F1, F2))(); - } - } - dart.setSignature(FBound1, { - methods: () => ({Test: [dart.dynamic, []]}) - }); - return FBound1; - }); - f_bounded_quantification3_test.FBound1 = f_bounded_quantification3_test.FBound1$(); - f_bounded_quantification3_test.FBound2$ = dart.generic((F1, F2) => { - class FBound2 extends core.Object { - Test() { - new (f_bounded_quantification3_test.FBound1$(F1, F2))(); - new (f_bounded_quantification3_test.FBound2$(F1, F2))(); - } - } - dart.setSignature(FBound2, { - methods: () => ({Test: [dart.dynamic, []]}) - }); - return FBound2; - }); - f_bounded_quantification3_test.FBound2 = f_bounded_quantification3_test.FBound2$(); - f_bounded_quantification3_test.Bar = class Bar extends f_bounded_quantification3_test.FBound1 {}; - dart.setBaseClass(f_bounded_quantification3_test.Bar, f_bounded_quantification3_test.FBound1$(f_bounded_quantification3_test.Bar, f_bounded_quantification3_test.Baz)); - f_bounded_quantification3_test.Baz = class Baz extends f_bounded_quantification3_test.FBound2 {}; - dart.setBaseClass(f_bounded_quantification3_test.Baz, f_bounded_quantification3_test.FBound2$(f_bounded_quantification3_test.Bar, f_bounded_quantification3_test.Baz)); - f_bounded_quantification3_test.main = function() { - new (f_bounded_quantification3_test.FBound1$(f_bounded_quantification3_test.Bar, f_bounded_quantification3_test.Baz))().Test(); - new (f_bounded_quantification3_test.FBound2$(f_bounded_quantification3_test.Bar, f_bounded_quantification3_test.Baz))().Test(); - }; - dart.fn(f_bounded_quantification3_test.main); - // Exports: - exports.f_bounded_quantification3_test = f_bounded_quantification3_test; -}); dart_library.library('fibo_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -56886,44 +55172,6 @@ dart_library.library('final_is_not_const_test_none_multi', null, /* Imports */[ // Exports: exports.final_is_not_const_test_none_multi = final_is_not_const_test_none_multi; }); -dart_library.library('finally_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const finally_test = Object.create(null); - finally_test.A = class A extends core.Object { - A() { - this.i = 42; - } - foo() { - let executedFinally = false; - if (this.i == 42) { - try { - this.i = 12; - } finally { - expect$.Expect.equals(12, this.i); - executedFinally = true; - } - } - expect$.Expect.isTrue(executedFinally); - } - }; - dart.setSignature(finally_test.A, { - constructors: () => ({A: [finally_test.A, []]}), - methods: () => ({foo: [dart.dynamic, []]}) - }); - finally_test.main = function() { - new finally_test.A().foo(); - }; - dart.fn(finally_test.main); - // Exports: - exports.finally_test = finally_test; -}); dart_library.library('final_param_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -57564,6 +55812,44 @@ dart_library.library('final_variable_assignment_test_none_multi', null, /* Impor // Exports: exports.final_variable_assignment_test_none_multi = final_variable_assignment_test_none_multi; }); +dart_library.library('finally_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const finally_test = Object.create(null); + finally_test.A = class A extends core.Object { + A() { + this.i = 42; + } + foo() { + let executedFinally = false; + if (this.i == 42) { + try { + this.i = 12; + } finally { + expect$.Expect.equals(12, this.i); + executedFinally = true; + } + } + expect$.Expect.isTrue(executedFinally); + } + }; + dart.setSignature(finally_test.A, { + constructors: () => ({A: [finally_test.A, []]}), + methods: () => ({foo: [dart.dynamic, []]}) + }); + finally_test.main = function() { + new finally_test.A().foo(); + }; + dart.fn(finally_test.main); + // Exports: + exports.finally_test = finally_test; +}); dart_library.library('first_class_types_constants_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -59977,31 +58263,6 @@ dart_library.library('for_in2_test', null, /* Imports */[ // Exports: exports.for_in2_test = for_in2_test; }); -dart_library.library('for_inlining_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const for_inlining_test = Object.create(null); - for_inlining_test.global = null; - for_inlining_test.inlineMe = function() { - for_inlining_test.global = 42; - return 54; - }; - dart.fn(for_inlining_test.inlineMe); - for_inlining_test.main = function() { - for (let t = for_inlining_test.inlineMe(); dart.notNull(dart.as(dart.dsend(t, '<', 42), core.bool)); t = dart.dsend(t, '+', 1)) { - } - expect$.Expect.equals(42, for_inlining_test.global); - }; - dart.fn(for_inlining_test.main); - // Exports: - exports.for_inlining_test = for_inlining_test; -}); dart_library.library('for_in_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -60069,6 +58330,31 @@ dart_library.library('for_in_test', null, /* Imports */[ // Exports: exports.for_in_test = for_in_test; }); +dart_library.library('for_inlining_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const for_inlining_test = Object.create(null); + for_inlining_test.global = null; + for_inlining_test.inlineMe = function() { + for_inlining_test.global = 42; + return 54; + }; + dart.fn(for_inlining_test.inlineMe); + for_inlining_test.main = function() { + for (let t = for_inlining_test.inlineMe(); dart.notNull(dart.as(dart.dsend(t, '<', 42), core.bool)); t = dart.dsend(t, '+', 1)) { + } + expect$.Expect.equals(42, for_inlining_test.global); + }; + dart.fn(for_inlining_test.main); + // Exports: + exports.for_inlining_test = for_inlining_test; +}); dart_library.library('for_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -60475,6 +58761,28 @@ dart_library.library('for_variable_capture_test', null, /* Imports */[ // Exports: exports.for_variable_capture_test = for_variable_capture_test; }); +dart_library.library('for_without_condition_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const for_without_condition_test = Object.create(null); + for_without_condition_test.main = function() { + let i = 0; + for (;; i++) { + if (i == 0) break; + expect$.Expect.fail("Should not enter here"); + } + expect$.Expect.equals(0, i); + }; + dart.fn(for_without_condition_test.main); + // Exports: + exports.for_without_condition_test = for_without_condition_test; +}); dart_library.library('forwarding_factory_constructor_default_values_test', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -60522,28 +58830,6 @@ dart_library.library('forwarding_factory_constructor_default_values_test', null, // Exports: exports.forwarding_factory_constructor_default_values_test = forwarding_factory_constructor_default_values_test; }); -dart_library.library('for_without_condition_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const for_without_condition_test = Object.create(null); - for_without_condition_test.main = function() { - let i = 0; - for (;; i++) { - if (i == 0) break; - expect$.Expect.fail("Should not enter here"); - } - expect$.Expect.equals(0, i); - }; - dart.fn(for_without_condition_test.main); - // Exports: - exports.for_without_condition_test = for_without_condition_test; -}); dart_library.library('full_stacktrace1_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -61593,7 +59879,7 @@ dart_library.library('function_subtype_bound_closure4_test', null, /* Imports */ // Exports: exports.function_subtype_bound_closure4_test = function_subtype_bound_closure4_test; }); -dart_library.library('function_subtype_bound_closure5a_test', null, /* Imports */[ +dart_library.library('function_subtype_bound_closure5_test', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -61602,33 +59888,33 @@ dart_library.library('function_subtype_bound_closure5a_test', null, /* Imports * const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const function_subtype_bound_closure5a_test = Object.create(null); - function_subtype_bound_closure5a_test.Foo$ = dart.generic(T => { + const function_subtype_bound_closure5_test = Object.create(null); + function_subtype_bound_closure5_test.Foo$ = dart.generic(T => { const Foo = dart.typedef('Foo', () => dart.functionType(core.int, [T], [core.String])); return Foo; }); - function_subtype_bound_closure5a_test.Foo = function_subtype_bound_closure5a_test.Foo$(); - function_subtype_bound_closure5a_test.Bar$ = dart.generic(T => { + function_subtype_bound_closure5_test.Foo = function_subtype_bound_closure5_test.Foo$(); + function_subtype_bound_closure5_test.Bar$ = dart.generic(T => { const Bar = dart.typedef('Bar', () => dart.functionType(core.int, [T], [core.String])); return Bar; }); - function_subtype_bound_closure5a_test.Bar = function_subtype_bound_closure5a_test.Bar$(); - function_subtype_bound_closure5a_test.Baz$ = dart.generic(T => { + function_subtype_bound_closure5_test.Bar = function_subtype_bound_closure5_test.Bar$(); + function_subtype_bound_closure5_test.Baz$ = dart.generic(T => { const Baz = dart.typedef('Baz', () => dart.functionType(core.int, [T], {b: core.String})); return Baz; }); - function_subtype_bound_closure5a_test.Baz = function_subtype_bound_closure5a_test.Baz$(); - function_subtype_bound_closure5a_test.Boz$ = dart.generic(T => { + function_subtype_bound_closure5_test.Baz = function_subtype_bound_closure5_test.Baz$(); + function_subtype_bound_closure5_test.Boz$ = dart.generic(T => { const Boz = dart.typedef('Boz', () => dart.functionType(core.int, [T])); return Boz; }); - function_subtype_bound_closure5a_test.Boz = function_subtype_bound_closure5a_test.Boz$(); - function_subtype_bound_closure5a_test.Biz$ = dart.generic(T => { + function_subtype_bound_closure5_test.Boz = function_subtype_bound_closure5_test.Boz$(); + function_subtype_bound_closure5_test.Biz$ = dart.generic(T => { const Biz = dart.typedef('Biz', () => dart.functionType(core.int, [T, core.int])); return Biz; }); - function_subtype_bound_closure5a_test.Biz = function_subtype_bound_closure5a_test.Biz$(); - function_subtype_bound_closure5a_test.C$ = dart.generic(T => { + function_subtype_bound_closure5_test.Biz = function_subtype_bound_closure5_test.Biz$(); + function_subtype_bound_closure5_test.C$ = dart.generic(T => { class C extends core.Object { foo(a, b) { if (b === void 0) b = null; @@ -61639,16 +59925,16 @@ dart_library.library('function_subtype_bound_closure5a_test', null, /* Imports * return null; } test(nameOfT, expectedResult) { - expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5a_test.Foo$(T)), `foo is Foo<${nameOfT}>`); - expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5a_test.Bar$(T)), `foo is Bar<${nameOfT}>`); - expect$.Expect.isFalse(dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5a_test.Baz$(T)), `foo is Baz<${nameOfT}>`); - expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5a_test.Boz$(T)), `foo is Boz<${nameOfT}>`); - expect$.Expect.isFalse(dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5a_test.Biz$(T)), `foo is Biz<${nameOfT}>`); - expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5a_test.Foo$(T)), `baz is Foo<${nameOfT}>`); - expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5a_test.Bar$(T)), `baz is Bar<${nameOfT}>`); - expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5a_test.Baz$(T)), `baz is Baz<${nameOfT}>`); - expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5a_test.Boz$(T)), `baz is Boz<${nameOfT}>`); - expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5a_test.Biz$(T)), `bar is Biz<${nameOfT}>`); + expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5_test.Foo$(T)), `foo is Foo<${nameOfT}>`); + expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5_test.Bar$(T)), `foo is Bar<${nameOfT}>`); + expect$.Expect.isFalse(dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5_test.Baz$(T)), `foo is Baz<${nameOfT}>`); + expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5_test.Boz$(T)), `foo is Boz<${nameOfT}>`); + expect$.Expect.isFalse(dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5_test.Biz$(T)), `foo is Biz<${nameOfT}>`); + expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5_test.Foo$(T)), `baz is Foo<${nameOfT}>`); + expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5_test.Bar$(T)), `baz is Bar<${nameOfT}>`); + expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5_test.Baz$(T)), `baz is Baz<${nameOfT}>`); + expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5_test.Boz$(T)), `baz is Boz<${nameOfT}>`); + expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5_test.Biz$(T)), `bar is Biz<${nameOfT}>`); } } dart.setSignature(C, { @@ -61660,27 +59946,22 @@ dart_library.library('function_subtype_bound_closure5a_test', null, /* Imports * }); return C; }); - function_subtype_bound_closure5a_test.C = function_subtype_bound_closure5a_test.C$(); - function_subtype_bound_closure5a_test.Cm$ = dart.generic(T => { - class Cm extends function_subtype_bound_closure5a_test.C$(T) {} - return Cm; - }); - function_subtype_bound_closure5a_test.Cm = function_subtype_bound_closure5a_test.Cm$(); - function_subtype_bound_closure5a_test.D$ = dart.generic((S, T) => { - class D extends function_subtype_bound_closure5a_test.Cm$(T) {} + function_subtype_bound_closure5_test.C = function_subtype_bound_closure5_test.C$(); + function_subtype_bound_closure5_test.D$ = dart.generic((S, T) => { + class D extends function_subtype_bound_closure5_test.C$(T) {} return D; }); - function_subtype_bound_closure5a_test.D = function_subtype_bound_closure5a_test.D$(); - function_subtype_bound_closure5a_test.main = function() { - new (function_subtype_bound_closure5a_test.D$(core.String, core.bool))().test('bool', true); - new (function_subtype_bound_closure5a_test.D$(core.bool, core.int))().test('int', false); - new function_subtype_bound_closure5a_test.D().test('dynamic', true); + function_subtype_bound_closure5_test.D = function_subtype_bound_closure5_test.D$(); + function_subtype_bound_closure5_test.main = function() { + new (function_subtype_bound_closure5_test.D$(core.String, core.bool))().test('bool', true); + new (function_subtype_bound_closure5_test.D$(core.bool, core.int))().test('int', false); + new function_subtype_bound_closure5_test.D().test('dynamic', true); }; - dart.fn(function_subtype_bound_closure5a_test.main); + dart.fn(function_subtype_bound_closure5_test.main); // Exports: - exports.function_subtype_bound_closure5a_test = function_subtype_bound_closure5a_test; + exports.function_subtype_bound_closure5_test = function_subtype_bound_closure5_test; }); -dart_library.library('function_subtype_bound_closure5_test', null, /* Imports */[ +dart_library.library('function_subtype_bound_closure5a_test', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -61689,33 +59970,33 @@ dart_library.library('function_subtype_bound_closure5_test', null, /* Imports */ const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const function_subtype_bound_closure5_test = Object.create(null); - function_subtype_bound_closure5_test.Foo$ = dart.generic(T => { + const function_subtype_bound_closure5a_test = Object.create(null); + function_subtype_bound_closure5a_test.Foo$ = dart.generic(T => { const Foo = dart.typedef('Foo', () => dart.functionType(core.int, [T], [core.String])); return Foo; }); - function_subtype_bound_closure5_test.Foo = function_subtype_bound_closure5_test.Foo$(); - function_subtype_bound_closure5_test.Bar$ = dart.generic(T => { + function_subtype_bound_closure5a_test.Foo = function_subtype_bound_closure5a_test.Foo$(); + function_subtype_bound_closure5a_test.Bar$ = dart.generic(T => { const Bar = dart.typedef('Bar', () => dart.functionType(core.int, [T], [core.String])); return Bar; }); - function_subtype_bound_closure5_test.Bar = function_subtype_bound_closure5_test.Bar$(); - function_subtype_bound_closure5_test.Baz$ = dart.generic(T => { + function_subtype_bound_closure5a_test.Bar = function_subtype_bound_closure5a_test.Bar$(); + function_subtype_bound_closure5a_test.Baz$ = dart.generic(T => { const Baz = dart.typedef('Baz', () => dart.functionType(core.int, [T], {b: core.String})); return Baz; }); - function_subtype_bound_closure5_test.Baz = function_subtype_bound_closure5_test.Baz$(); - function_subtype_bound_closure5_test.Boz$ = dart.generic(T => { + function_subtype_bound_closure5a_test.Baz = function_subtype_bound_closure5a_test.Baz$(); + function_subtype_bound_closure5a_test.Boz$ = dart.generic(T => { const Boz = dart.typedef('Boz', () => dart.functionType(core.int, [T])); return Boz; }); - function_subtype_bound_closure5_test.Boz = function_subtype_bound_closure5_test.Boz$(); - function_subtype_bound_closure5_test.Biz$ = dart.generic(T => { + function_subtype_bound_closure5a_test.Boz = function_subtype_bound_closure5a_test.Boz$(); + function_subtype_bound_closure5a_test.Biz$ = dart.generic(T => { const Biz = dart.typedef('Biz', () => dart.functionType(core.int, [T, core.int])); return Biz; }); - function_subtype_bound_closure5_test.Biz = function_subtype_bound_closure5_test.Biz$(); - function_subtype_bound_closure5_test.C$ = dart.generic(T => { + function_subtype_bound_closure5a_test.Biz = function_subtype_bound_closure5a_test.Biz$(); + function_subtype_bound_closure5a_test.C$ = dart.generic(T => { class C extends core.Object { foo(a, b) { if (b === void 0) b = null; @@ -61726,16 +60007,16 @@ dart_library.library('function_subtype_bound_closure5_test', null, /* Imports */ return null; } test(nameOfT, expectedResult) { - expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5_test.Foo$(T)), `foo is Foo<${nameOfT}>`); - expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5_test.Bar$(T)), `foo is Bar<${nameOfT}>`); - expect$.Expect.isFalse(dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5_test.Baz$(T)), `foo is Baz<${nameOfT}>`); - expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5_test.Boz$(T)), `foo is Boz<${nameOfT}>`); - expect$.Expect.isFalse(dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5_test.Biz$(T)), `foo is Biz<${nameOfT}>`); - expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5_test.Foo$(T)), `baz is Foo<${nameOfT}>`); - expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5_test.Bar$(T)), `baz is Bar<${nameOfT}>`); - expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5_test.Baz$(T)), `baz is Baz<${nameOfT}>`); - expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5_test.Boz$(T)), `baz is Boz<${nameOfT}>`); - expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5_test.Biz$(T)), `bar is Biz<${nameOfT}>`); + expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5a_test.Foo$(T)), `foo is Foo<${nameOfT}>`); + expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5a_test.Bar$(T)), `foo is Bar<${nameOfT}>`); + expect$.Expect.isFalse(dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5a_test.Baz$(T)), `foo is Baz<${nameOfT}>`); + expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5a_test.Boz$(T)), `foo is Boz<${nameOfT}>`); + expect$.Expect.isFalse(dart.is(dart.bind(this, 'foo'), function_subtype_bound_closure5a_test.Biz$(T)), `foo is Biz<${nameOfT}>`); + expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5a_test.Foo$(T)), `baz is Foo<${nameOfT}>`); + expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5a_test.Bar$(T)), `baz is Bar<${nameOfT}>`); + expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5a_test.Baz$(T)), `baz is Baz<${nameOfT}>`); + expect$.Expect.equals(expectedResult, dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5a_test.Boz$(T)), `baz is Boz<${nameOfT}>`); + expect$.Expect.isFalse(dart.is(dart.bind(this, 'baz'), function_subtype_bound_closure5a_test.Biz$(T)), `bar is Biz<${nameOfT}>`); } } dart.setSignature(C, { @@ -61747,20 +60028,25 @@ dart_library.library('function_subtype_bound_closure5_test', null, /* Imports */ }); return C; }); - function_subtype_bound_closure5_test.C = function_subtype_bound_closure5_test.C$(); - function_subtype_bound_closure5_test.D$ = dart.generic((S, T) => { - class D extends function_subtype_bound_closure5_test.C$(T) {} + function_subtype_bound_closure5a_test.C = function_subtype_bound_closure5a_test.C$(); + function_subtype_bound_closure5a_test.Cm$ = dart.generic(T => { + class Cm extends function_subtype_bound_closure5a_test.C$(T) {} + return Cm; + }); + function_subtype_bound_closure5a_test.Cm = function_subtype_bound_closure5a_test.Cm$(); + function_subtype_bound_closure5a_test.D$ = dart.generic((S, T) => { + class D extends function_subtype_bound_closure5a_test.Cm$(T) {} return D; }); - function_subtype_bound_closure5_test.D = function_subtype_bound_closure5_test.D$(); - function_subtype_bound_closure5_test.main = function() { - new (function_subtype_bound_closure5_test.D$(core.String, core.bool))().test('bool', true); - new (function_subtype_bound_closure5_test.D$(core.bool, core.int))().test('int', false); - new function_subtype_bound_closure5_test.D().test('dynamic', true); + function_subtype_bound_closure5a_test.D = function_subtype_bound_closure5a_test.D$(); + function_subtype_bound_closure5a_test.main = function() { + new (function_subtype_bound_closure5a_test.D$(core.String, core.bool))().test('bool', true); + new (function_subtype_bound_closure5a_test.D$(core.bool, core.int))().test('int', false); + new function_subtype_bound_closure5a_test.D().test('dynamic', true); }; - dart.fn(function_subtype_bound_closure5_test.main); + dart.fn(function_subtype_bound_closure5a_test.main); // Exports: - exports.function_subtype_bound_closure5_test = function_subtype_bound_closure5_test; + exports.function_subtype_bound_closure5a_test = function_subtype_bound_closure5a_test; }); dart_library.library('function_subtype_bound_closure6_test', null, /* Imports */[ 'dart_sdk', @@ -66311,6 +64597,74 @@ dart_library.library('generic_parameterized_extends_test', null, /* Imports */[ // Exports: exports.generic_parameterized_extends_test = generic_parameterized_extends_test; }); +dart_library.library('generic_syntax_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const generic_syntax_test = Object.create(null); + generic_syntax_test.GenericSyntaxTest$ = dart.generic((B, C, D, E, F) => { + class GenericSyntaxTest extends core.Object { + GenericSyntaxTest() { + } + foo(x1, x2, x3, x4, x5) { + expect$.Expect.equals(true, x1); + expect$.Expect.equals(3, x2); + expect$.Expect.equals(4, x3); + expect$.Expect.equals(5, x4); + expect$.Expect.equals(false, x5); + } + bar(x) { + expect$.Expect.equals(null, dart.dcall(x, null)); + } + test() { + let a = 1; + let b = 2; + let c = 3; + let d = 4; + let e = 5; + let f = 6; + let g = 7; + let h = null; + this.bar(dart.fn(g => { + dart.as(g, generic_syntax_test.A$(B, C, D, E, F)); + return h; + }, dart.dynamic, [generic_syntax_test.A$(B, C, D, E, F)])); + this.foo(a < b, c, d, e, f > g); + } + static testMain() { + new generic_syntax_test.GenericSyntaxTest().test(); + } + } + dart.setSignature(GenericSyntaxTest, { + constructors: () => ({GenericSyntaxTest: [generic_syntax_test.GenericSyntaxTest$(B, C, D, E, F), []]}), + methods: () => ({ + foo: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic]], + bar: [dart.void, [dart.dynamic]], + test: [dart.dynamic, []] + }), + statics: () => ({testMain: [dart.dynamic, []]}), + names: ['testMain'] + }); + return GenericSyntaxTest; + }); + generic_syntax_test.GenericSyntaxTest = generic_syntax_test.GenericSyntaxTest$(); + generic_syntax_test.A$ = dart.generic((B, C, D, E, F) => { + class A extends core.Object {} + return A; + }); + generic_syntax_test.A = generic_syntax_test.A$(); + generic_syntax_test.main = function() { + generic_syntax_test.GenericSyntaxTest.testMain(); + }; + dart.fn(generic_syntax_test.main); + // Exports: + exports.generic_syntax_test = generic_syntax_test; +}); dart_library.library('generics2_test', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -66398,74 +64752,6 @@ dart_library.library('generics3_test', null, /* Imports */[ // Exports: exports.generics3_test = generics3_test; }); -dart_library.library('generic_syntax_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const generic_syntax_test = Object.create(null); - generic_syntax_test.GenericSyntaxTest$ = dart.generic((B, C, D, E, F) => { - class GenericSyntaxTest extends core.Object { - GenericSyntaxTest() { - } - foo(x1, x2, x3, x4, x5) { - expect$.Expect.equals(true, x1); - expect$.Expect.equals(3, x2); - expect$.Expect.equals(4, x3); - expect$.Expect.equals(5, x4); - expect$.Expect.equals(false, x5); - } - bar(x) { - expect$.Expect.equals(null, dart.dcall(x, null)); - } - test() { - let a = 1; - let b = 2; - let c = 3; - let d = 4; - let e = 5; - let f = 6; - let g = 7; - let h = null; - this.bar(dart.fn(g => { - dart.as(g, generic_syntax_test.A$(B, C, D, E, F)); - return h; - }, dart.dynamic, [generic_syntax_test.A$(B, C, D, E, F)])); - this.foo(a < b, c, d, e, f > g); - } - static testMain() { - new generic_syntax_test.GenericSyntaxTest().test(); - } - } - dart.setSignature(GenericSyntaxTest, { - constructors: () => ({GenericSyntaxTest: [generic_syntax_test.GenericSyntaxTest$(B, C, D, E, F), []]}), - methods: () => ({ - foo: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic]], - bar: [dart.void, [dart.dynamic]], - test: [dart.dynamic, []] - }), - statics: () => ({testMain: [dart.dynamic, []]}), - names: ['testMain'] - }); - return GenericSyntaxTest; - }); - generic_syntax_test.GenericSyntaxTest = generic_syntax_test.GenericSyntaxTest$(); - generic_syntax_test.A$ = dart.generic((B, C, D, E, F) => { - class A extends core.Object {} - return A; - }); - generic_syntax_test.A = generic_syntax_test.A$(); - generic_syntax_test.main = function() { - generic_syntax_test.GenericSyntaxTest.testMain(); - }; - dart.fn(generic_syntax_test.main); - // Exports: - exports.generic_syntax_test = generic_syntax_test; -}); dart_library.library('getter_closure_execution_order_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -76337,44 +74623,6 @@ dart_library.library('inline_closure_with_constant_arguments_test', null, /* Imp // Exports: exports.inline_closure_with_constant_arguments_test = inline_closure_with_constant_arguments_test; }); -dart_library.library('inlined_conditional_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const inlined_conditional_test = Object.create(null); - inlined_conditional_test.topLevel = null; - inlined_conditional_test.foo = function(c) { - return dart.as(dart.is(c, core.Function) ? null : c, core.Function); - }; - dart.fn(inlined_conditional_test.foo, core.Function, [dart.dynamic]); - inlined_conditional_test.bar = function() { - let b = new core.Object(); - function f() { - if (inlined_conditional_test.foo(inlined_conditional_test.topLevel) == null) { - return b.toString(); - } else { - return b.hashCode; - } - } - dart.fn(f); - return f(); - }; - dart.fn(inlined_conditional_test.bar); - inlined_conditional_test.main = function() { - inlined_conditional_test.topLevel = new core.Object(); - inlined_conditional_test.topLevel = inlined_conditional_test.main; - let res = inlined_conditional_test.bar(); - expect$.Expect.isTrue(typeof res == 'string'); - }; - dart.fn(inlined_conditional_test.main); - // Exports: - exports.inlined_conditional_test = inlined_conditional_test; -}); dart_library.library('inline_getter_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -76546,6 +74794,117 @@ dart_library.library('inline_test', null, /* Imports */[ // Exports: exports.inline_test = inline_test; }); +dart_library.library('inlined_conditional_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const inlined_conditional_test = Object.create(null); + inlined_conditional_test.topLevel = null; + inlined_conditional_test.foo = function(c) { + return dart.as(dart.is(c, core.Function) ? null : c, core.Function); + }; + dart.fn(inlined_conditional_test.foo, core.Function, [dart.dynamic]); + inlined_conditional_test.bar = function() { + let b = new core.Object(); + function f() { + if (inlined_conditional_test.foo(inlined_conditional_test.topLevel) == null) { + return b.toString(); + } else { + return b.hashCode; + } + } + dart.fn(f); + return f(); + }; + dart.fn(inlined_conditional_test.bar); + inlined_conditional_test.main = function() { + inlined_conditional_test.topLevel = new core.Object(); + inlined_conditional_test.topLevel = inlined_conditional_test.main; + let res = inlined_conditional_test.bar(); + expect$.Expect.isTrue(typeof res == 'string'); + }; + dart.fn(inlined_conditional_test.main); + // Exports: + exports.inlined_conditional_test = inlined_conditional_test; +}); +dart_library.library('inst_field_initializer_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const inst_field_initializer_test = Object.create(null); + inst_field_initializer_test.Cheese = class Cheese extends core.Object { + Cheese() { + this.name = ""; + this.smell = inst_field_initializer_test.Cheese.mild; + expect$.Expect.equals("", this.name); + expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, this.smell); + } + initInBlock(s) { + this.name = ""; + this.smell = inst_field_initializer_test.Cheese.mild; + expect$.Expect.equals("", this.name); + expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, this.smell); + this.name = s; + } + initFieldParam(name, smell) { + this.name = name; + this.smell = smell; + } + hideAndSeek(mild) { + this.name = dart.as(mild, core.String); + this.smell = inst_field_initializer_test.Cheese.mild; + expect$.Expect.equals(mild, this.name); + expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, this.smell); + } + }; + dart.defineNamedConstructor(inst_field_initializer_test.Cheese, 'initInBlock'); + dart.defineNamedConstructor(inst_field_initializer_test.Cheese, 'initFieldParam'); + dart.defineNamedConstructor(inst_field_initializer_test.Cheese, 'hideAndSeek'); + dart.setSignature(inst_field_initializer_test.Cheese, { + constructors: () => ({ + Cheese: [inst_field_initializer_test.Cheese, []], + initInBlock: [inst_field_initializer_test.Cheese, [core.String]], + initFieldParam: [inst_field_initializer_test.Cheese, [core.String, core.int]], + hideAndSeek: [inst_field_initializer_test.Cheese, [dart.dynamic]] + }) + }); + inst_field_initializer_test.Cheese.mild = 1; + inst_field_initializer_test.Cheese.stinky = 2; + inst_field_initializer_test.HasNoExplicitConstructor = class HasNoExplicitConstructor extends core.Object { + HasNoExplicitConstructor() { + this.s = "Tilsiter"; + } + }; + inst_field_initializer_test.main = function() { + let generic = new inst_field_initializer_test.Cheese(); + expect$.Expect.equals("", generic.name); + expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, generic.smell); + let gruyere = new inst_field_initializer_test.Cheese.initInBlock("Gruyere"); + expect$.Expect.equals("Gruyere", gruyere.name); + expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, gruyere.smell); + let munster = new inst_field_initializer_test.Cheese.initFieldParam("Munster", inst_field_initializer_test.Cheese.stinky); + expect$.Expect.equals("Munster", munster.name); + expect$.Expect.equals(inst_field_initializer_test.Cheese.stinky, munster.smell); + let brie = new inst_field_initializer_test.Cheese.hideAndSeek("Brie"); + expect$.Expect.equals("Brie", brie.name); + expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, brie.smell); + let t = new inst_field_initializer_test.HasNoExplicitConstructor(); + expect$.Expect.equals("Tilsiter", t.s); + }; + dart.fn(inst_field_initializer_test.main); + // Exports: + exports.inst_field_initializer_test = inst_field_initializer_test; +}); dart_library.library('instance_compound_assignment_operator_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -77519,7 +75878,7 @@ dart_library.library('instantiate_type_variable_test_none_multi', null, /* Impor // Exports: exports.instantiate_type_variable_test_none_multi = instantiate_type_variable_test_none_multi; }); -dart_library.library('inst_field_initializer_test', null, /* Imports */[ +dart_library.library('int2_test', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -77528,71 +75887,18 @@ dart_library.library('inst_field_initializer_test', null, /* Imports */[ const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const inst_field_initializer_test = Object.create(null); - inst_field_initializer_test.Cheese = class Cheese extends core.Object { - Cheese() { - this.name = ""; - this.smell = inst_field_initializer_test.Cheese.mild; - expect$.Expect.equals("", this.name); - expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, this.smell); - } - initInBlock(s) { - this.name = ""; - this.smell = inst_field_initializer_test.Cheese.mild; - expect$.Expect.equals("", this.name); - expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, this.smell); - this.name = s; - } - initFieldParam(name, smell) { - this.name = name; - this.smell = smell; - } - hideAndSeek(mild) { - this.name = dart.as(mild, core.String); - this.smell = inst_field_initializer_test.Cheese.mild; - expect$.Expect.equals(mild, this.name); - expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, this.smell); - } - }; - dart.defineNamedConstructor(inst_field_initializer_test.Cheese, 'initInBlock'); - dart.defineNamedConstructor(inst_field_initializer_test.Cheese, 'initFieldParam'); - dart.defineNamedConstructor(inst_field_initializer_test.Cheese, 'hideAndSeek'); - dart.setSignature(inst_field_initializer_test.Cheese, { - constructors: () => ({ - Cheese: [inst_field_initializer_test.Cheese, []], - initInBlock: [inst_field_initializer_test.Cheese, [core.String]], - initFieldParam: [inst_field_initializer_test.Cheese, [core.String, core.int]], - hideAndSeek: [inst_field_initializer_test.Cheese, [dart.dynamic]] - }) - }); - inst_field_initializer_test.Cheese.mild = 1; - inst_field_initializer_test.Cheese.stinky = 2; - inst_field_initializer_test.HasNoExplicitConstructor = class HasNoExplicitConstructor extends core.Object { - HasNoExplicitConstructor() { - this.s = "Tilsiter"; - } - }; - inst_field_initializer_test.main = function() { - let generic = new inst_field_initializer_test.Cheese(); - expect$.Expect.equals("", generic.name); - expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, generic.smell); - let gruyere = new inst_field_initializer_test.Cheese.initInBlock("Gruyere"); - expect$.Expect.equals("Gruyere", gruyere.name); - expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, gruyere.smell); - let munster = new inst_field_initializer_test.Cheese.initFieldParam("Munster", inst_field_initializer_test.Cheese.stinky); - expect$.Expect.equals("Munster", munster.name); - expect$.Expect.equals(inst_field_initializer_test.Cheese.stinky, munster.smell); - let brie = new inst_field_initializer_test.Cheese.hideAndSeek("Brie"); - expect$.Expect.equals("Brie", brie.name); - expect$.Expect.equals(inst_field_initializer_test.Cheese.mild, brie.smell); - let t = new inst_field_initializer_test.HasNoExplicitConstructor(); - expect$.Expect.equals("Tilsiter", t.s); + const int2_test = Object.create(null); + int2_test.main = function() { + let b = dart.list([null, 10000000000000000000000000000000000000], core.int); + 42 + dart.notNull(b[dartx.get](1)); + let c = dart.notNull(b[dartx.get](1)) & 1; + expect$.Expect.equals(0, c); }; - dart.fn(inst_field_initializer_test.main); + dart.fn(int2_test.main); // Exports: - exports.inst_field_initializer_test = inst_field_initializer_test; + exports.int2_test = int2_test; }); -dart_library.library('int2_test', null, /* Imports */[ +dart_library.library('int_test', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -77601,16 +75907,59 @@ dart_library.library('int2_test', null, /* Imports */[ const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const int2_test = Object.create(null); - int2_test.main = function() { - let b = dart.list([null, 10000000000000000000000000000000000000], core.int); - 42 + dart.notNull(b[dartx.get](1)); - let c = dart.notNull(b[dartx.get](1)) & 1; - expect$.Expect.equals(0, c); + const int_test = Object.create(null); + int_test.IntTest = class IntTest extends core.Object { + static testMain() { + expect$.Expect.equals(0, 0 + 0); + expect$.Expect.equals(1, 1 + 0); + expect$.Expect.equals(2, 1 + 1); + expect$.Expect.equals(3, -1 + 4); + expect$.Expect.equals(3, 4 + -1); + expect$.Expect.equals(1, 1 - 0); + expect$.Expect.equals(0, 1 - 1); + expect$.Expect.equals(1, 2 - 1); + expect$.Expect.equals(2, 4 - 2); + expect$.Expect.equals(-2, 2 - 4); + expect$.Expect.equals(0, 3 * 0); + expect$.Expect.equals(0, 0 * 3); + expect$.Expect.equals(1, 1 * 1); + expect$.Expect.equals(5, 5 * 1); + expect$.Expect.equals(15, 3 * 5); + expect$.Expect.equals(-1, 1 * -1); + expect$.Expect.equals(-15, -5 * 3); + expect$.Expect.equals(15, -5 * -3); + expect$.Expect.equals(1, (2 / 2)[dartx.truncate]()); + expect$.Expect.equals(2, (2 / 1)[dartx.truncate]()); + expect$.Expect.equals(2, (4 / 2)[dartx.truncate]()); + expect$.Expect.equals(2, (5 / 2)[dartx.truncate]()); + expect$.Expect.equals(-2, (-5 / 2)[dartx.truncate]()); + expect$.Expect.equals(-2, (-4 / 2)[dartx.truncate]()); + expect$.Expect.equals(-2, (5 / -2)[dartx.truncate]()); + expect$.Expect.equals(-2, (4 / -2)[dartx.truncate]()); + expect$.Expect.equals(3, 7 % 4); + expect$.Expect.equals(2, 9 % 7); + expect$.Expect.equals(2, -7 % 9); + expect$.Expect.equals(7, 7 % -9); + expect$.Expect.equals(7, 7 % 9); + expect$.Expect.equals(2, -7 % -9); + expect$.Expect.equals(3, (7)[dartx.remainder](4)); + expect$.Expect.equals(2, (9)[dartx.remainder](7)); + expect$.Expect.equals(-7, (-7)[dartx.remainder](9)); + expect$.Expect.equals(7, (7)[dartx.remainder](-9)); + expect$.Expect.equals(7, (7)[dartx.remainder](9)); + expect$.Expect.equals(-7, (-7)[dartx.remainder](-9)); + } }; - dart.fn(int2_test.main); + dart.setSignature(int_test.IntTest, { + statics: () => ({testMain: [dart.void, []]}), + names: ['testMain'] + }); + int_test.main = function() { + int_test.IntTest.testMain(); + }; + dart.fn(int_test.main); // Exports: - exports.int2_test = int2_test; + exports.int_test = int_test; }); dart_library.library('integer_division_by_zero_test', null, /* Imports */[ 'dart_sdk', @@ -77886,69 +76235,6 @@ dart_library.library('intrinsified_methods_test', null, /* Imports */[ // Exports: exports.intrinsified_methods_test = intrinsified_methods_test; }); -dart_library.library('int_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const int_test = Object.create(null); - int_test.IntTest = class IntTest extends core.Object { - static testMain() { - expect$.Expect.equals(0, 0 + 0); - expect$.Expect.equals(1, 1 + 0); - expect$.Expect.equals(2, 1 + 1); - expect$.Expect.equals(3, -1 + 4); - expect$.Expect.equals(3, 4 + -1); - expect$.Expect.equals(1, 1 - 0); - expect$.Expect.equals(0, 1 - 1); - expect$.Expect.equals(1, 2 - 1); - expect$.Expect.equals(2, 4 - 2); - expect$.Expect.equals(-2, 2 - 4); - expect$.Expect.equals(0, 3 * 0); - expect$.Expect.equals(0, 0 * 3); - expect$.Expect.equals(1, 1 * 1); - expect$.Expect.equals(5, 5 * 1); - expect$.Expect.equals(15, 3 * 5); - expect$.Expect.equals(-1, 1 * -1); - expect$.Expect.equals(-15, -5 * 3); - expect$.Expect.equals(15, -5 * -3); - expect$.Expect.equals(1, (2 / 2)[dartx.truncate]()); - expect$.Expect.equals(2, (2 / 1)[dartx.truncate]()); - expect$.Expect.equals(2, (4 / 2)[dartx.truncate]()); - expect$.Expect.equals(2, (5 / 2)[dartx.truncate]()); - expect$.Expect.equals(-2, (-5 / 2)[dartx.truncate]()); - expect$.Expect.equals(-2, (-4 / 2)[dartx.truncate]()); - expect$.Expect.equals(-2, (5 / -2)[dartx.truncate]()); - expect$.Expect.equals(-2, (4 / -2)[dartx.truncate]()); - expect$.Expect.equals(3, 7 % 4); - expect$.Expect.equals(2, 9 % 7); - expect$.Expect.equals(2, -7 % 9); - expect$.Expect.equals(7, 7 % -9); - expect$.Expect.equals(7, 7 % 9); - expect$.Expect.equals(2, -7 % -9); - expect$.Expect.equals(3, (7)[dartx.remainder](4)); - expect$.Expect.equals(2, (9)[dartx.remainder](7)); - expect$.Expect.equals(-7, (-7)[dartx.remainder](9)); - expect$.Expect.equals(7, (7)[dartx.remainder](-9)); - expect$.Expect.equals(7, (7)[dartx.remainder](9)); - expect$.Expect.equals(-7, (-7)[dartx.remainder](-9)); - } - }; - dart.setSignature(int_test.IntTest, { - statics: () => ({testMain: [dart.void, []]}), - names: ['testMain'] - }); - int_test.main = function() { - int_test.IntTest.testMain(); - }; - dart.fn(int_test.main); - // Exports: - exports.int_test = int_test; -}); dart_library.library('is_interfaces2_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -79106,128 +77392,6 @@ dart_library.library('issue15720_test', null, /* Imports */[ // Exports: exports.issue15720_test = issue15720_test; }); -dart_library.library('issue_1751477_test', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const issue_1751477_test = Object.create(null); - const issue_1751477_lib1 = Object.create(null); - const issue_1751477_lib2 = Object.create(null); - const issue_1751477_lib3 = Object.create(null); - const issue_1751477_lib4 = Object.create(null); - const issue_1751477_lib5 = Object.create(null); - const issue_1751477_lib6 = Object.create(null); - const issue_1751477_lib7 = Object.create(null); - const issue_1751477_lib8 = Object.create(null); - const issue_1751477_lib9 = Object.create(null); - const issue_1751477_lib11 = Object.create(null); - const issue_1751477_lib21 = Object.create(null); - const issue_1751477_lib31 = Object.create(null); - const issue_1751477_lib41 = Object.create(null); - const issue_1751477_lib51 = Object.create(null); - const issue_1751477_lib61 = Object.create(null); - const issue_1751477_lib71 = Object.create(null); - const issue_1751477_lib81 = Object.create(null); - const issue_1751477_lib91 = Object.create(null); - issue_1751477_test.main = function() { - loadLibrary().then(dart.fn(_ => { - loadLibrary().then(dart.fn(_ => { - loadLibrary().then(dart.fn(_ => { - loadLibrary().then(dart.fn(_ => { - loadLibrary().then(dart.fn(_ => { - loadLibrary().then(dart.fn(_ => { - loadLibrary().then(dart.fn(_ => { - loadLibrary().then(dart.fn(_ => { - loadLibrary().then(dart.fn(_ => { - })); - })); - })); - })); - })); - })); - })); - })); - })); - }; - dart.fn(issue_1751477_test.main); - issue_1751477_lib1.lib1_func = function() { - }; - dart.fn(issue_1751477_lib1.lib1_func); - issue_1751477_lib2.lib2_func = function() { - }; - dart.fn(issue_1751477_lib2.lib2_func); - issue_1751477_lib3.lib3_func = function() { - }; - dart.fn(issue_1751477_lib3.lib3_func); - issue_1751477_lib4.lib4_func = function() { - }; - dart.fn(issue_1751477_lib4.lib4_func); - issue_1751477_lib5.lib5_func = function() { - }; - dart.fn(issue_1751477_lib5.lib5_func); - issue_1751477_lib6.lib6_func = function() { - }; - dart.fn(issue_1751477_lib6.lib6_func); - issue_1751477_lib7.lib7_func = function() { - }; - dart.fn(issue_1751477_lib7.lib7_func); - issue_1751477_lib8.lib8_func = function() { - }; - dart.fn(issue_1751477_lib8.lib8_func); - issue_1751477_lib9.lib9_func = function() { - }; - dart.fn(issue_1751477_lib9.lib9_func); - issue_1751477_lib11.lib11_func = function() { - }; - dart.fn(issue_1751477_lib11.lib11_func); - issue_1751477_lib21.lib21_func = function() { - }; - dart.fn(issue_1751477_lib21.lib21_func); - issue_1751477_lib31.lib31_func = function() { - }; - dart.fn(issue_1751477_lib31.lib31_func); - issue_1751477_lib41.lib41_func = function() { - }; - dart.fn(issue_1751477_lib41.lib41_func); - issue_1751477_lib51.lib51_func = function() { - }; - dart.fn(issue_1751477_lib51.lib51_func); - issue_1751477_lib61.lib61_func = function() { - }; - dart.fn(issue_1751477_lib61.lib61_func); - issue_1751477_lib71.lib71_func = function() { - }; - dart.fn(issue_1751477_lib71.lib71_func); - issue_1751477_lib81.lib81_func = function() { - }; - dart.fn(issue_1751477_lib81.lib81_func); - issue_1751477_lib91.lib91_func = function() { - }; - dart.fn(issue_1751477_lib91.lib91_func); - // Exports: - exports.issue_1751477_test = issue_1751477_test; - exports.issue_1751477_lib1 = issue_1751477_lib1; - exports.issue_1751477_lib2 = issue_1751477_lib2; - exports.issue_1751477_lib3 = issue_1751477_lib3; - exports.issue_1751477_lib4 = issue_1751477_lib4; - exports.issue_1751477_lib5 = issue_1751477_lib5; - exports.issue_1751477_lib6 = issue_1751477_lib6; - exports.issue_1751477_lib7 = issue_1751477_lib7; - exports.issue_1751477_lib8 = issue_1751477_lib8; - exports.issue_1751477_lib9 = issue_1751477_lib9; - exports.issue_1751477_lib11 = issue_1751477_lib11; - exports.issue_1751477_lib21 = issue_1751477_lib21; - exports.issue_1751477_lib31 = issue_1751477_lib31; - exports.issue_1751477_lib41 = issue_1751477_lib41; - exports.issue_1751477_lib51 = issue_1751477_lib51; - exports.issue_1751477_lib61 = issue_1751477_lib61; - exports.issue_1751477_lib71 = issue_1751477_lib71; - exports.issue_1751477_lib81 = issue_1751477_lib81; - exports.issue_1751477_lib91 = issue_1751477_lib91; -}); dart_library.library('issue18628_1_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -79350,39 +77514,6 @@ dart_library.library('issue21957_test', null, /* Imports */[ // Exports: exports.issue21957_test = issue21957_test; }); -dart_library.library('issue_22780_test_01_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const issue_22780_test_01_multi = Object.create(null); - issue_22780_test_01_multi.main = function() { - function f() { - return `Oh, the joy of ${f()}`; - } - dart.fn(f); - core.print(f()); - }; - dart.fn(issue_22780_test_01_multi.main); - // Exports: - exports.issue_22780_test_01_multi = issue_22780_test_01_multi; -}); -dart_library.library('issue_22780_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const issue_22780_test_none_multi = Object.create(null); - issue_22780_test_none_multi.main = function() { - }; - dart.fn(issue_22780_test_none_multi.main); - // Exports: - exports.issue_22780_test_none_multi = issue_22780_test_none_multi; -}); dart_library.library('issue22800_test', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -79491,22 +77622,6 @@ dart_library.library('issue23244_test', null, /* Imports */[ // Exports: exports.issue23244_test = issue23244_test; }); -dart_library.library('issue_23914_test', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const collection = dart_sdk.collection; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const issue_23914_test = Object.create(null); - issue_23914_test.main = function() { - let a = core.List.unmodifiable(new (collection.LinkedList$(collection.LinkedListEntry))()); - }; - dart.fn(issue_23914_test.main); - // Exports: - exports.issue_23914_test = issue_23914_test; -}); dart_library.library('issue4157508_test', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -79810,6 +77925,177 @@ dart_library.library('issue9949_test', null, /* Imports */[ // Exports: exports.issue9949_test = issue9949_test; }); +dart_library.library('issue_1751477_test', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const issue_1751477_test = Object.create(null); + const issue_1751477_lib1 = Object.create(null); + const issue_1751477_lib2 = Object.create(null); + const issue_1751477_lib3 = Object.create(null); + const issue_1751477_lib4 = Object.create(null); + const issue_1751477_lib5 = Object.create(null); + const issue_1751477_lib6 = Object.create(null); + const issue_1751477_lib7 = Object.create(null); + const issue_1751477_lib8 = Object.create(null); + const issue_1751477_lib9 = Object.create(null); + const issue_1751477_lib11 = Object.create(null); + const issue_1751477_lib21 = Object.create(null); + const issue_1751477_lib31 = Object.create(null); + const issue_1751477_lib41 = Object.create(null); + const issue_1751477_lib51 = Object.create(null); + const issue_1751477_lib61 = Object.create(null); + const issue_1751477_lib71 = Object.create(null); + const issue_1751477_lib81 = Object.create(null); + const issue_1751477_lib91 = Object.create(null); + issue_1751477_test.main = function() { + loadLibrary().then(dart.fn(_ => { + loadLibrary().then(dart.fn(_ => { + loadLibrary().then(dart.fn(_ => { + loadLibrary().then(dart.fn(_ => { + loadLibrary().then(dart.fn(_ => { + loadLibrary().then(dart.fn(_ => { + loadLibrary().then(dart.fn(_ => { + loadLibrary().then(dart.fn(_ => { + loadLibrary().then(dart.fn(_ => { + })); + })); + })); + })); + })); + })); + })); + })); + })); + }; + dart.fn(issue_1751477_test.main); + issue_1751477_lib1.lib1_func = function() { + }; + dart.fn(issue_1751477_lib1.lib1_func); + issue_1751477_lib2.lib2_func = function() { + }; + dart.fn(issue_1751477_lib2.lib2_func); + issue_1751477_lib3.lib3_func = function() { + }; + dart.fn(issue_1751477_lib3.lib3_func); + issue_1751477_lib4.lib4_func = function() { + }; + dart.fn(issue_1751477_lib4.lib4_func); + issue_1751477_lib5.lib5_func = function() { + }; + dart.fn(issue_1751477_lib5.lib5_func); + issue_1751477_lib6.lib6_func = function() { + }; + dart.fn(issue_1751477_lib6.lib6_func); + issue_1751477_lib7.lib7_func = function() { + }; + dart.fn(issue_1751477_lib7.lib7_func); + issue_1751477_lib8.lib8_func = function() { + }; + dart.fn(issue_1751477_lib8.lib8_func); + issue_1751477_lib9.lib9_func = function() { + }; + dart.fn(issue_1751477_lib9.lib9_func); + issue_1751477_lib11.lib11_func = function() { + }; + dart.fn(issue_1751477_lib11.lib11_func); + issue_1751477_lib21.lib21_func = function() { + }; + dart.fn(issue_1751477_lib21.lib21_func); + issue_1751477_lib31.lib31_func = function() { + }; + dart.fn(issue_1751477_lib31.lib31_func); + issue_1751477_lib41.lib41_func = function() { + }; + dart.fn(issue_1751477_lib41.lib41_func); + issue_1751477_lib51.lib51_func = function() { + }; + dart.fn(issue_1751477_lib51.lib51_func); + issue_1751477_lib61.lib61_func = function() { + }; + dart.fn(issue_1751477_lib61.lib61_func); + issue_1751477_lib71.lib71_func = function() { + }; + dart.fn(issue_1751477_lib71.lib71_func); + issue_1751477_lib81.lib81_func = function() { + }; + dart.fn(issue_1751477_lib81.lib81_func); + issue_1751477_lib91.lib91_func = function() { + }; + dart.fn(issue_1751477_lib91.lib91_func); + // Exports: + exports.issue_1751477_test = issue_1751477_test; + exports.issue_1751477_lib1 = issue_1751477_lib1; + exports.issue_1751477_lib2 = issue_1751477_lib2; + exports.issue_1751477_lib3 = issue_1751477_lib3; + exports.issue_1751477_lib4 = issue_1751477_lib4; + exports.issue_1751477_lib5 = issue_1751477_lib5; + exports.issue_1751477_lib6 = issue_1751477_lib6; + exports.issue_1751477_lib7 = issue_1751477_lib7; + exports.issue_1751477_lib8 = issue_1751477_lib8; + exports.issue_1751477_lib9 = issue_1751477_lib9; + exports.issue_1751477_lib11 = issue_1751477_lib11; + exports.issue_1751477_lib21 = issue_1751477_lib21; + exports.issue_1751477_lib31 = issue_1751477_lib31; + exports.issue_1751477_lib41 = issue_1751477_lib41; + exports.issue_1751477_lib51 = issue_1751477_lib51; + exports.issue_1751477_lib61 = issue_1751477_lib61; + exports.issue_1751477_lib71 = issue_1751477_lib71; + exports.issue_1751477_lib81 = issue_1751477_lib81; + exports.issue_1751477_lib91 = issue_1751477_lib91; +}); +dart_library.library('issue_22780_test_01_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const issue_22780_test_01_multi = Object.create(null); + issue_22780_test_01_multi.main = function() { + function f() { + return `Oh, the joy of ${f()}`; + } + dart.fn(f); + core.print(f()); + }; + dart.fn(issue_22780_test_01_multi.main); + // Exports: + exports.issue_22780_test_01_multi = issue_22780_test_01_multi; +}); +dart_library.library('issue_22780_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const issue_22780_test_none_multi = Object.create(null); + issue_22780_test_none_multi.main = function() { + }; + dart.fn(issue_22780_test_none_multi.main); + // Exports: + exports.issue_22780_test_none_multi = issue_22780_test_none_multi; +}); +dart_library.library('issue_23914_test', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const collection = dart_sdk.collection; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const issue_23914_test = Object.create(null); + issue_23914_test.main = function() { + let a = core.List.unmodifiable(new (collection.LinkedList$(collection.LinkedListEntry))()); + }; + dart.fn(issue_23914_test.main); + // Exports: + exports.issue_23914_test = issue_23914_test; +}); dart_library.library('js_properties_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -114179,6 +112465,74 @@ dart_library.library('mixin_illegal_object_test_none_multi', null, /* Imports */ // Exports: exports.mixin_illegal_object_test_none_multi = mixin_illegal_object_test_none_multi; }); +dart_library.library('mixin_illegal_super_use_test_none_multi', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const mixin_illegal_super_use_test_none_multi = Object.create(null); + mixin_illegal_super_use_test_none_multi.M = class M extends core.Object {}; + mixin_illegal_super_use_test_none_multi.P0 = class P0 extends core.Object { + foo() { + function inner() { + } + dart.fn(inner, dart.void, []); + inner(); + dart.fn(() => { + })(); + return 42; + } + }; + dart.setSignature(mixin_illegal_super_use_test_none_multi.P0, { + methods: () => ({foo: [dart.dynamic, []]}) + }); + mixin_illegal_super_use_test_none_multi.P1 = class P1 extends core.Object { + bar() { + return 87; + } + test() { + new mixin_illegal_super_use_test_none_multi.C(); + let d = new mixin_illegal_super_use_test_none_multi.D(); + let e = new mixin_illegal_super_use_test_none_multi.E(); + let f = new mixin_illegal_super_use_test_none_multi.F(); + expect$.Expect.equals(42, d.foo()); + expect$.Expect.equals(87, e.bar()); + expect$.Expect.equals(99, f.baz()); + } + }; + dart.setSignature(mixin_illegal_super_use_test_none_multi.P1, { + methods: () => ({ + bar: [dart.dynamic, []], + test: [dart.dynamic, []] + }) + }); + mixin_illegal_super_use_test_none_multi.P2 = class P2 extends core.Object { + baz() { + return 99; + } + }; + dart.setSignature(mixin_illegal_super_use_test_none_multi.P2, { + methods: () => ({baz: [dart.dynamic, []]}) + }); + mixin_illegal_super_use_test_none_multi.C = class C extends dart.mixin(core.Object, mixin_illegal_super_use_test_none_multi.M) {}; + mixin_illegal_super_use_test_none_multi.D = class D extends dart.mixin(core.Object, mixin_illegal_super_use_test_none_multi.P0) {}; + mixin_illegal_super_use_test_none_multi.E = class E extends dart.mixin(core.Object, mixin_illegal_super_use_test_none_multi.M, mixin_illegal_super_use_test_none_multi.P1) {}; + mixin_illegal_super_use_test_none_multi.F = class F extends dart.mixin(core.Object, mixin_illegal_super_use_test_none_multi.P2, mixin_illegal_super_use_test_none_multi.M) {}; + mixin_illegal_super_use_test_none_multi.main = function() { + let p1 = new mixin_illegal_super_use_test_none_multi.P1(); + let p2 = new mixin_illegal_super_use_test_none_multi.P2(); + expect$.Expect.equals(87, p1.bar()); + p1.test(); + expect$.Expect.equals(99, p2.baz()); + }; + dart.fn(mixin_illegal_super_use_test_none_multi.main); + // Exports: + exports.mixin_illegal_super_use_test_none_multi = mixin_illegal_super_use_test_none_multi; +}); dart_library.library('mixin_illegal_superclass_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -114271,74 +112625,6 @@ dart_library.library('mixin_illegal_superclass_test_none_multi', null, /* Import // Exports: exports.mixin_illegal_superclass_test_none_multi = mixin_illegal_superclass_test_none_multi; }); -dart_library.library('mixin_illegal_super_use_test_none_multi', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const mixin_illegal_super_use_test_none_multi = Object.create(null); - mixin_illegal_super_use_test_none_multi.M = class M extends core.Object {}; - mixin_illegal_super_use_test_none_multi.P0 = class P0 extends core.Object { - foo() { - function inner() { - } - dart.fn(inner, dart.void, []); - inner(); - dart.fn(() => { - })(); - return 42; - } - }; - dart.setSignature(mixin_illegal_super_use_test_none_multi.P0, { - methods: () => ({foo: [dart.dynamic, []]}) - }); - mixin_illegal_super_use_test_none_multi.P1 = class P1 extends core.Object { - bar() { - return 87; - } - test() { - new mixin_illegal_super_use_test_none_multi.C(); - let d = new mixin_illegal_super_use_test_none_multi.D(); - let e = new mixin_illegal_super_use_test_none_multi.E(); - let f = new mixin_illegal_super_use_test_none_multi.F(); - expect$.Expect.equals(42, d.foo()); - expect$.Expect.equals(87, e.bar()); - expect$.Expect.equals(99, f.baz()); - } - }; - dart.setSignature(mixin_illegal_super_use_test_none_multi.P1, { - methods: () => ({ - bar: [dart.dynamic, []], - test: [dart.dynamic, []] - }) - }); - mixin_illegal_super_use_test_none_multi.P2 = class P2 extends core.Object { - baz() { - return 99; - } - }; - dart.setSignature(mixin_illegal_super_use_test_none_multi.P2, { - methods: () => ({baz: [dart.dynamic, []]}) - }); - mixin_illegal_super_use_test_none_multi.C = class C extends dart.mixin(core.Object, mixin_illegal_super_use_test_none_multi.M) {}; - mixin_illegal_super_use_test_none_multi.D = class D extends dart.mixin(core.Object, mixin_illegal_super_use_test_none_multi.P0) {}; - mixin_illegal_super_use_test_none_multi.E = class E extends dart.mixin(core.Object, mixin_illegal_super_use_test_none_multi.M, mixin_illegal_super_use_test_none_multi.P1) {}; - mixin_illegal_super_use_test_none_multi.F = class F extends dart.mixin(core.Object, mixin_illegal_super_use_test_none_multi.P2, mixin_illegal_super_use_test_none_multi.M) {}; - mixin_illegal_super_use_test_none_multi.main = function() { - let p1 = new mixin_illegal_super_use_test_none_multi.P1(); - let p2 = new mixin_illegal_super_use_test_none_multi.P2(); - expect$.Expect.equals(87, p1.bar()); - p1.test(); - expect$.Expect.equals(99, p2.baz()); - }; - dart.fn(mixin_illegal_super_use_test_none_multi.main); - // Exports: - exports.mixin_illegal_super_use_test_none_multi = mixin_illegal_super_use_test_none_multi; -}); dart_library.library('mixin_implements2_test', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -114478,90 +112764,6 @@ dart_library.library('mixin_invalid_inheritance2_test_none_multi', null, /* Impo // Exports: exports.mixin_invalid_inheritance2_test_none_multi = mixin_invalid_inheritance2_test_none_multi; }); -dart_library.library('mixin_issue10216_2_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const mixin_issue10216_2_test = Object.create(null); - mixin_issue10216_2_test.M0 = class M0 extends core.Object { - foo() { - return 42; - } - }; - dart.setSignature(mixin_issue10216_2_test.M0, { - methods: () => ({foo: [dart.dynamic, []]}) - }); - mixin_issue10216_2_test.M1 = class M1 extends dart.mixin(core.Object, mixin_issue10216_2_test.M0) {}; - mixin_issue10216_2_test.M2 = class M2 extends dart.mixin(core.Object, mixin_issue10216_2_test.M1) {}; - mixin_issue10216_2_test.makeM2 = function() { - return dart.as(dart.list([new core.Object(), new mixin_issue10216_2_test.M2()], core.Object)[dartx.last], mixin_issue10216_2_test.M2); - }; - dart.fn(mixin_issue10216_2_test.makeM2); - mixin_issue10216_2_test.main = function() { - expect$.Expect.equals(42, dart.dsend(mixin_issue10216_2_test.makeM2(), 'foo')); - }; - dart.fn(mixin_issue10216_2_test.main); - // Exports: - exports.mixin_issue10216_2_test = mixin_issue10216_2_test; -}); -dart_library.library('mixin_issue10216_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const mixin_issue10216_test = Object.create(null); - mixin_issue10216_test.A = class A extends core.Object { - foo(x, y) { - if (y === void 0) y = null; - return `${x};${y}`; - } - }; - dart.setSignature(mixin_issue10216_test.A, { - methods: () => ({foo: [dart.dynamic, [dart.dynamic], [dart.dynamic]]}) - }); - mixin_issue10216_test.M1 = class M1 extends core.Object {}; - mixin_issue10216_test.M2 = class M2 extends core.Object { - plain(x) { - return `P ${x}`; - } - bar(x, y) { - if (y === void 0) y = null; - return `${y},${x}`; - } - }; - dart.setSignature(mixin_issue10216_test.M2, { - methods: () => ({ - plain: [dart.dynamic, [dart.dynamic]], - bar: [dart.dynamic, [dart.dynamic], [dart.dynamic]] - }) - }); - mixin_issue10216_test.M3 = class M3 extends core.Object {}; - mixin_issue10216_test.B = class B extends dart.mixin(mixin_issue10216_test.A, mixin_issue10216_test.M1, mixin_issue10216_test.M2, mixin_issue10216_test.M3) {}; - mixin_issue10216_test.makeB = function() { - return dart.as(dart.list([new mixin_issue10216_test.A(), new mixin_issue10216_test.B()], mixin_issue10216_test.A)[dartx.last], mixin_issue10216_test.B); - }; - dart.fn(mixin_issue10216_test.makeB); - mixin_issue10216_test.main = function() { - let b = mixin_issue10216_test.makeB(); - expect$.Expect.equals('1;2', dart.dsend(b, 'foo', 1, 2)); - expect$.Expect.equals('2;null', dart.dsend(b, 'foo', 2)); - expect$.Expect.equals('P 3', dart.dsend(b, 'plain', 3)); - expect$.Expect.equals('100,4', dart.dsend(b, 'bar', 4, 100)); - expect$.Expect.equals('null,5', dart.dsend(b, 'bar', 5)); - }; - dart.fn(mixin_issue10216_test.main); - // Exports: - exports.mixin_issue10216_test = mixin_issue10216_test; -}); dart_library.library('mixin_is_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -114661,6 +112863,90 @@ dart_library.library('mixin_is_test', null, /* Imports */[ // Exports: exports.mixin_is_test = mixin_is_test; }); +dart_library.library('mixin_issue10216_2_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const mixin_issue10216_2_test = Object.create(null); + mixin_issue10216_2_test.M0 = class M0 extends core.Object { + foo() { + return 42; + } + }; + dart.setSignature(mixin_issue10216_2_test.M0, { + methods: () => ({foo: [dart.dynamic, []]}) + }); + mixin_issue10216_2_test.M1 = class M1 extends dart.mixin(core.Object, mixin_issue10216_2_test.M0) {}; + mixin_issue10216_2_test.M2 = class M2 extends dart.mixin(core.Object, mixin_issue10216_2_test.M1) {}; + mixin_issue10216_2_test.makeM2 = function() { + return dart.as(dart.list([new core.Object(), new mixin_issue10216_2_test.M2()], core.Object)[dartx.last], mixin_issue10216_2_test.M2); + }; + dart.fn(mixin_issue10216_2_test.makeM2); + mixin_issue10216_2_test.main = function() { + expect$.Expect.equals(42, dart.dsend(mixin_issue10216_2_test.makeM2(), 'foo')); + }; + dart.fn(mixin_issue10216_2_test.main); + // Exports: + exports.mixin_issue10216_2_test = mixin_issue10216_2_test; +}); +dart_library.library('mixin_issue10216_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const mixin_issue10216_test = Object.create(null); + mixin_issue10216_test.A = class A extends core.Object { + foo(x, y) { + if (y === void 0) y = null; + return `${x};${y}`; + } + }; + dart.setSignature(mixin_issue10216_test.A, { + methods: () => ({foo: [dart.dynamic, [dart.dynamic], [dart.dynamic]]}) + }); + mixin_issue10216_test.M1 = class M1 extends core.Object {}; + mixin_issue10216_test.M2 = class M2 extends core.Object { + plain(x) { + return `P ${x}`; + } + bar(x, y) { + if (y === void 0) y = null; + return `${y},${x}`; + } + }; + dart.setSignature(mixin_issue10216_test.M2, { + methods: () => ({ + plain: [dart.dynamic, [dart.dynamic]], + bar: [dart.dynamic, [dart.dynamic], [dart.dynamic]] + }) + }); + mixin_issue10216_test.M3 = class M3 extends core.Object {}; + mixin_issue10216_test.B = class B extends dart.mixin(mixin_issue10216_test.A, mixin_issue10216_test.M1, mixin_issue10216_test.M2, mixin_issue10216_test.M3) {}; + mixin_issue10216_test.makeB = function() { + return dart.as(dart.list([new mixin_issue10216_test.A(), new mixin_issue10216_test.B()], mixin_issue10216_test.A)[dartx.last], mixin_issue10216_test.B); + }; + dart.fn(mixin_issue10216_test.makeB); + mixin_issue10216_test.main = function() { + let b = mixin_issue10216_test.makeB(); + expect$.Expect.equals('1;2', dart.dsend(b, 'foo', 1, 2)); + expect$.Expect.equals('2;null', dart.dsend(b, 'foo', 2)); + expect$.Expect.equals('P 3', dart.dsend(b, 'plain', 3)); + expect$.Expect.equals('100,4', dart.dsend(b, 'bar', 4, 100)); + expect$.Expect.equals('null,5', dart.dsend(b, 'bar', 5)); + }; + dart.fn(mixin_issue10216_test.main); + // Exports: + exports.mixin_issue10216_test = mixin_issue10216_test; +}); dart_library.library('mixin_mixin2_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -115636,43 +113922,6 @@ dart_library.library('mixin_this_use_test', null, /* Imports */[ // Exports: exports.mixin_this_use_test = mixin_this_use_test; }); -dart_library.library('mixin_typedef_constructor_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const mixin_typedef_constructor_test = Object.create(null); - mixin_typedef_constructor_test.A = class A extends core.Object { - A(field) { - this.field = field; - } - }; - dart.setSignature(mixin_typedef_constructor_test.A, { - constructors: () => ({A: [mixin_typedef_constructor_test.A, [dart.dynamic]]}) - }); - mixin_typedef_constructor_test.Mixin = class Mixin extends core.Object { - Mixin() { - this.mixinField = 54; - } - }; - mixin_typedef_constructor_test.MyClass = class MyClass extends dart.mixin(mixin_typedef_constructor_test.A, mixin_typedef_constructor_test.Mixin) { - MyClass() { - super.A(...arguments); - } - }; - mixin_typedef_constructor_test.main = function() { - let a = new mixin_typedef_constructor_test.MyClass(42); - expect$.Expect.equals(42, a.field); - expect$.Expect.equals(54, a.mixinField); - }; - dart.fn(mixin_typedef_constructor_test.main); - // Exports: - exports.mixin_typedef_constructor_test = mixin_typedef_constructor_test; -}); dart_library.library('mixin_type_parameter1_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -116247,6 +114496,43 @@ dart_library.library('mixin_type_variable_test_none_multi', null, /* Imports */[ // Exports: exports.mixin_type_variable_test_none_multi = mixin_type_variable_test_none_multi; }); +dart_library.library('mixin_typedef_constructor_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const mixin_typedef_constructor_test = Object.create(null); + mixin_typedef_constructor_test.A = class A extends core.Object { + A(field) { + this.field = field; + } + }; + dart.setSignature(mixin_typedef_constructor_test.A, { + constructors: () => ({A: [mixin_typedef_constructor_test.A, [dart.dynamic]]}) + }); + mixin_typedef_constructor_test.Mixin = class Mixin extends core.Object { + Mixin() { + this.mixinField = 54; + } + }; + mixin_typedef_constructor_test.MyClass = class MyClass extends dart.mixin(mixin_typedef_constructor_test.A, mixin_typedef_constructor_test.Mixin) { + MyClass() { + super.A(...arguments); + } + }; + mixin_typedef_constructor_test.main = function() { + let a = new mixin_typedef_constructor_test.MyClass(42); + expect$.Expect.equals(42, a.field); + expect$.Expect.equals(54, a.mixinField); + }; + dart.fn(mixin_typedef_constructor_test.main); + // Exports: + exports.mixin_typedef_constructor_test = mixin_typedef_constructor_test; +}); dart_library.library('modulo_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -116429,7 +114715,7 @@ dart_library.library('multi_assign_test', null, /* Imports */[ // Exports: exports.multi_assign_test = multi_assign_test; }); -dart_library.library('multiline_newline_test_04_multi', null, /* Imports */[ +dart_library.library('multi_pass2_test', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -116438,51 +114724,49 @@ dart_library.library('multiline_newline_test_04_multi', null, /* Imports */[ const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const multiline_newline_test_04_multi = Object.create(null); - const multiline_newline_cr = Object.create(null); - const multiline_newline_crlf = Object.create(null); - const multiline_newline_lf = Object.create(null); - multiline_newline_test_04_multi.main = function() { - expect$.Expect.equals(4, dart.dload(multiline_newline_cr.constantMultilineString, 'length')); - expect$.Expect.equals(4, dart.dload(multiline_newline_crlf.constantMultilineString, 'length')); - expect$.Expect.equals(4, dart.dload(multiline_newline_lf.constantMultilineString, 'length')); - expect$.Expect.equals(multiline_newline_cr.constantMultilineString, multiline_newline_crlf.constantMultilineString); - expect$.Expect.equals(multiline_newline_crlf.constantMultilineString, multiline_newline_lf.constantMultilineString); - expect$.Expect.equals(multiline_newline_lf.constantMultilineString, multiline_newline_cr.constantMultilineString); - expect$.Expect.equals(4, dart.dload(multiline_newline_cr.nonConstantMultilineString, 'length')); - expect$.Expect.equals(4, dart.dload(multiline_newline_crlf.nonConstantMultilineString, 'length')); - expect$.Expect.equals(4, dart.dload(multiline_newline_lf.nonConstantMultilineString, 'length')); - expect$.Expect.equals(multiline_newline_cr.nonConstantMultilineString, multiline_newline_crlf.nonConstantMultilineString); - expect$.Expect.equals(multiline_newline_crlf.nonConstantMultilineString, multiline_newline_lf.nonConstantMultilineString); - expect$.Expect.equals(multiline_newline_lf.nonConstantMultilineString, multiline_newline_cr.nonConstantMultilineString); - let c1 = dart.equals(multiline_newline_cr.constantMultilineString, multiline_newline_crlf.constantMultilineString) ? true : null; - let c2 = dart.equals(multiline_newline_crlf.constantMultilineString, multiline_newline_lf.constantMultilineString) ? true : null; - let c3 = dart.equals(multiline_newline_lf.constantMultilineString, multiline_newline_cr.constantMultilineString) ? true : null; - expect$.Expect.isTrue(c1); - expect$.Expect.isTrue(c2); - expect$.Expect.isTrue(c3); - let c7 = !dart.equals(multiline_newline_cr.constantMultilineString, multiline_newline_crlf.constantMultilineString) ? true : null; - let c8 = !dart.equals(multiline_newline_crlf.constantMultilineString, multiline_newline_lf.constantMultilineString) ? true : null; - let c9 = !dart.equals(multiline_newline_lf.constantMultilineString, multiline_newline_cr.constantMultilineString) ? true : null; - expect$.Expect.isNull(c7); - expect$.Expect.isNull(c8); - expect$.Expect.isNull(c9); - let c10 = dart.notNull(c7) ? 1 : 2; + const multi_pass2_test = Object.create(null); + multi_pass2_test.Base = class Base extends core.Object { + Base(value) { + this.value = value; + } }; - dart.fn(multiline_newline_test_04_multi.main); - multiline_newline_cr.constantMultilineString = "a\rb\r"; - multiline_newline_cr.nonConstantMultilineString = "a\rb\r"; - multiline_newline_crlf.constantMultilineString = "a\r\nb\r\n"; - multiline_newline_crlf.nonConstantMultilineString = "a\r\nb\r\n"; - multiline_newline_lf.constantMultilineString = "a\nb\n"; - multiline_newline_lf.nonConstantMultilineString = "a\nb\n"; + dart.setSignature(multi_pass2_test.Base, { + constructors: () => ({Base: [multi_pass2_test.Base, [dart.dynamic]]}) + }); + multi_pass2_test.MultiPass2Test = class MultiPass2Test extends core.Object { + static testMain() { + let a = new multi_pass2_test.B(5); + expect$.Expect.equals(5, a.value); + } + }; + dart.setSignature(multi_pass2_test.MultiPass2Test, { + statics: () => ({testMain: [dart.dynamic, []]}), + names: ['testMain'] + }); + multi_pass2_test.main = function() { + multi_pass2_test.MultiPass2Test.testMain(); + }; + dart.fn(multi_pass2_test.main); + multi_pass2_test.A = class A extends multi_pass2_test.Base { + A(v) { + super.Base(v); + } + }; + dart.setSignature(multi_pass2_test.A, { + constructors: () => ({A: [multi_pass2_test.A, [dart.dynamic]]}) + }); + multi_pass2_test.B = class B extends multi_pass2_test.A { + B(v) { + super.A(v); + } + }; + dart.setSignature(multi_pass2_test.B, { + constructors: () => ({B: [multi_pass2_test.B, [dart.dynamic]]}) + }); // Exports: - exports.multiline_newline_test_04_multi = multiline_newline_test_04_multi; - exports.multiline_newline_cr = multiline_newline_cr; - exports.multiline_newline_crlf = multiline_newline_crlf; - exports.multiline_newline_lf = multiline_newline_lf; + exports.multi_pass2_test = multi_pass2_test; }); -dart_library.library('multiline_newline_test_05_multi', null, /* Imports */[ +dart_library.library('multi_pass_test', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -116491,51 +114775,49 @@ dart_library.library('multiline_newline_test_05_multi', null, /* Imports */[ const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const multiline_newline_test_05_multi = Object.create(null); - const multiline_newline_cr = Object.create(null); - const multiline_newline_crlf = Object.create(null); - const multiline_newline_lf = Object.create(null); - multiline_newline_test_05_multi.main = function() { - expect$.Expect.equals(4, multiline_newline_cr.constantMultilineString[dartx.length]); - expect$.Expect.equals(4, multiline_newline_crlf.constantMultilineString[dartx.length]); - expect$.Expect.equals(4, multiline_newline_lf.constantMultilineString[dartx.length]); - expect$.Expect.equals(multiline_newline_cr.constantMultilineString, multiline_newline_crlf.constantMultilineString); - expect$.Expect.equals(multiline_newline_crlf.constantMultilineString, multiline_newline_lf.constantMultilineString); - expect$.Expect.equals(multiline_newline_lf.constantMultilineString, multiline_newline_cr.constantMultilineString); - expect$.Expect.equals(4, multiline_newline_cr.nonConstantMultilineString[dartx.length]); - expect$.Expect.equals(4, multiline_newline_crlf.nonConstantMultilineString[dartx.length]); - expect$.Expect.equals(4, multiline_newline_lf.nonConstantMultilineString[dartx.length]); - expect$.Expect.equals(multiline_newline_cr.nonConstantMultilineString, multiline_newline_crlf.nonConstantMultilineString); - expect$.Expect.equals(multiline_newline_crlf.nonConstantMultilineString, multiline_newline_lf.nonConstantMultilineString); - expect$.Expect.equals(multiline_newline_lf.nonConstantMultilineString, multiline_newline_cr.nonConstantMultilineString); - let c1 = multiline_newline_cr.constantMultilineString == multiline_newline_crlf.constantMultilineString ? true : null; - let c2 = multiline_newline_crlf.constantMultilineString == multiline_newline_lf.constantMultilineString ? true : null; - let c3 = multiline_newline_lf.constantMultilineString == multiline_newline_cr.constantMultilineString ? true : null; - expect$.Expect.isTrue(c1); - expect$.Expect.isTrue(c2); - expect$.Expect.isTrue(c3); - let c7 = multiline_newline_cr.constantMultilineString != multiline_newline_crlf.constantMultilineString ? true : null; - let c8 = multiline_newline_crlf.constantMultilineString != multiline_newline_lf.constantMultilineString ? true : null; - let c9 = multiline_newline_lf.constantMultilineString != multiline_newline_cr.constantMultilineString ? true : null; - expect$.Expect.isNull(c7); - expect$.Expect.isNull(c8); - expect$.Expect.isNull(c9); - let c11 = dart.notNull(c8) ? 2 : 3; + const multi_pass_test = Object.create(null); + multi_pass_test.Base = class Base extends core.Object { + Base(value) { + this.value = value; + } }; - dart.fn(multiline_newline_test_05_multi.main); - multiline_newline_cr.constantMultilineString = "a\rb\r"; - multiline_newline_cr.nonConstantMultilineString = "a\rb\r"; - multiline_newline_crlf.constantMultilineString = "a\r\nb\r\n"; - multiline_newline_crlf.nonConstantMultilineString = "a\r\nb\r\n"; - multiline_newline_lf.constantMultilineString = "a\nb\n"; - multiline_newline_lf.nonConstantMultilineString = "a\nb\n"; + dart.setSignature(multi_pass_test.Base, { + constructors: () => ({Base: [multi_pass_test.Base, [dart.dynamic]]}) + }); + multi_pass_test.MultiPassTest = class MultiPassTest extends core.Object { + static testMain() { + let a = new multi_pass_test.B(5); + expect$.Expect.equals(5, a.value); + } + }; + dart.setSignature(multi_pass_test.MultiPassTest, { + statics: () => ({testMain: [dart.dynamic, []]}), + names: ['testMain'] + }); + multi_pass_test.main = function() { + multi_pass_test.MultiPassTest.testMain(); + }; + dart.fn(multi_pass_test.main); + multi_pass_test.A = class A extends multi_pass_test.Base { + A(v) { + super.Base(v); + } + }; + dart.setSignature(multi_pass_test.A, { + constructors: () => ({A: [multi_pass_test.A, [dart.dynamic]]}) + }); + multi_pass_test.B = class B extends multi_pass_test.A { + B(v) { + super.A(v); + } + }; + dart.setSignature(multi_pass_test.B, { + constructors: () => ({B: [multi_pass_test.B, [dart.dynamic]]}) + }); // Exports: - exports.multiline_newline_test_05_multi = multiline_newline_test_05_multi; - exports.multiline_newline_cr = multiline_newline_cr; - exports.multiline_newline_crlf = multiline_newline_crlf; - exports.multiline_newline_lf = multiline_newline_lf; + exports.multi_pass_test = multi_pass_test; }); -dart_library.library('multiline_newline_test_06_multi', null, /* Imports */[ +dart_library.library('multiline_newline_test_04_multi', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -116544,11 +114826,11 @@ dart_library.library('multiline_newline_test_06_multi', null, /* Imports */[ const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const multiline_newline_test_06_multi = Object.create(null); + const multiline_newline_test_04_multi = Object.create(null); const multiline_newline_cr = Object.create(null); const multiline_newline_crlf = Object.create(null); const multiline_newline_lf = Object.create(null); - multiline_newline_test_06_multi.main = function() { + multiline_newline_test_04_multi.main = function() { expect$.Expect.equals(4, multiline_newline_cr.constantMultilineString[dartx.length]); expect$.Expect.equals(4, multiline_newline_crlf.constantMultilineString[dartx.length]); expect$.Expect.equals(4, multiline_newline_lf.constantMultilineString[dartx.length]); @@ -116573,9 +114855,9 @@ dart_library.library('multiline_newline_test_06_multi', null, /* Imports */[ expect$.Expect.isNull(c7); expect$.Expect.isNull(c8); expect$.Expect.isNull(c9); - let c12 = dart.notNull(c9) ? 3 : 4; + let c10 = dart.notNull(c7) ? 1 : 2; }; - dart.fn(multiline_newline_test_06_multi.main); + dart.fn(multiline_newline_test_04_multi.main); multiline_newline_cr.constantMultilineString = "a\rb\r"; multiline_newline_cr.nonConstantMultilineString = "a\rb\r"; multiline_newline_crlf.constantMultilineString = "a\r\nb\r\n"; @@ -116583,12 +114865,12 @@ dart_library.library('multiline_newline_test_06_multi', null, /* Imports */[ multiline_newline_lf.constantMultilineString = "a\nb\n"; multiline_newline_lf.nonConstantMultilineString = "a\nb\n"; // Exports: - exports.multiline_newline_test_06_multi = multiline_newline_test_06_multi; + exports.multiline_newline_test_04_multi = multiline_newline_test_04_multi; exports.multiline_newline_cr = multiline_newline_cr; exports.multiline_newline_crlf = multiline_newline_crlf; exports.multiline_newline_lf = multiline_newline_lf; }); -dart_library.library('multiline_newline_test_none_multi', null, /* Imports */[ +dart_library.library('multiline_newline_test_05_multi', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -116597,11 +114879,11 @@ dart_library.library('multiline_newline_test_none_multi', null, /* Imports */[ const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const multiline_newline_test_none_multi = Object.create(null); + const multiline_newline_test_05_multi = Object.create(null); const multiline_newline_cr = Object.create(null); const multiline_newline_crlf = Object.create(null); const multiline_newline_lf = Object.create(null); - multiline_newline_test_none_multi.main = function() { + multiline_newline_test_05_multi.main = function() { expect$.Expect.equals(4, multiline_newline_cr.constantMultilineString[dartx.length]); expect$.Expect.equals(4, multiline_newline_crlf.constantMultilineString[dartx.length]); expect$.Expect.equals(4, multiline_newline_lf.constantMultilineString[dartx.length]); @@ -116626,8 +114908,9 @@ dart_library.library('multiline_newline_test_none_multi', null, /* Imports */[ expect$.Expect.isNull(c7); expect$.Expect.isNull(c8); expect$.Expect.isNull(c9); + let c11 = dart.notNull(c8) ? 2 : 3; }; - dart.fn(multiline_newline_test_none_multi.main); + dart.fn(multiline_newline_test_05_multi.main); multiline_newline_cr.constantMultilineString = "a\rb\r"; multiline_newline_cr.nonConstantMultilineString = "a\rb\r"; multiline_newline_crlf.constantMultilineString = "a\r\nb\r\n"; @@ -116635,12 +114918,12 @@ dart_library.library('multiline_newline_test_none_multi', null, /* Imports */[ multiline_newline_lf.constantMultilineString = "a\nb\n"; multiline_newline_lf.nonConstantMultilineString = "a\nb\n"; // Exports: - exports.multiline_newline_test_none_multi = multiline_newline_test_none_multi; + exports.multiline_newline_test_05_multi = multiline_newline_test_05_multi; exports.multiline_newline_cr = multiline_newline_cr; exports.multiline_newline_crlf = multiline_newline_crlf; exports.multiline_newline_lf = multiline_newline_lf; }); -dart_library.library('multiline_strings_test', null, /* Imports */[ +dart_library.library('multiline_newline_test_06_multi', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -116649,27 +114932,51 @@ dart_library.library('multiline_strings_test', null, /* Imports */[ const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const multiline_strings_test = Object.create(null); - multiline_strings_test.main = function() { - expect$.Expect.equals('foo', 'foo'); - expect$.Expect.equals('\\\nfoo', '\\\nfoo'); - expect$.Expect.equals('\t\nfoo', '\t\nfoo'); - expect$.Expect.equals('foo', 'foo'); - expect$.Expect.equals('foo', 'foo'); - expect$.Expect.equals(' \nfoo', ' \nfoo'); - let x = ' '; - expect$.Expect.equals(' \nfoo', `${x}\nfoo`); - expect$.Expect.equals('foo', 'foo'); - expect$.Expect.equals('\\\\\nfoo', '\\\\\nfoo'); - expect$.Expect.equals('\\t\nfoo', '\\t\nfoo'); - expect$.Expect.equals('foo', 'foo'); - expect$.Expect.equals('foo', 'foo'); + const multiline_newline_test_06_multi = Object.create(null); + const multiline_newline_cr = Object.create(null); + const multiline_newline_crlf = Object.create(null); + const multiline_newline_lf = Object.create(null); + multiline_newline_test_06_multi.main = function() { + expect$.Expect.equals(4, multiline_newline_cr.constantMultilineString[dartx.length]); + expect$.Expect.equals(4, multiline_newline_crlf.constantMultilineString[dartx.length]); + expect$.Expect.equals(4, multiline_newline_lf.constantMultilineString[dartx.length]); + expect$.Expect.equals(multiline_newline_cr.constantMultilineString, multiline_newline_crlf.constantMultilineString); + expect$.Expect.equals(multiline_newline_crlf.constantMultilineString, multiline_newline_lf.constantMultilineString); + expect$.Expect.equals(multiline_newline_lf.constantMultilineString, multiline_newline_cr.constantMultilineString); + expect$.Expect.equals(4, multiline_newline_cr.nonConstantMultilineString[dartx.length]); + expect$.Expect.equals(4, multiline_newline_crlf.nonConstantMultilineString[dartx.length]); + expect$.Expect.equals(4, multiline_newline_lf.nonConstantMultilineString[dartx.length]); + expect$.Expect.equals(multiline_newline_cr.nonConstantMultilineString, multiline_newline_crlf.nonConstantMultilineString); + expect$.Expect.equals(multiline_newline_crlf.nonConstantMultilineString, multiline_newline_lf.nonConstantMultilineString); + expect$.Expect.equals(multiline_newline_lf.nonConstantMultilineString, multiline_newline_cr.nonConstantMultilineString); + let c1 = multiline_newline_cr.constantMultilineString == multiline_newline_crlf.constantMultilineString ? true : null; + let c2 = multiline_newline_crlf.constantMultilineString == multiline_newline_lf.constantMultilineString ? true : null; + let c3 = multiline_newline_lf.constantMultilineString == multiline_newline_cr.constantMultilineString ? true : null; + expect$.Expect.isTrue(c1); + expect$.Expect.isTrue(c2); + expect$.Expect.isTrue(c3); + let c7 = multiline_newline_cr.constantMultilineString != multiline_newline_crlf.constantMultilineString ? true : null; + let c8 = multiline_newline_crlf.constantMultilineString != multiline_newline_lf.constantMultilineString ? true : null; + let c9 = multiline_newline_lf.constantMultilineString != multiline_newline_cr.constantMultilineString ? true : null; + expect$.Expect.isNull(c7); + expect$.Expect.isNull(c8); + expect$.Expect.isNull(c9); + let c12 = dart.notNull(c9) ? 3 : 4; }; - dart.fn(multiline_strings_test.main); + dart.fn(multiline_newline_test_06_multi.main); + multiline_newline_cr.constantMultilineString = "a\rb\r"; + multiline_newline_cr.nonConstantMultilineString = "a\rb\r"; + multiline_newline_crlf.constantMultilineString = "a\r\nb\r\n"; + multiline_newline_crlf.nonConstantMultilineString = "a\r\nb\r\n"; + multiline_newline_lf.constantMultilineString = "a\nb\n"; + multiline_newline_lf.nonConstantMultilineString = "a\nb\n"; // Exports: - exports.multiline_strings_test = multiline_strings_test; + exports.multiline_newline_test_06_multi = multiline_newline_test_06_multi; + exports.multiline_newline_cr = multiline_newline_cr; + exports.multiline_newline_crlf = multiline_newline_crlf; + exports.multiline_newline_lf = multiline_newline_lf; }); -dart_library.library('multi_pass2_test', null, /* Imports */[ +dart_library.library('multiline_newline_test_none_multi', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -116678,49 +114985,50 @@ dart_library.library('multi_pass2_test', null, /* Imports */[ const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const multi_pass2_test = Object.create(null); - multi_pass2_test.Base = class Base extends core.Object { - Base(value) { - this.value = value; - } - }; - dart.setSignature(multi_pass2_test.Base, { - constructors: () => ({Base: [multi_pass2_test.Base, [dart.dynamic]]}) - }); - multi_pass2_test.MultiPass2Test = class MultiPass2Test extends core.Object { - static testMain() { - let a = new multi_pass2_test.B(5); - expect$.Expect.equals(5, a.value); - } - }; - dart.setSignature(multi_pass2_test.MultiPass2Test, { - statics: () => ({testMain: [dart.dynamic, []]}), - names: ['testMain'] - }); - multi_pass2_test.main = function() { - multi_pass2_test.MultiPass2Test.testMain(); - }; - dart.fn(multi_pass2_test.main); - multi_pass2_test.A = class A extends multi_pass2_test.Base { - A(v) { - super.Base(v); - } - }; - dart.setSignature(multi_pass2_test.A, { - constructors: () => ({A: [multi_pass2_test.A, [dart.dynamic]]}) - }); - multi_pass2_test.B = class B extends multi_pass2_test.A { - B(v) { - super.A(v); - } + const multiline_newline_test_none_multi = Object.create(null); + const multiline_newline_cr = Object.create(null); + const multiline_newline_crlf = Object.create(null); + const multiline_newline_lf = Object.create(null); + multiline_newline_test_none_multi.main = function() { + expect$.Expect.equals(4, multiline_newline_cr.constantMultilineString[dartx.length]); + expect$.Expect.equals(4, multiline_newline_crlf.constantMultilineString[dartx.length]); + expect$.Expect.equals(4, multiline_newline_lf.constantMultilineString[dartx.length]); + expect$.Expect.equals(multiline_newline_cr.constantMultilineString, multiline_newline_crlf.constantMultilineString); + expect$.Expect.equals(multiline_newline_crlf.constantMultilineString, multiline_newline_lf.constantMultilineString); + expect$.Expect.equals(multiline_newline_lf.constantMultilineString, multiline_newline_cr.constantMultilineString); + expect$.Expect.equals(4, multiline_newline_cr.nonConstantMultilineString[dartx.length]); + expect$.Expect.equals(4, multiline_newline_crlf.nonConstantMultilineString[dartx.length]); + expect$.Expect.equals(4, multiline_newline_lf.nonConstantMultilineString[dartx.length]); + expect$.Expect.equals(multiline_newline_cr.nonConstantMultilineString, multiline_newline_crlf.nonConstantMultilineString); + expect$.Expect.equals(multiline_newline_crlf.nonConstantMultilineString, multiline_newline_lf.nonConstantMultilineString); + expect$.Expect.equals(multiline_newline_lf.nonConstantMultilineString, multiline_newline_cr.nonConstantMultilineString); + let c1 = multiline_newline_cr.constantMultilineString == multiline_newline_crlf.constantMultilineString ? true : null; + let c2 = multiline_newline_crlf.constantMultilineString == multiline_newline_lf.constantMultilineString ? true : null; + let c3 = multiline_newline_lf.constantMultilineString == multiline_newline_cr.constantMultilineString ? true : null; + expect$.Expect.isTrue(c1); + expect$.Expect.isTrue(c2); + expect$.Expect.isTrue(c3); + let c7 = multiline_newline_cr.constantMultilineString != multiline_newline_crlf.constantMultilineString ? true : null; + let c8 = multiline_newline_crlf.constantMultilineString != multiline_newline_lf.constantMultilineString ? true : null; + let c9 = multiline_newline_lf.constantMultilineString != multiline_newline_cr.constantMultilineString ? true : null; + expect$.Expect.isNull(c7); + expect$.Expect.isNull(c8); + expect$.Expect.isNull(c9); }; - dart.setSignature(multi_pass2_test.B, { - constructors: () => ({B: [multi_pass2_test.B, [dart.dynamic]]}) - }); + dart.fn(multiline_newline_test_none_multi.main); + multiline_newline_cr.constantMultilineString = "a\rb\r"; + multiline_newline_cr.nonConstantMultilineString = "a\rb\r"; + multiline_newline_crlf.constantMultilineString = "a\r\nb\r\n"; + multiline_newline_crlf.nonConstantMultilineString = "a\r\nb\r\n"; + multiline_newline_lf.constantMultilineString = "a\nb\n"; + multiline_newline_lf.nonConstantMultilineString = "a\nb\n"; // Exports: - exports.multi_pass2_test = multi_pass2_test; + exports.multiline_newline_test_none_multi = multiline_newline_test_none_multi; + exports.multiline_newline_cr = multiline_newline_cr; + exports.multiline_newline_crlf = multiline_newline_crlf; + exports.multiline_newline_lf = multiline_newline_lf; }); -dart_library.library('multi_pass_test', null, /* Imports */[ +dart_library.library('multiline_strings_test', null, /* Imports */[ 'dart_sdk', 'expect' ], function(exports, dart_sdk, expect) { @@ -116729,47 +115037,25 @@ dart_library.library('multi_pass_test', null, /* Imports */[ const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const expect$ = expect.expect; - const multi_pass_test = Object.create(null); - multi_pass_test.Base = class Base extends core.Object { - Base(value) { - this.value = value; - } - }; - dart.setSignature(multi_pass_test.Base, { - constructors: () => ({Base: [multi_pass_test.Base, [dart.dynamic]]}) - }); - multi_pass_test.MultiPassTest = class MultiPassTest extends core.Object { - static testMain() { - let a = new multi_pass_test.B(5); - expect$.Expect.equals(5, a.value); - } - }; - dart.setSignature(multi_pass_test.MultiPassTest, { - statics: () => ({testMain: [dart.dynamic, []]}), - names: ['testMain'] - }); - multi_pass_test.main = function() { - multi_pass_test.MultiPassTest.testMain(); - }; - dart.fn(multi_pass_test.main); - multi_pass_test.A = class A extends multi_pass_test.Base { - A(v) { - super.Base(v); - } - }; - dart.setSignature(multi_pass_test.A, { - constructors: () => ({A: [multi_pass_test.A, [dart.dynamic]]}) - }); - multi_pass_test.B = class B extends multi_pass_test.A { - B(v) { - super.A(v); - } + const multiline_strings_test = Object.create(null); + multiline_strings_test.main = function() { + expect$.Expect.equals('foo', 'foo'); + expect$.Expect.equals('\\\nfoo', '\\\nfoo'); + expect$.Expect.equals('\t\nfoo', '\t\nfoo'); + expect$.Expect.equals('foo', 'foo'); + expect$.Expect.equals('foo', 'foo'); + expect$.Expect.equals(' \nfoo', ' \nfoo'); + let x = ' '; + expect$.Expect.equals(' \nfoo', `${x}\nfoo`); + expect$.Expect.equals('foo', 'foo'); + expect$.Expect.equals('\\\\\nfoo', '\\\\\nfoo'); + expect$.Expect.equals('\\t\nfoo', '\\t\nfoo'); + expect$.Expect.equals('foo', 'foo'); + expect$.Expect.equals('foo', 'foo'); }; - dart.setSignature(multi_pass_test.B, { - constructors: () => ({B: [multi_pass_test.B, [dart.dynamic]]}) - }); + dart.fn(multiline_strings_test.main); // Exports: - exports.multi_pass_test = multi_pass_test; + exports.multiline_strings_test = multiline_strings_test; }); dart_library.library('multiple_field_assignment_constructor_test', null, /* Imports */[ 'dart_sdk', @@ -118684,97 +116970,6 @@ dart_library.library('no_main_test_none_multi', null, /* Imports */[ // Exports: exports.no_main_test_none_multi = no_main_test_none_multi; }); -dart_library.library('non_const_constructor_without_body_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const non_const_constructor_without_body_test = Object.create(null); - non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest = class NonConstConstructorWithoutBodyTest extends core.Object { - NonConstConstructorWithoutBodyTest() { - this.x = null; - } - named() { - this.x = null; - } - initializers() { - this.x = 1; - } - parameters(x) { - this.x = dart.notNull(x) + 1; - } - fieldParameter(x) { - this.x = x; - } - redirection() { - this.initializers(); - } - static testMain() { - expect$.Expect.equals(null, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest().x); - expect$.Expect.equals(null, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.named().x); - expect$.Expect.equals(1, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.initializers().x); - expect$.Expect.equals(2, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.parameters(1).x); - expect$.Expect.equals(2, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.fieldParameter(2).x); - expect$.Expect.equals(1, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.redirection().x); - } - }; - dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, 'named'); - dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, 'initializers'); - dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, 'parameters'); - dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, 'fieldParameter'); - dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, 'redirection'); - dart.setSignature(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, { - constructors: () => ({ - NonConstConstructorWithoutBodyTest: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, []], - named: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, []], - initializers: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, []], - parameters: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, [core.int]], - fieldParameter: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, [core.int]], - redirection: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, []] - }), - statics: () => ({testMain: [dart.dynamic, []]}), - names: ['testMain'] - }); - non_const_constructor_without_body_test.main = function() { - non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.testMain(); - }; - dart.fn(non_const_constructor_without_body_test.main); - // Exports: - exports.non_const_constructor_without_body_test = non_const_constructor_without_body_test; -}); -dart_library.library('non_dominating_loop_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const non_dominating_loop_test = Object.create(null); - non_dominating_loop_test.calls = 0; - non_dominating_loop_test.callMeOnce = function() { - expect$.Expect.equals(0, non_dominating_loop_test.calls); - non_dominating_loop_test.calls = dart.notNull(non_dominating_loop_test.calls) + 1; - }; - dart.fn(non_dominating_loop_test.callMeOnce, dart.void, []); - non_dominating_loop_test.main = function() { - let i = 0; - do { - i++; - if (i > 3) break; - } while (i < 10); - non_dominating_loop_test.callMeOnce(); - expect$.Expect.equals(4, i); - }; - dart.fn(non_dominating_loop_test.main); - // Exports: - exports.non_dominating_loop_test = non_dominating_loop_test; -}); dart_library.library('no_such_constructor_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -118876,6 +117071,97 @@ dart_library.library('no_such_method_subtype_test', null, /* Imports */[ // Exports: exports.no_such_method_subtype_test = no_such_method_subtype_test; }); +dart_library.library('non_const_constructor_without_body_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const non_const_constructor_without_body_test = Object.create(null); + non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest = class NonConstConstructorWithoutBodyTest extends core.Object { + NonConstConstructorWithoutBodyTest() { + this.x = null; + } + named() { + this.x = null; + } + initializers() { + this.x = 1; + } + parameters(x) { + this.x = dart.notNull(x) + 1; + } + fieldParameter(x) { + this.x = x; + } + redirection() { + this.initializers(); + } + static testMain() { + expect$.Expect.equals(null, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest().x); + expect$.Expect.equals(null, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.named().x); + expect$.Expect.equals(1, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.initializers().x); + expect$.Expect.equals(2, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.parameters(1).x); + expect$.Expect.equals(2, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.fieldParameter(2).x); + expect$.Expect.equals(1, new non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.redirection().x); + } + }; + dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, 'named'); + dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, 'initializers'); + dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, 'parameters'); + dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, 'fieldParameter'); + dart.defineNamedConstructor(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, 'redirection'); + dart.setSignature(non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, { + constructors: () => ({ + NonConstConstructorWithoutBodyTest: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, []], + named: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, []], + initializers: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, []], + parameters: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, [core.int]], + fieldParameter: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, [core.int]], + redirection: [non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest, []] + }), + statics: () => ({testMain: [dart.dynamic, []]}), + names: ['testMain'] + }); + non_const_constructor_without_body_test.main = function() { + non_const_constructor_without_body_test.NonConstConstructorWithoutBodyTest.testMain(); + }; + dart.fn(non_const_constructor_without_body_test.main); + // Exports: + exports.non_const_constructor_without_body_test = non_const_constructor_without_body_test; +}); +dart_library.library('non_dominating_loop_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const non_dominating_loop_test = Object.create(null); + non_dominating_loop_test.calls = 0; + non_dominating_loop_test.callMeOnce = function() { + expect$.Expect.equals(0, non_dominating_loop_test.calls); + non_dominating_loop_test.calls = dart.notNull(non_dominating_loop_test.calls) + 1; + }; + dart.fn(non_dominating_loop_test.callMeOnce, dart.void, []); + non_dominating_loop_test.main = function() { + let i = 0; + do { + i++; + if (i > 3) break; + } while (i < 10); + non_dominating_loop_test.callMeOnce(); + expect$.Expect.equals(4, i); + }; + dart.fn(non_dominating_loop_test.main); + // Exports: + exports.non_dominating_loop_test = non_dominating_loop_test; +}); dart_library.library('not_enough_positional_arguments_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -119059,97 +117345,6 @@ dart_library.library('null_access_error_test', null, /* Imports */[ // Exports: exports.null_access_error_test = null_access_error_test; }); -dart_library.library('nullaware_opt_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const nullaware_opt_test = Object.create(null); - nullaware_opt_test.C = class C extends core.Object { - C(f) { - this.f = f; - } - m(a) { - return a; - } - }; - dart.setSignature(nullaware_opt_test.C, { - constructors: () => ({C: [nullaware_opt_test.C, [dart.dynamic]]}), - methods: () => ({m: [dart.dynamic, [dart.dynamic]]}) - }); - nullaware_opt_test.bomb = function() { - expect$.Expect.fail('Should not be executed'); - return 100; - }; - dart.fn(nullaware_opt_test.bomb); - nullaware_opt_test.getNull = function() { - return null; - }; - dart.fn(nullaware_opt_test.getNull); - nullaware_opt_test.test = function() { - let c = null; - let d = new nullaware_opt_test.C(5); - expect$.Expect.equals(null, dart.nullSafe(c, _ => dart.dsend(_, 'm', nullaware_opt_test.bomb()))); - expect$.Expect.equals(null, dart.nullSafe(nullaware_opt_test.getNull(), _ => dart.dsend(_, 'anything', nullaware_opt_test.bomb()))); - expect$.Expect.equals(1, dart.nullSafe(d, _ => _.m(1))); - expect$.Expect.equals(1, new nullaware_opt_test.C(1).f); - expect$.Expect.equals(null, dart.nullSafe(c, _ => dart.dload(_, 'v'))); - expect$.Expect.equals(10, (c != null ? c : 10)); - expect$.Expect.equals(d, (d != null ? d : nullaware_opt_test.bomb())); - let e = null; - let t = d; - t == null ? d = dart.as(t == null ? e = new nullaware_opt_test.C(100) : t, nullaware_opt_test.C) : t; - expect$.Expect.equals(null, e); - let t$ = e; - t$ == null ? e = new nullaware_opt_test.C(100) : t$; - expect$.Expect.equals(100, dart.nullSafe(e, _ => dart.dload(_, 'f'))); - let t$0 = dart.nullSafe(e, _ => dart.dload(_, 'f')); - t$0 == null ? (() => { - let l = e; - return l == null ? null : dart.dput(l, 'f', 200); - })() : t$0; - expect$.Expect.equals(100, dart.nullSafe(e, _ => dart.dload(_, 'f'))); - dart.dput(e, 'f', null); - let t$1 = dart.nullSafe(e, _ => dart.dload(_, 'f')); - t$1 == null ? (() => { - let l = e; - return l == null ? null : dart.dput(l, 'f', 200); - })() : t$1; - expect$.Expect.equals(200, dart.nullSafe(e, _ => dart.dload(_, 'f'))); - let t$2 = dart.nullSafe(c, _ => dart.dload(_, 'f')); - t$2 == null ? (c == null ? null : dart.dput(c, 'f', 400)) : t$2; - expect$.Expect.equals(null, dart.nullSafe(c, _ => dart.dload(_, 'f'))); - expect$.Expect.equals(null, (() => { - let x = dart.nullSafe(c, _ => dart.dload(_, 'f')); - c == null ? null : dart.dput(c, 'f', dart.dsend(x, '+', 1)); - return x; - })()); - let l = e; - l == null ? null : dart.dput(l, 'f', dart.dsend(dart.nullSafe(e, _ => dart.dload(_, 'f')), '+', 1)); - expect$.Expect.equals(201, dart.dload(e, 'f')); - let x = 5; - }; - dart.fn(nullaware_opt_test.test); - nullaware_opt_test.test2 = function() { - let c = null; - dart.nullSafe(c, _ => dart.dload(_, 'v')); - dart.nullSafe(c, _ => dart.dsend(_, 'm', nullaware_opt_test.bomb())); - }; - dart.fn(nullaware_opt_test.test2); - nullaware_opt_test.main = function() { - for (let i = 0; i < 10; i++) { - nullaware_opt_test.test(); - nullaware_opt_test.test2(); - } - }; - dart.fn(nullaware_opt_test.main); - // Exports: - exports.nullaware_opt_test = nullaware_opt_test; -}); dart_library.library('null_inline_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -119358,6 +117553,100 @@ dart_library.library('null_to_string_test', null, /* Imports */[ // Exports: exports.null_to_string_test = null_to_string_test; }); +dart_library.library('nullaware_opt_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const nullaware_opt_test = Object.create(null); + nullaware_opt_test.C = class C extends core.Object { + C(f) { + this.f = f; + } + m(a) { + return a; + } + }; + dart.setSignature(nullaware_opt_test.C, { + constructors: () => ({C: [nullaware_opt_test.C, [dart.dynamic]]}), + methods: () => ({m: [dart.dynamic, [dart.dynamic]]}) + }); + nullaware_opt_test.bomb = function() { + expect$.Expect.fail('Should not be executed'); + return 100; + }; + dart.fn(nullaware_opt_test.bomb); + nullaware_opt_test.getNull = function() { + return null; + }; + dart.fn(nullaware_opt_test.getNull); + nullaware_opt_test.test = function() { + let c = null; + let d = new nullaware_opt_test.C(5); + expect$.Expect.equals(null, dart.nullSafe(c, _ => dart.dsend(_, 'm', nullaware_opt_test.bomb()))); + expect$.Expect.equals(null, dart.nullSafe(nullaware_opt_test.getNull(), _ => dart.dsend(_, 'anything', nullaware_opt_test.bomb()))); + expect$.Expect.equals(1, dart.nullSafe(d, _ => _.m(1))); + expect$.Expect.equals(1, new nullaware_opt_test.C(1).f); + expect$.Expect.equals(null, dart.nullSafe(c, _ => dart.dload(_, 'v'))); + expect$.Expect.equals(10, (c != null ? c : 10)); + expect$.Expect.equals(d, (d != null ? d : nullaware_opt_test.bomb())); + let e = null; + let t = d; + t == null ? d = dart.as((() => { + let t = e; + return t == null ? e = new nullaware_opt_test.C(100) : t; + })(), nullaware_opt_test.C) : t; + expect$.Expect.equals(null, e); + let t$ = e; + t$ == null ? e = new nullaware_opt_test.C(100) : t$; + expect$.Expect.equals(100, dart.nullSafe(e, _ => dart.dload(_, 'f'))); + let t$0 = dart.nullSafe(e, _ => dart.dload(_, 'f')); + t$0 == null ? (() => { + let l = e; + return l == null ? null : dart.dput(l, 'f', 200); + })() : t$0; + expect$.Expect.equals(100, dart.nullSafe(e, _ => dart.dload(_, 'f'))); + dart.dput(e, 'f', null); + let t$1 = dart.nullSafe(e, _ => dart.dload(_, 'f')); + t$1 == null ? (() => { + let l = e; + return l == null ? null : dart.dput(l, 'f', 200); + })() : t$1; + expect$.Expect.equals(200, dart.nullSafe(e, _ => dart.dload(_, 'f'))); + let t$2 = dart.nullSafe(c, _ => dart.dload(_, 'f')); + t$2 == null ? (c == null ? null : dart.dput(c, 'f', 400)) : t$2; + expect$.Expect.equals(null, dart.nullSafe(c, _ => dart.dload(_, 'f'))); + expect$.Expect.equals(null, (() => { + let x = dart.nullSafe(c, _ => dart.dload(_, 'f')); + c == null ? null : dart.dput(c, 'f', dart.dsend(x, '+', 1)); + return x; + })()); + let l = e; + l == null ? null : dart.dput(l, 'f', dart.dsend(dart.nullSafe(e, _ => dart.dload(_, 'f')), '+', 1)); + expect$.Expect.equals(201, dart.dload(e, 'f')); + let x = 5; + }; + dart.fn(nullaware_opt_test.test); + nullaware_opt_test.test2 = function() { + let c = null; + dart.nullSafe(c, _ => dart.dload(_, 'v')); + dart.nullSafe(c, _ => dart.dsend(_, 'm', nullaware_opt_test.bomb())); + }; + dart.fn(nullaware_opt_test.test2); + nullaware_opt_test.main = function() { + for (let i = 0; i < 10; i++) { + nullaware_opt_test.test(); + nullaware_opt_test.test2(); + } + }; + dart.fn(nullaware_opt_test.main); + // Exports: + exports.nullaware_opt_test = nullaware_opt_test; +}); dart_library.library('number_constant_folding1_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -119498,48 +117787,6 @@ dart_library.library('number_identity2_test', null, /* Imports */[ // Exports: exports.number_identity2_test = number_identity2_test; }); -dart_library.library('numbers_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const numbers_test = Object.create(null); - numbers_test.NumbersTest = class NumbersTest extends core.Object { - static testMain() { - let one = 1; - expect$.Expect.equals(true, dart.is(one, core.Object)); - expect$.Expect.equals(true, typeof one == 'number'); - expect$.Expect.equals(true, typeof one == 'number'); - expect$.Expect.equals(false, typeof one == 'number'); - let two = 2.0; - expect$.Expect.equals(true, dart.is(two, core.Object)); - expect$.Expect.equals(true, typeof two == 'number'); - expect$.Expect.equals(false, typeof two == 'number'); - expect$.Expect.equals(true, typeof two == 'number'); - let result = one + two; - expect$.Expect.equals(true, dart.is(result, core.Object)); - expect$.Expect.equals(true, typeof result == 'number'); - expect$.Expect.equals(false, typeof result == 'number'); - expect$.Expect.equals(true, typeof result == 'number'); - expect$.Expect.equals(3.0, result); - return result; - } - }; - dart.setSignature(numbers_test.NumbersTest, { - statics: () => ({testMain: [core.double, []]}), - names: ['testMain'] - }); - numbers_test.main = function() { - numbers_test.NumbersTest.testMain(); - }; - dart.fn(numbers_test.main); - // Exports: - exports.numbers_test = numbers_test; -}); dart_library.library('number_syntax_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -119602,6 +117849,48 @@ dart_library.library('number_syntax_test', null, /* Imports */[ // Exports: exports.number_syntax_test = number_syntax_test; }); +dart_library.library('numbers_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const numbers_test = Object.create(null); + numbers_test.NumbersTest = class NumbersTest extends core.Object { + static testMain() { + let one = 1; + expect$.Expect.equals(true, dart.is(one, core.Object)); + expect$.Expect.equals(true, typeof one == 'number'); + expect$.Expect.equals(true, typeof one == 'number'); + expect$.Expect.equals(false, typeof one == 'number'); + let two = 2.0; + expect$.Expect.equals(true, dart.is(two, core.Object)); + expect$.Expect.equals(true, typeof two == 'number'); + expect$.Expect.equals(false, typeof two == 'number'); + expect$.Expect.equals(true, typeof two == 'number'); + let result = one + two; + expect$.Expect.equals(true, dart.is(result, core.Object)); + expect$.Expect.equals(true, typeof result == 'number'); + expect$.Expect.equals(false, typeof result == 'number'); + expect$.Expect.equals(true, typeof result == 'number'); + expect$.Expect.equals(3.0, result); + return result; + } + }; + dart.setSignature(numbers_test.NumbersTest, { + statics: () => ({testMain: [core.double, []]}), + names: ['testMain'] + }); + numbers_test.main = function() { + numbers_test.NumbersTest.testMain(); + }; + dart.fn(numbers_test.main); + // Exports: + exports.numbers_test = numbers_test; +}); dart_library.library('operator2_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -120020,6 +118309,46 @@ dart_library.library('operator_test', null, /* Imports */[ // Exports: exports.operator_test = operator_test; }); +dart_library.library('optimize_redundant_array_load_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const optimize_redundant_array_load_test = Object.create(null); + dart.defineLazy(optimize_redundant_array_load_test, { + get A() { + return dart.list([0, 2, 3], core.int); + }, + set A(_) {} + }); + optimize_redundant_array_load_test.test1 = function(a) { + let x = dart.as(dart.dindex(a, 0), core.int); + let y = dart.as(dart.dindex(a, 1), core.int); + let i = 0; + dart.dsetindex(a, i, dart.dsend(dart.dindex(a, i), '+', 1)); + return dart.dsend(dart.dsend(dart.dindex(a, 0), '+', y), '+', dart.dindex(a, 2)); + }; + dart.fn(optimize_redundant_array_load_test.test1); + optimize_redundant_array_load_test.test2 = function(a) { + return dart.as(dart.dsend(dart.dindex(a, 2), '+', dart.dindex(a, 2)), core.int); + }; + dart.fn(optimize_redundant_array_load_test.test2, core.int, [dart.dynamic]); + optimize_redundant_array_load_test.main = function() { + for (let i = 0; i < 20; i++) { + optimize_redundant_array_load_test.test1(optimize_redundant_array_load_test.A); + optimize_redundant_array_load_test.test2(optimize_redundant_array_load_test.A); + } + expect$.Expect.equals(26, optimize_redundant_array_load_test.test1(optimize_redundant_array_load_test.A)); + expect$.Expect.equals(6, optimize_redundant_array_load_test.test2(optimize_redundant_array_load_test.A)); + }; + dart.fn(optimize_redundant_array_load_test.main); + // Exports: + exports.optimize_redundant_array_load_test = optimize_redundant_array_load_test; +}); dart_library.library('optimized_hoisting_checked_mode_assert_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -120432,46 +118761,6 @@ dart_library.library('optimized_string_charcodeat_test', null, /* Imports */[ // Exports: exports.optimized_string_charcodeat_test = optimized_string_charcodeat_test; }); -dart_library.library('optimize_redundant_array_load_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const optimize_redundant_array_load_test = Object.create(null); - dart.defineLazy(optimize_redundant_array_load_test, { - get A() { - return dart.list([0, 2, 3], core.int); - }, - set A(_) {} - }); - optimize_redundant_array_load_test.test1 = function(a) { - let x = dart.as(dart.dindex(a, 0), core.int); - let y = dart.as(dart.dindex(a, 1), core.int); - let i = 0; - dart.dsetindex(a, i, dart.dsend(dart.dindex(a, i), '+', 1)); - return dart.dsend(dart.dsend(dart.dindex(a, 0), '+', y), '+', dart.dindex(a, 2)); - }; - dart.fn(optimize_redundant_array_load_test.test1); - optimize_redundant_array_load_test.test2 = function(a) { - return dart.as(dart.dsend(dart.dindex(a, 2), '+', dart.dindex(a, 2)), core.int); - }; - dart.fn(optimize_redundant_array_load_test.test2, core.int, [dart.dynamic]); - optimize_redundant_array_load_test.main = function() { - for (let i = 0; i < 20; i++) { - optimize_redundant_array_load_test.test1(optimize_redundant_array_load_test.A); - optimize_redundant_array_load_test.test2(optimize_redundant_array_load_test.A); - } - expect$.Expect.equals(26, optimize_redundant_array_load_test.test1(optimize_redundant_array_load_test.A)); - expect$.Expect.equals(6, optimize_redundant_array_load_test.test2(optimize_redundant_array_load_test.A)); - }; - dart.fn(optimize_redundant_array_load_test.main); - // Exports: - exports.optimize_redundant_array_load_test = optimize_redundant_array_load_test; -}); dart_library.library('optional_named_parameters_test_none_multi', null, /* Imports */[ 'dart_sdk', 'expect' @@ -122591,6 +120880,43 @@ dart_library.library('param2_test', null, /* Imports */[ // Exports: exports.param2_test = param2_test; }); +dart_library.library('param_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const param_test = Object.create(null); + param_test.Helper = class Helper extends core.Object { + static foo(i) { + let b = null; + b = dart.notNull(i) + 1; + return dart.as(b, core.int); + } + }; + dart.setSignature(param_test.Helper, { + statics: () => ({foo: [core.int, [core.int]]}), + names: ['foo'] + }); + param_test.ParamTest = class ParamTest extends core.Object { + static testMain() { + expect$.Expect.equals(2, param_test.Helper.foo(1)); + } + }; + dart.setSignature(param_test.ParamTest, { + statics: () => ({testMain: [dart.dynamic, []]}), + names: ['testMain'] + }); + param_test.main = function() { + param_test.ParamTest.testMain(); + }; + dart.fn(param_test.main); + // Exports: + exports.param_test = param_test; +}); dart_library.library('parameter_default_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -122900,43 +121226,6 @@ dart_library.library('parameter_types_specialization_test', null, /* Imports */[ // Exports: exports.parameter_types_specialization_test = parameter_types_specialization_test; }); -dart_library.library('param_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const param_test = Object.create(null); - param_test.Helper = class Helper extends core.Object { - static foo(i) { - let b = null; - b = dart.notNull(i) + 1; - return dart.as(b, core.int); - } - }; - dart.setSignature(param_test.Helper, { - statics: () => ({foo: [core.int, [core.int]]}), - names: ['foo'] - }); - param_test.ParamTest = class ParamTest extends core.Object { - static testMain() { - expect$.Expect.equals(2, param_test.Helper.foo(1)); - } - }; - dart.setSignature(param_test.ParamTest, { - statics: () => ({testMain: [dart.dynamic, []]}), - names: ['testMain'] - }); - param_test.main = function() { - param_test.ParamTest.testMain(); - }; - dart.fn(param_test.main); - // Exports: - exports.param_test = param_test; -}); dart_library.library('parse_closures_in_initializers_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -123059,6 +121348,22 @@ dart_library.library('parse_types_test', null, /* Imports */[ // Exports: exports.parse_types_test = parse_types_test; }); +dart_library.library('part_test', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const part_test = Object.create(null); + part_test.main = function() { + core.print(part_test.foo); + }; + dart.fn(part_test.main); + part_test.foo = 'foo'; + // Exports: + exports.part_test = part_test; +}); dart_library.library('partial_min_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -123088,22 +121393,6 @@ dart_library.library('partial_min_test', null, /* Imports */[ // Exports: exports.partial_min_test = partial_min_test; }); -dart_library.library('part_test', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const part_test = Object.create(null); - part_test.main = function() { - core.print(part_test.foo); - }; - dart.fn(part_test.main); - part_test.foo = 'foo'; - // Exports: - exports.part_test = part_test; -}); dart_library.library('patch_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -123619,7 +121908,7 @@ dart_library.library('prefix10_test', null, /* Imports */[ expect$.Expect.equals(7, result); result = dart.notNull(result) + dart.notNull(dart.as(library11.Library11.static_func(), core.int)); expect$.Expect.equals(9, result); - result = dart.notNull(result) + dart.notNull(library11.Library11.static_fld); + result = dart.notNull(result) + dart.notNull(dart.as(library11.Library11.static_fld, core.int)); expect$.Expect.equals(10, result); } static Test3() { @@ -123764,7 +122053,7 @@ dart_library.library('prefix11_test', null, /* Imports */[ expect$.Expect.equals(7, result); result = dart.notNull(result) + dart.notNull(dart.as(library11.Library11.static_func(), core.int)); expect$.Expect.equals(9, result); - result = dart.notNull(result) + dart.notNull(library11.Library11.static_fld); + result = dart.notNull(result) + dart.notNull(dart.as(library11.Library11.static_fld, core.int)); expect$.Expect.equals(10, result); } static Test3() { @@ -124001,7 +122290,7 @@ dart_library.library('prefix17_test', null, /* Imports */[ expect$.Expect.equals(7, result); result = dart.notNull(result) + dart.notNull(dart.as(library11.Library11.static_func(), core.int)); expect$.Expect.equals(9, result); - result = dart.notNull(result) + dart.notNull(library11.Library11.static_fld); + result = dart.notNull(result) + dart.notNull(dart.as(library11.Library11.static_fld, core.int)); expect$.Expect.equals(10, result); expect$.Expect.equals(100, library11.top_level11); expect$.Expect.equals(200, library11.top_level_func11()); @@ -129444,47 +127733,6 @@ dart_library.library('scanner_test', null, /* Imports */[ // Exports: exports.scanner_test = scanner_test; }); -dart_library.library('scoped_variables_try_catch_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const scoped_variables_try_catch_test = Object.create(null); - scoped_variables_try_catch_test.main = function() { - let a = scoped_variables_try_catch_test.bar(); - try { - a = scoped_variables_try_catch_test.bar(); - } catch (e) { - } - - expect$.Expect.equals(42, a); - { - let a = scoped_variables_try_catch_test.foo(); - try { - a = scoped_variables_try_catch_test.foo(); - } catch (e) { - } - - expect$.Expect.equals(54, a); - } - expect$.Expect.equals(42, a); - }; - dart.fn(scoped_variables_try_catch_test.main); - scoped_variables_try_catch_test.bar = function() { - return 42; - }; - dart.fn(scoped_variables_try_catch_test.bar); - scoped_variables_try_catch_test.foo = function() { - return 54; - }; - dart.fn(scoped_variables_try_catch_test.foo); - // Exports: - exports.scoped_variables_try_catch_test = scoped_variables_try_catch_test; -}); dart_library.library('scope_variable_test_none_multi', null, /* Imports */[ 'dart_sdk', 'expect' @@ -129538,6 +127786,47 @@ dart_library.library('scope_variable_test_none_multi', null, /* Imports */[ // Exports: exports.scope_variable_test_none_multi = scope_variable_test_none_multi; }); +dart_library.library('scoped_variables_try_catch_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const scoped_variables_try_catch_test = Object.create(null); + scoped_variables_try_catch_test.main = function() { + let a = scoped_variables_try_catch_test.bar(); + try { + a = scoped_variables_try_catch_test.bar(); + } catch (e) { + } + + expect$.Expect.equals(42, a); + { + let a = scoped_variables_try_catch_test.foo(); + try { + a = scoped_variables_try_catch_test.foo(); + } catch (e) { + } + + expect$.Expect.equals(54, a); + } + expect$.Expect.equals(42, a); + }; + dart.fn(scoped_variables_try_catch_test.main); + scoped_variables_try_catch_test.bar = function() { + return 42; + }; + dart.fn(scoped_variables_try_catch_test.bar); + scoped_variables_try_catch_test.foo = function() { + return 54; + }; + dart.fn(scoped_variables_try_catch_test.foo); + // Exports: + exports.scoped_variables_try_catch_test = scoped_variables_try_catch_test; +}); dart_library.library('second_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -130675,6 +128964,194 @@ dart_library.library('stack_overflow_test', null, /* Imports */[ // Exports: exports.stack_overflow_test = stack_overflow_test; }); +dart_library.library('stack_trace_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const stack_trace_test = Object.create(null); + stack_trace_test.MyException = class MyException extends core.Object { + MyException(message) { + this.message_ = message; + } + }; + dart.setSignature(stack_trace_test.MyException, { + constructors: () => ({MyException: [stack_trace_test.MyException, [core.String]]}) + }); + stack_trace_test.Helper = class Helper extends core.Object { + static f1(i) { + try { + i = stack_trace_test.Helper.func(); + i = 10; + } catch (exception) { + if (dart.is(exception, stack_trace_test.MyException)) { + let stacktrace = dart.stackTrace(exception); + i = 50; + core.print(exception.message_); + expect$.Expect.isNotNull(stacktrace); + core.print(stacktrace); + } else + throw exception; + } + + try { + let j = null; + i = stack_trace_test.Helper.func1(); + i = 200; + } catch (exception) { + if (dart.is(exception, stack_trace_test.MyException)) { + let stacktrace = dart.stackTrace(exception); + i = 50; + core.print(exception.message_); + expect$.Expect.isNotNull(stacktrace); + core.print(stacktrace); + } else + throw exception; + } + + try { + let j = null; + i = stack_trace_test.Helper.func2(); + i = 200; + } catch (exception) { + if (dart.is(exception, stack_trace_test.MyException)) { + let stacktrace = dart.stackTrace(exception); + i = 50; + core.print(exception.message_); + expect$.Expect.isNotNull(stacktrace); + core.print(stacktrace); + } else + throw exception; + } + finally { + i = dart.notNull(i) + 800; + } + return i; + } + static func() { + let i = 0; + while (i < 10) { + i++; + } + if (i > 0) { + dart.throw(new stack_trace_test.MyException("Exception Test for stack trace being printed")); + } + return 10; + } + static func1() { + try { + stack_trace_test.Helper.func(); + } catch (exception) { + if (dart.is(exception, stack_trace_test.MyException)) { + dart.throw(new stack_trace_test.MyException("Exception Test for stack trace being printed")); + ; + } else + throw exception; + } + + return 10; + } + static func2() { + try { + stack_trace_test.Helper.func(); + } catch (exception) { + if (dart.is(exception, stack_trace_test.MyException)) { + throw exception; + } else + throw exception; + } + + return 10; + } + }; + dart.setSignature(stack_trace_test.Helper, { + statics: () => ({ + f1: [core.int, [core.int]], + func: [core.int, []], + func1: [core.int, []], + func2: [core.int, []] + }), + names: ['f1', 'func', 'func1', 'func2'] + }); + stack_trace_test.StackTraceTest = class StackTraceTest extends core.Object { + static testMain() { + expect$.Expect.equals(850, stack_trace_test.Helper.f1(1)); + } + }; + dart.setSignature(stack_trace_test.StackTraceTest, { + statics: () => ({testMain: [dart.dynamic, []]}), + names: ['testMain'] + }); + stack_trace_test.RethrowStacktraceTest = class RethrowStacktraceTest extends core.Object { + RethrowStacktraceTest() { + this.config = 0; + } + issue12940() { + dart.throw("Progy"); + } + b() { + this.issue12940(); + } + c() { + if (this.config == 0) { + try { + this.b(); + } catch (e) { + throw e; + } + + } else { + try { + this.b(); + } catch (e) { + let s = dart.stackTrace(e); + throw e; + } + + } + } + d() { + this.c(); + } + testBoth() { + for (this.config = 0; dart.notNull(this.config) < 2; this.config = dart.notNull(this.config) + 1) { + try { + this.d(); + } catch (e) { + let s = dart.stackTrace(e); + expect$.Expect.isTrue(s.toString()[dartx.contains]("issue12940")); + } + + } + } + static testMain() { + let test = new stack_trace_test.RethrowStacktraceTest(); + test.testBoth(); + } + }; + dart.setSignature(stack_trace_test.RethrowStacktraceTest, { + methods: () => ({ + issue12940: [dart.dynamic, []], + b: [dart.dynamic, []], + c: [dart.dynamic, []], + d: [dart.dynamic, []], + testBoth: [dart.dynamic, []] + }), + statics: () => ({testMain: [dart.dynamic, []]}), + names: ['testMain'] + }); + stack_trace_test.main = function() { + stack_trace_test.StackTraceTest.testMain(); + stack_trace_test.RethrowStacktraceTest.testMain(); + }; + dart.fn(stack_trace_test.main); + // Exports: + exports.stack_trace_test = stack_trace_test; +}); dart_library.library('stacktrace_rethrow_error_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -131262,194 +129739,6 @@ dart_library.library('stacktrace_rethrow_nonerror_test', null, /* Imports */[ // Exports: exports.stacktrace_rethrow_nonerror_test = stacktrace_rethrow_nonerror_test; }); -dart_library.library('stack_trace_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const stack_trace_test = Object.create(null); - stack_trace_test.MyException = class MyException extends core.Object { - MyException(message) { - this.message_ = message; - } - }; - dart.setSignature(stack_trace_test.MyException, { - constructors: () => ({MyException: [stack_trace_test.MyException, [core.String]]}) - }); - stack_trace_test.Helper = class Helper extends core.Object { - static f1(i) { - try { - i = stack_trace_test.Helper.func(); - i = 10; - } catch (exception) { - if (dart.is(exception, stack_trace_test.MyException)) { - let stacktrace = dart.stackTrace(exception); - i = 50; - core.print(exception.message_); - expect$.Expect.isNotNull(stacktrace); - core.print(stacktrace); - } else - throw exception; - } - - try { - let j = null; - i = stack_trace_test.Helper.func1(); - i = 200; - } catch (exception) { - if (dart.is(exception, stack_trace_test.MyException)) { - let stacktrace = dart.stackTrace(exception); - i = 50; - core.print(exception.message_); - expect$.Expect.isNotNull(stacktrace); - core.print(stacktrace); - } else - throw exception; - } - - try { - let j = null; - i = stack_trace_test.Helper.func2(); - i = 200; - } catch (exception) { - if (dart.is(exception, stack_trace_test.MyException)) { - let stacktrace = dart.stackTrace(exception); - i = 50; - core.print(exception.message_); - expect$.Expect.isNotNull(stacktrace); - core.print(stacktrace); - } else - throw exception; - } - finally { - i = dart.notNull(i) + 800; - } - return i; - } - static func() { - let i = 0; - while (i < 10) { - i++; - } - if (i > 0) { - dart.throw(new stack_trace_test.MyException("Exception Test for stack trace being printed")); - } - return 10; - } - static func1() { - try { - stack_trace_test.Helper.func(); - } catch (exception) { - if (dart.is(exception, stack_trace_test.MyException)) { - dart.throw(new stack_trace_test.MyException("Exception Test for stack trace being printed")); - ; - } else - throw exception; - } - - return 10; - } - static func2() { - try { - stack_trace_test.Helper.func(); - } catch (exception) { - if (dart.is(exception, stack_trace_test.MyException)) { - throw exception; - } else - throw exception; - } - - return 10; - } - }; - dart.setSignature(stack_trace_test.Helper, { - statics: () => ({ - f1: [core.int, [core.int]], - func: [core.int, []], - func1: [core.int, []], - func2: [core.int, []] - }), - names: ['f1', 'func', 'func1', 'func2'] - }); - stack_trace_test.StackTraceTest = class StackTraceTest extends core.Object { - static testMain() { - expect$.Expect.equals(850, stack_trace_test.Helper.f1(1)); - } - }; - dart.setSignature(stack_trace_test.StackTraceTest, { - statics: () => ({testMain: [dart.dynamic, []]}), - names: ['testMain'] - }); - stack_trace_test.RethrowStacktraceTest = class RethrowStacktraceTest extends core.Object { - RethrowStacktraceTest() { - this.config = 0; - } - issue12940() { - dart.throw("Progy"); - } - b() { - this.issue12940(); - } - c() { - if (this.config == 0) { - try { - this.b(); - } catch (e) { - throw e; - } - - } else { - try { - this.b(); - } catch (e) { - let s = dart.stackTrace(e); - throw e; - } - - } - } - d() { - this.c(); - } - testBoth() { - for (this.config = 0; dart.notNull(this.config) < 2; this.config = dart.notNull(this.config) + 1) { - try { - this.d(); - } catch (e) { - let s = dart.stackTrace(e); - expect$.Expect.isTrue(s.toString()[dartx.contains]("issue12940")); - } - - } - } - static testMain() { - let test = new stack_trace_test.RethrowStacktraceTest(); - test.testBoth(); - } - }; - dart.setSignature(stack_trace_test.RethrowStacktraceTest, { - methods: () => ({ - issue12940: [dart.dynamic, []], - b: [dart.dynamic, []], - c: [dart.dynamic, []], - d: [dart.dynamic, []], - testBoth: [dart.dynamic, []] - }), - statics: () => ({testMain: [dart.dynamic, []]}), - names: ['testMain'] - }); - stack_trace_test.main = function() { - stack_trace_test.StackTraceTest.testMain(); - stack_trace_test.RethrowStacktraceTest.testMain(); - }; - dart.fn(stack_trace_test.main); - // Exports: - exports.stack_trace_test = stack_trace_test; -}); dart_library.library('stacktrace_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -135014,45 +133303,6 @@ dart_library.library('syncstar_less_than_test', null, /* Imports */[ // Exports: exports.syncstar_less_than_test = syncstar_less_than_test; }); -dart_library.library('syncstar_yieldstar_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const syncstar_yieldstar_test = Object.create(null); - syncstar_yieldstar_test.bar = function() { - return dart.syncStar(function*() { - let i = 1; - let j = 1; - while (true) { - yield i; - j = i + j; - i = j - i; - } - }, dart.dynamic); - }; - dart.fn(syncstar_yieldstar_test.bar); - syncstar_yieldstar_test.foo = function() { - return dart.syncStar(function*() { - yield* dart.list([1, 2, 3], core.int); - yield null; - yield* dart.as(syncstar_yieldstar_test.bar(), core.Iterable); - }, dart.dynamic); - }; - dart.fn(syncstar_yieldstar_test.foo); - syncstar_yieldstar_test.main = function() { - return dart.async(function*() { - expect$.Expect.listEquals(dart.list([1, 2, 3, null, 1, 1, 2, 3, 5], core.int), dart.as(dart.dsend(dart.dsend(syncstar_yieldstar_test.foo(), 'take', 9), 'toList'), core.List)); - }, dart.dynamic); - }; - dart.fn(syncstar_yieldstar_test.main); - // Exports: - exports.syncstar_yieldstar_test = syncstar_yieldstar_test; -}); dart_library.library('syncstar_yield_test_copyParameters_multi', null, /* Imports */[ 'dart_sdk', 'expect' @@ -135176,6 +133426,45 @@ dart_library.library('syncstar_yield_test_none_multi', null, /* Imports */[ // Exports: exports.syncstar_yield_test_none_multi = syncstar_yield_test_none_multi; }); +dart_library.library('syncstar_yieldstar_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const syncstar_yieldstar_test = Object.create(null); + syncstar_yieldstar_test.bar = function() { + return dart.syncStar(function*() { + let i = 1; + let j = 1; + while (true) { + yield i; + j = i + j; + i = j - i; + } + }, dart.dynamic); + }; + dart.fn(syncstar_yieldstar_test.bar); + syncstar_yieldstar_test.foo = function() { + return dart.syncStar(function*() { + yield* dart.list([1, 2, 3], core.int); + yield null; + yield* dart.as(syncstar_yieldstar_test.bar(), core.Iterable); + }, dart.dynamic); + }; + dart.fn(syncstar_yieldstar_test.foo); + syncstar_yieldstar_test.main = function() { + return dart.async(function*() { + expect$.Expect.listEquals(dart.list([1, 2, 3, null, 1, 1, 2, 3, 5], core.int), dart.as(dart.dsend(dart.dsend(syncstar_yieldstar_test.foo(), 'take', 9), 'toList'), core.List)); + }, dart.dynamic); + }; + dart.fn(syncstar_yieldstar_test.main); + // Exports: + exports.syncstar_yieldstar_test = syncstar_yieldstar_test; +}); dart_library.library('temp_mangling_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -136006,38 +134295,6 @@ dart_library.library('throw8_test', null, /* Imports */[ // Exports: exports.throw8_test = throw8_test; }); -dart_library.library('throwing_lazy_variable_test', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const throwing_lazy_variable_test = Object.create(null); - dart.defineLazy(throwing_lazy_variable_test, { - get a() { - return throwing_lazy_variable_test.foo(); - }, - set a(_) {} - }); - throwing_lazy_variable_test.foo = function() { - dart.fn(() => 42, core.int, []); - if (true) dart.throw('Sorry'); - return 42; - }; - dart.fn(throwing_lazy_variable_test.foo); - throwing_lazy_variable_test.main = function() { - try { - throwing_lazy_variable_test.a; - } catch (e) { - } - - if (typeof throwing_lazy_variable_test.a == 'number') dart.throw('Test failed'); - }; - dart.fn(throwing_lazy_variable_test.main); - // Exports: - exports.throwing_lazy_variable_test = throwing_lazy_variable_test; -}); dart_library.library('throw_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -136107,42 +134364,37 @@ dart_library.library('throw_test', null, /* Imports */[ // Exports: exports.throw_test = throw_test; }); -dart_library.library('toplevel_collision1_test_none_multi', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const toplevel_collision1_test_none_multi = Object.create(null); - toplevel_collision1_test_none_multi.x = 100; - toplevel_collision1_test_none_multi.main = function() { - }; - dart.fn(toplevel_collision1_test_none_multi.main, dart.void, []); - // Exports: - exports.toplevel_collision1_test_none_multi = toplevel_collision1_test_none_multi; -}); -dart_library.library('toplevel_collision2_test_none_multi', null, /* Imports */[ +dart_library.library('throwing_lazy_variable_test', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { 'use strict'; const core = dart_sdk.core; const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; - const toplevel_collision2_test_none_multi = Object.create(null); - dart.copyProperties(toplevel_collision2_test_none_multi, { - get x() { - return 200; + const throwing_lazy_variable_test = Object.create(null); + dart.defineLazy(throwing_lazy_variable_test, { + get a() { + return throwing_lazy_variable_test.foo(); }, - set x(i) { - core.print(i); - } + set a(_) {} }); - toplevel_collision2_test_none_multi.main = function() { + throwing_lazy_variable_test.foo = function() { + dart.fn(() => 42, core.int, []); + if (true) dart.throw('Sorry'); + return 42; }; - dart.fn(toplevel_collision2_test_none_multi.main, dart.void, []); + dart.fn(throwing_lazy_variable_test.foo); + throwing_lazy_variable_test.main = function() { + try { + throwing_lazy_variable_test.a; + } catch (e) { + } + + if (typeof throwing_lazy_variable_test.a == 'number') dart.throw('Test failed'); + }; + dart.fn(throwing_lazy_variable_test.main); // Exports: - exports.toplevel_collision2_test_none_multi = toplevel_collision2_test_none_multi; + exports.throwing_lazy_variable_test = throwing_lazy_variable_test; }); dart_library.library('top_level_entry_test', null, /* Imports */[ 'dart_sdk' @@ -136579,6 +134831,43 @@ dart_library.library('top_level_var_test', null, /* Imports */[ // Exports: exports.top_level_var_test = top_level_var_test; }); +dart_library.library('toplevel_collision1_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const toplevel_collision1_test_none_multi = Object.create(null); + toplevel_collision1_test_none_multi.x = 100; + toplevel_collision1_test_none_multi.main = function() { + }; + dart.fn(toplevel_collision1_test_none_multi.main, dart.void, []); + // Exports: + exports.toplevel_collision1_test_none_multi = toplevel_collision1_test_none_multi; +}); +dart_library.library('toplevel_collision2_test_none_multi', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const toplevel_collision2_test_none_multi = Object.create(null); + dart.copyProperties(toplevel_collision2_test_none_multi, { + get x() { + return 200; + }, + set x(i) { + core.print(i); + } + }); + toplevel_collision2_test_none_multi.main = function() { + }; + dart.fn(toplevel_collision2_test_none_multi.main, dart.void, []); + // Exports: + exports.toplevel_collision2_test_none_multi = toplevel_collision2_test_none_multi; +}); dart_library.library('tree_shake_typed_selector_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -138166,224 +136455,6 @@ dart_library.library('type_conversion_ssa_test', null, /* Imports */[ // Exports: exports.type_conversion_ssa_test = type_conversion_ssa_test; }); -dart_library.library('typedef_is_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const typedef_is_test = Object.create(null); - typedef_is_test.Func1 = dart.typedef('Func1', () => dart.functionType(core.int, [core.int])); - typedef_is_test.Func2 = dart.typedef('Func2', () => dart.functionType(core.int, [core.int], [core.int])); - typedef_is_test.Func3 = dart.typedef('Func3', () => dart.functionType(core.int, [core.int], [core.int, core.int])); - typedef_is_test.Func4 = dart.typedef('Func4', () => dart.functionType(core.int, [], [core.int, core.int, core.int])); - typedef_is_test.Func5 = dart.typedef('Func5', () => dart.functionType(core.int, [core.int], {b: core.int})); - typedef_is_test.Func6 = dart.typedef('Func6', () => dart.functionType(core.int, [core.int], {b: core.int, c: core.int})); - typedef_is_test.Func7 = dart.typedef('Func7', () => dart.functionType(core.int, [], {a: core.int, b: core.int, c: core.int})); - typedef_is_test.main = function() { - function func1(i) { - } - dart.fn(func1, core.int, [core.int]); - expect$.Expect.isTrue(dart.is(func1, typedef_is_test.Func1)); - expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func2)); - expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func4)); - expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func5)); - expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func6)); - expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func7)); - function func2(i, j) { - } - dart.fn(func2, core.int, [core.int, core.int]); - expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func1)); - expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func2)); - expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func4)); - expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func5)); - expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func6)); - expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func7)); - function func3(i, j, k) { - } - dart.fn(func3, core.int, [core.int, core.int, core.int]); - expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func1)); - expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func2)); - expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func4)); - expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func5)); - expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func6)); - expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func7)); - function func4(i, j) { - if (j === void 0) j = null; - } - dart.fn(func4, core.int, [core.int], [core.int]); - expect$.Expect.isTrue(dart.is(func4, typedef_is_test.Func1)); - expect$.Expect.isTrue(dart.is(func4, typedef_is_test.Func2)); - expect$.Expect.isFalse(dart.is(func4, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func4, typedef_is_test.Func4)); - expect$.Expect.isFalse(dart.is(func4, typedef_is_test.Func5)); - expect$.Expect.isFalse(dart.is(func4, typedef_is_test.Func6)); - expect$.Expect.isFalse(dart.is(func4, typedef_is_test.Func7)); - function func5(i, j, k) { - if (j === void 0) j = null; - if (k === void 0) k = null; - } - dart.fn(func5, core.int, [core.int], [core.int, core.int]); - expect$.Expect.isTrue(dart.is(func5, typedef_is_test.Func1)); - expect$.Expect.isTrue(dart.is(func5, typedef_is_test.Func2)); - expect$.Expect.isTrue(dart.is(func5, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func5, typedef_is_test.Func4)); - expect$.Expect.isFalse(dart.is(func5, typedef_is_test.Func5)); - expect$.Expect.isFalse(dart.is(func5, typedef_is_test.Func6)); - expect$.Expect.isFalse(dart.is(func5, typedef_is_test.Func7)); - function func6(i, j, k) { - if (i === void 0) i = null; - if (j === void 0) j = null; - if (k === void 0) k = null; - } - dart.fn(func6, core.int, [], [core.int, core.int, core.int]); - expect$.Expect.isTrue(dart.is(func6, typedef_is_test.Func1)); - expect$.Expect.isTrue(dart.is(func6, typedef_is_test.Func2)); - expect$.Expect.isTrue(dart.is(func6, typedef_is_test.Func3)); - expect$.Expect.isTrue(dart.is(func6, typedef_is_test.Func4)); - expect$.Expect.isFalse(dart.is(func6, typedef_is_test.Func5)); - expect$.Expect.isFalse(dart.is(func6, typedef_is_test.Func6)); - expect$.Expect.isFalse(dart.is(func6, typedef_is_test.Func7)); - function func7(i, opts) { - let j = opts && 'j' in opts ? opts.j : null; - } - dart.fn(func7, core.int, [core.int], {j: core.int}); - expect$.Expect.isTrue(dart.is(func7, typedef_is_test.Func1)); - expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func2)); - expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func4)); - expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func5)); - expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func6)); - expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func7)); - function func8(i, opts) { - let b = opts && 'b' in opts ? opts.b : null; - } - dart.fn(func8, core.int, [core.int], {b: core.int}); - expect$.Expect.isTrue(dart.is(func8, typedef_is_test.Func1)); - expect$.Expect.isFalse(dart.is(func8, typedef_is_test.Func2)); - expect$.Expect.isFalse(dart.is(func8, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func8, typedef_is_test.Func4)); - expect$.Expect.isTrue(dart.is(func8, typedef_is_test.Func5)); - expect$.Expect.isFalse(dart.is(func8, typedef_is_test.Func6)); - expect$.Expect.isFalse(dart.is(func8, typedef_is_test.Func7)); - function func9(i, opts) { - let b = opts && 'b' in opts ? opts.b : null; - let c = opts && 'c' in opts ? opts.c : null; - } - dart.fn(func9, core.int, [core.int], {b: core.int, c: core.int}); - expect$.Expect.isTrue(dart.is(func9, typedef_is_test.Func1)); - expect$.Expect.isFalse(dart.is(func9, typedef_is_test.Func2)); - expect$.Expect.isFalse(dart.is(func9, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func9, typedef_is_test.Func4)); - expect$.Expect.isTrue(dart.is(func9, typedef_is_test.Func5)); - expect$.Expect.isTrue(dart.is(func9, typedef_is_test.Func6)); - expect$.Expect.isFalse(dart.is(func9, typedef_is_test.Func7)); - function func10(i, opts) { - let c = opts && 'c' in opts ? opts.c : null; - let b = opts && 'b' in opts ? opts.b : null; - } - dart.fn(func10, core.int, [core.int], {c: core.int, b: core.int}); - expect$.Expect.isTrue(dart.is(func10, typedef_is_test.Func1)); - expect$.Expect.isFalse(dart.is(func10, typedef_is_test.Func2)); - expect$.Expect.isFalse(dart.is(func10, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func10, typedef_is_test.Func4)); - expect$.Expect.isTrue(dart.is(func10, typedef_is_test.Func5)); - expect$.Expect.isTrue(dart.is(func10, typedef_is_test.Func6)); - expect$.Expect.isFalse(dart.is(func10, typedef_is_test.Func7)); - function func11(opts) { - let a = opts && 'a' in opts ? opts.a : null; - let b = opts && 'b' in opts ? opts.b : null; - let c = opts && 'c' in opts ? opts.c : null; - } - dart.fn(func11, core.int, [], {a: core.int, b: core.int, c: core.int}); - expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func1)); - expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func2)); - expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func4)); - expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func5)); - expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func6)); - expect$.Expect.isTrue(dart.is(func11, typedef_is_test.Func7)); - function func12(opts) { - let c = opts && 'c' in opts ? opts.c : null; - let a = opts && 'a' in opts ? opts.a : null; - let b = opts && 'b' in opts ? opts.b : null; - } - dart.fn(func12, core.int, [], {c: core.int, a: core.int, b: core.int}); - expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func1)); - expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func2)); - expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func3)); - expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func4)); - expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func5)); - expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func6)); - expect$.Expect.isTrue(dart.is(func12, typedef_is_test.Func7)); - }; - dart.fn(typedef_is_test.main, dart.void, []); - // Exports: - exports.typedef_is_test = typedef_is_test; -}); -dart_library.library('typed_equality_test', null, /* Imports */[ - 'dart_sdk' -], function(exports, dart_sdk) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const typed_equality_test = Object.create(null); - typed_equality_test.foo = function(a, b) { - if (core.identical(a, b)) return; - dart.throw('broken'); - }; - dart.fn(typed_equality_test.foo); - typed_equality_test.D = class D extends core.Object {}; - typed_equality_test.C = class C extends core.Object {}; - typed_equality_test.C[dart.implements] = () => [typed_equality_test.D]; - typed_equality_test.main = function() { - let c = new typed_equality_test.C(); - typed_equality_test.foo(c, c); - }; - dart.fn(typed_equality_test.main); - // Exports: - exports.typed_equality_test = typed_equality_test; -}); -dart_library.library('typed_selector_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const typed_selector_test = Object.create(null); - typed_selector_test.A = class A extends core.Object { - get document() { - return 42; - } - }; - typed_selector_test.B = class B extends core.Object {}; - typed_selector_test.C = class C extends typed_selector_test.A {}; - typed_selector_test.C[dart.implements] = () => [typed_selector_test.B]; - typed_selector_test.inscrutable = function(x) { - return x == 0 ? 0 : dart.notNull(x) | dart.notNull(typed_selector_test.inscrutable(dart.notNull(x) & dart.notNull(x) - 1)); - }; - dart.fn(typed_selector_test.inscrutable, core.int, [core.int]); - typed_selector_test.main = function() { - let tab = dart.list([new core.Object(), new typed_selector_test.C()], core.Object); - let obj = tab[dartx.get](typed_selector_test.inscrutable(1)); - let res = 0; - if (dart.is(obj, typed_selector_test.B)) res = dart.as(obj.document, core.int); - expect$.Expect.equals(42, res); - }; - dart.fn(typed_selector_test.main, dart.void, []); - // Exports: - exports.typed_selector_test = typed_selector_test; -}); dart_library.library('type_guard_conversion_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -140265,6 +138336,224 @@ dart_library.library('type_variable_typedef_test', null, /* Imports */[ // Exports: exports.type_variable_typedef_test = type_variable_typedef_test; }); +dart_library.library('typed_equality_test', null, /* Imports */[ + 'dart_sdk' +], function(exports, dart_sdk) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const typed_equality_test = Object.create(null); + typed_equality_test.foo = function(a, b) { + if (core.identical(a, b)) return; + dart.throw('broken'); + }; + dart.fn(typed_equality_test.foo); + typed_equality_test.D = class D extends core.Object {}; + typed_equality_test.C = class C extends core.Object {}; + typed_equality_test.C[dart.implements] = () => [typed_equality_test.D]; + typed_equality_test.main = function() { + let c = new typed_equality_test.C(); + typed_equality_test.foo(c, c); + }; + dart.fn(typed_equality_test.main); + // Exports: + exports.typed_equality_test = typed_equality_test; +}); +dart_library.library('typed_selector_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const typed_selector_test = Object.create(null); + typed_selector_test.A = class A extends core.Object { + get document() { + return 42; + } + }; + typed_selector_test.B = class B extends core.Object {}; + typed_selector_test.C = class C extends typed_selector_test.A {}; + typed_selector_test.C[dart.implements] = () => [typed_selector_test.B]; + typed_selector_test.inscrutable = function(x) { + return x == 0 ? 0 : dart.notNull(x) | dart.notNull(typed_selector_test.inscrutable(dart.notNull(x) & dart.notNull(x) - 1)); + }; + dart.fn(typed_selector_test.inscrutable, core.int, [core.int]); + typed_selector_test.main = function() { + let tab = dart.list([new core.Object(), new typed_selector_test.C()], core.Object); + let obj = tab[dartx.get](typed_selector_test.inscrutable(1)); + let res = 0; + if (dart.is(obj, typed_selector_test.B)) res = dart.as(obj.document, core.int); + expect$.Expect.equals(42, res); + }; + dart.fn(typed_selector_test.main, dart.void, []); + // Exports: + exports.typed_selector_test = typed_selector_test; +}); +dart_library.library('typedef_is_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const typedef_is_test = Object.create(null); + typedef_is_test.Func1 = dart.typedef('Func1', () => dart.functionType(core.int, [core.int])); + typedef_is_test.Func2 = dart.typedef('Func2', () => dart.functionType(core.int, [core.int], [core.int])); + typedef_is_test.Func3 = dart.typedef('Func3', () => dart.functionType(core.int, [core.int], [core.int, core.int])); + typedef_is_test.Func4 = dart.typedef('Func4', () => dart.functionType(core.int, [], [core.int, core.int, core.int])); + typedef_is_test.Func5 = dart.typedef('Func5', () => dart.functionType(core.int, [core.int], {b: core.int})); + typedef_is_test.Func6 = dart.typedef('Func6', () => dart.functionType(core.int, [core.int], {b: core.int, c: core.int})); + typedef_is_test.Func7 = dart.typedef('Func7', () => dart.functionType(core.int, [], {a: core.int, b: core.int, c: core.int})); + typedef_is_test.main = function() { + function func1(i) { + } + dart.fn(func1, core.int, [core.int]); + expect$.Expect.isTrue(dart.is(func1, typedef_is_test.Func1)); + expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func2)); + expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func4)); + expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func5)); + expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func6)); + expect$.Expect.isFalse(dart.is(func1, typedef_is_test.Func7)); + function func2(i, j) { + } + dart.fn(func2, core.int, [core.int, core.int]); + expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func1)); + expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func2)); + expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func4)); + expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func5)); + expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func6)); + expect$.Expect.isFalse(dart.is(func2, typedef_is_test.Func7)); + function func3(i, j, k) { + } + dart.fn(func3, core.int, [core.int, core.int, core.int]); + expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func1)); + expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func2)); + expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func4)); + expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func5)); + expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func6)); + expect$.Expect.isFalse(dart.is(func3, typedef_is_test.Func7)); + function func4(i, j) { + if (j === void 0) j = null; + } + dart.fn(func4, core.int, [core.int], [core.int]); + expect$.Expect.isTrue(dart.is(func4, typedef_is_test.Func1)); + expect$.Expect.isTrue(dart.is(func4, typedef_is_test.Func2)); + expect$.Expect.isFalse(dart.is(func4, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func4, typedef_is_test.Func4)); + expect$.Expect.isFalse(dart.is(func4, typedef_is_test.Func5)); + expect$.Expect.isFalse(dart.is(func4, typedef_is_test.Func6)); + expect$.Expect.isFalse(dart.is(func4, typedef_is_test.Func7)); + function func5(i, j, k) { + if (j === void 0) j = null; + if (k === void 0) k = null; + } + dart.fn(func5, core.int, [core.int], [core.int, core.int]); + expect$.Expect.isTrue(dart.is(func5, typedef_is_test.Func1)); + expect$.Expect.isTrue(dart.is(func5, typedef_is_test.Func2)); + expect$.Expect.isTrue(dart.is(func5, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func5, typedef_is_test.Func4)); + expect$.Expect.isFalse(dart.is(func5, typedef_is_test.Func5)); + expect$.Expect.isFalse(dart.is(func5, typedef_is_test.Func6)); + expect$.Expect.isFalse(dart.is(func5, typedef_is_test.Func7)); + function func6(i, j, k) { + if (i === void 0) i = null; + if (j === void 0) j = null; + if (k === void 0) k = null; + } + dart.fn(func6, core.int, [], [core.int, core.int, core.int]); + expect$.Expect.isTrue(dart.is(func6, typedef_is_test.Func1)); + expect$.Expect.isTrue(dart.is(func6, typedef_is_test.Func2)); + expect$.Expect.isTrue(dart.is(func6, typedef_is_test.Func3)); + expect$.Expect.isTrue(dart.is(func6, typedef_is_test.Func4)); + expect$.Expect.isFalse(dart.is(func6, typedef_is_test.Func5)); + expect$.Expect.isFalse(dart.is(func6, typedef_is_test.Func6)); + expect$.Expect.isFalse(dart.is(func6, typedef_is_test.Func7)); + function func7(i, opts) { + let j = opts && 'j' in opts ? opts.j : null; + } + dart.fn(func7, core.int, [core.int], {j: core.int}); + expect$.Expect.isTrue(dart.is(func7, typedef_is_test.Func1)); + expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func2)); + expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func4)); + expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func5)); + expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func6)); + expect$.Expect.isFalse(dart.is(func7, typedef_is_test.Func7)); + function func8(i, opts) { + let b = opts && 'b' in opts ? opts.b : null; + } + dart.fn(func8, core.int, [core.int], {b: core.int}); + expect$.Expect.isTrue(dart.is(func8, typedef_is_test.Func1)); + expect$.Expect.isFalse(dart.is(func8, typedef_is_test.Func2)); + expect$.Expect.isFalse(dart.is(func8, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func8, typedef_is_test.Func4)); + expect$.Expect.isTrue(dart.is(func8, typedef_is_test.Func5)); + expect$.Expect.isFalse(dart.is(func8, typedef_is_test.Func6)); + expect$.Expect.isFalse(dart.is(func8, typedef_is_test.Func7)); + function func9(i, opts) { + let b = opts && 'b' in opts ? opts.b : null; + let c = opts && 'c' in opts ? opts.c : null; + } + dart.fn(func9, core.int, [core.int], {b: core.int, c: core.int}); + expect$.Expect.isTrue(dart.is(func9, typedef_is_test.Func1)); + expect$.Expect.isFalse(dart.is(func9, typedef_is_test.Func2)); + expect$.Expect.isFalse(dart.is(func9, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func9, typedef_is_test.Func4)); + expect$.Expect.isTrue(dart.is(func9, typedef_is_test.Func5)); + expect$.Expect.isTrue(dart.is(func9, typedef_is_test.Func6)); + expect$.Expect.isFalse(dart.is(func9, typedef_is_test.Func7)); + function func10(i, opts) { + let c = opts && 'c' in opts ? opts.c : null; + let b = opts && 'b' in opts ? opts.b : null; + } + dart.fn(func10, core.int, [core.int], {c: core.int, b: core.int}); + expect$.Expect.isTrue(dart.is(func10, typedef_is_test.Func1)); + expect$.Expect.isFalse(dart.is(func10, typedef_is_test.Func2)); + expect$.Expect.isFalse(dart.is(func10, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func10, typedef_is_test.Func4)); + expect$.Expect.isTrue(dart.is(func10, typedef_is_test.Func5)); + expect$.Expect.isTrue(dart.is(func10, typedef_is_test.Func6)); + expect$.Expect.isFalse(dart.is(func10, typedef_is_test.Func7)); + function func11(opts) { + let a = opts && 'a' in opts ? opts.a : null; + let b = opts && 'b' in opts ? opts.b : null; + let c = opts && 'c' in opts ? opts.c : null; + } + dart.fn(func11, core.int, [], {a: core.int, b: core.int, c: core.int}); + expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func1)); + expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func2)); + expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func4)); + expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func5)); + expect$.Expect.isFalse(dart.is(func11, typedef_is_test.Func6)); + expect$.Expect.isTrue(dart.is(func11, typedef_is_test.Func7)); + function func12(opts) { + let c = opts && 'c' in opts ? opts.c : null; + let a = opts && 'a' in opts ? opts.a : null; + let b = opts && 'b' in opts ? opts.b : null; + } + dart.fn(func12, core.int, [], {c: core.int, a: core.int, b: core.int}); + expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func1)); + expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func2)); + expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func3)); + expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func4)); + expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func5)); + expect$.Expect.isFalse(dart.is(func12, typedef_is_test.Func6)); + expect$.Expect.isTrue(dart.is(func12, typedef_is_test.Func7)); + }; + dart.fn(typedef_is_test.main, dart.void, []); + // Exports: + exports.typedef_is_test = typedef_is_test; +}); dart_library.library('unary2_test', null, /* Imports */[ 'dart_sdk', 'expect' @@ -140666,6 +138955,36 @@ dart_library.library('value_range_test', null, /* Imports */[ // Exports: exports.value_range_test = value_range_test; }); +dart_library.library('var_init_test', null, /* Imports */[ + 'dart_sdk', + 'expect' +], function(exports, dart_sdk, expect) { + 'use strict'; + const core = dart_sdk.core; + const dart = dart_sdk.dart; + const dartx = dart_sdk.dartx; + const expect$ = expect.expect; + const var_init_test = Object.create(null); + var_init_test.VarInitTest = class VarInitTest extends core.Object { + static testMain() { + for (let i = 0; i < 10; i++) { + let x = null; + expect$.Expect.equals(null, x); + x = 1; + } + } + }; + dart.setSignature(var_init_test.VarInitTest, { + statics: () => ({testMain: [dart.void, []]}), + names: ['testMain'] + }); + var_init_test.main = function() { + var_init_test.VarInitTest.testMain(); + }; + dart.fn(var_init_test.main); + // Exports: + exports.var_init_test = var_init_test; +}); dart_library.library('variable_declaration_metadata_test_none_multi', null, /* Imports */[ 'dart_sdk' ], function(exports, dart_sdk) { @@ -140722,36 +139041,6 @@ dart_library.library('variable_declaration_metadata_test_none_multi', null, /* I // Exports: exports.variable_declaration_metadata_test_none_multi = variable_declaration_metadata_test_none_multi; }); -dart_library.library('var_init_test', null, /* Imports */[ - 'dart_sdk', - 'expect' -], function(exports, dart_sdk, expect) { - 'use strict'; - const core = dart_sdk.core; - const dart = dart_sdk.dart; - const dartx = dart_sdk.dartx; - const expect$ = expect.expect; - const var_init_test = Object.create(null); - var_init_test.VarInitTest = class VarInitTest extends core.Object { - static testMain() { - for (let i = 0; i < 10; i++) { - let x = null; - expect$.Expect.equals(null, x); - x = 1; - } - } - }; - dart.setSignature(var_init_test.VarInitTest, { - statics: () => ({testMain: [dart.void, []]}), - names: ['testMain'] - }); - var_init_test.main = function() { - var_init_test.VarInitTest.testMain(); - }; - dart.fn(var_init_test.main); - // Exports: - exports.var_init_test = var_init_test; -}); dart_library.library('while_test', null, /* Imports */[ 'dart_sdk', 'expect' diff --git a/pkg/dev_compiler/test/codegen/language/cascade_nested_test.dart b/pkg/dev_compiler/test/codegen/language/cascade_nested_test.dart new file mode 100644 index 000000000000..29a82e729e77 --- /dev/null +++ b/pkg/dev_compiler/test/codegen/language/cascade_nested_test.dart @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 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:expect/expect.dart"; + +class Foo { + int x; +} + +class Bar { + Foo foo; + int y; +} + +main() { + var bar = new Bar() + ..foo = (new Foo()..x = 42) + ..y = 38; + Expect.isTrue(bar is Bar); + Expect.isTrue(bar.foo is Foo); + Expect.equals(bar.foo.x, 42); + Expect.equals(bar.y, 38); +}