| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'package:analyzer/dart/ast/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
| 6 import 'package:analyzer/dart/element/element.dart'; | 6 import 'package:analyzer/dart/element/element.dart'; |
| 7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
| 8 import 'package:front_end/src/fasta/analyzer/ast_builder.dart'; | 8 import 'package:front_end/src/fasta/analyzer/ast_builder.dart'; |
| 9 import 'package:front_end/src/fasta/analyzer/element_store.dart'; | 9 import 'package:front_end/src/fasta/analyzer/element_store.dart'; |
| 10 import 'package:front_end/src/fasta/builder/scope.dart'; | 10 import 'package:front_end/src/fasta/builder/scope.dart'; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 * [BuilderProxy]. | 300 * [BuilderProxy]. |
| 301 */ | 301 */ |
| 302 class ScopeProxy implements Scope { | 302 class ScopeProxy implements Scope { |
| 303 final _locals = <String, Builder>{}; | 303 final _locals = <String, Builder>{}; |
| 304 | 304 |
| 305 Builder lookup(String name) => | 305 Builder lookup(String name) => |
| 306 _locals.putIfAbsent(name, () => new BuilderProxy()); | 306 _locals.putIfAbsent(name, () => new BuilderProxy()); |
| 307 | 307 |
| 308 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 308 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 309 } | 309 } |
| OLD | NEW |