| Index: sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart (revision 27592)
|
| +++ sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart (working copy)
|
| @@ -554,6 +554,7 @@
|
| final Element analyzedElement;
|
| final TypeSystem<T> types;
|
| final E inferrer;
|
| + final Compiler compiler;
|
| final Map<TargetElement, List<LocalsHandler<T>>> breaksFor =
|
| new Map<TargetElement, List<LocalsHandler<T>>>();
|
| final Map<TargetElement, List<LocalsHandler>> continuesFor =
|
| @@ -583,10 +584,10 @@
|
| this.types,
|
| Compiler compiler,
|
| [LocalsHandler<T> handler])
|
| - : this.analyzedElement = analyzedElement,
|
| + : this.compiler = compiler,
|
| + this.analyzedElement = analyzedElement,
|
| this.locals = handler,
|
| - super(compiler.enqueuer.resolution.getCachedElements(analyzedElement),
|
| - compiler) {
|
| + super(compiler.enqueuer.resolution.getCachedElements(analyzedElement)) {
|
| if (handler != null) return;
|
| Node node = analyzedElement.parseNode(compiler);
|
| FieldInitializationScope<T> fieldScope =
|
| @@ -614,13 +615,6 @@
|
|
|
| T visitFunctionExpression(FunctionExpression node);
|
|
|
| - T visitAssert(Send node) {
|
| - if (!compiler.enableUserAssertions) {
|
| - return types.nullType;
|
| - }
|
| - return visitStaticSend(node);
|
| - }
|
| -
|
| T visitNode(Node node) {
|
| node.visitChildren(this);
|
| }
|
|
|