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