| 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/ast/token.dart'; | 6 import 'package:analyzer/dart/ast/token.dart'; |
| 7 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
| 8 import 'package:analyzer/error/error.dart'; | 8 import 'package:analyzer/error/error.dart'; |
| 9 import 'package:analyzer/error/listener.dart'; | 9 import 'package:analyzer/error/listener.dart'; |
| 10 import 'package:analyzer/src/context/context.dart'; | 10 import 'package:analyzer/src/context/context.dart'; |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 } | 319 } |
| 320 | 320 |
| 321 new DeclarationResolver().resolve(unit, unitElement); | 321 new DeclarationResolver().resolve(unit, unitElement); |
| 322 | 322 |
| 323 if (file == library) { | 323 if (file == library) { |
| 324 // TODO(scheglov) fill these maps? | 324 // TODO(scheglov) fill these maps? |
| 325 DirectiveResolver resolver = new DirectiveResolver({}, {}, {}); | 325 DirectiveResolver resolver = new DirectiveResolver({}, {}, {}); |
| 326 unit.accept(resolver); | 326 unit.accept(resolver); |
| 327 } | 327 } |
| 328 | 328 |
| 329 unit.accept(new EnumMemberBuilder(typeProvider)); | 329 // TODO(scheglov) remove EnumMemberBuilder class |
| 330 | 330 |
| 331 new TypeParameterBoundsResolver( | 331 new TypeParameterBoundsResolver( |
| 332 typeProvider, libraryElement, unitElement.source, errorListener) | 332 typeProvider, libraryElement, unitElement.source, errorListener) |
| 333 .resolveTypeBounds(unit); | 333 .resolveTypeBounds(unit); |
| 334 | 334 |
| 335 unit.accept(new TypeResolverVisitor( | 335 unit.accept(new TypeResolverVisitor( |
| 336 libraryElement, unitElement.source, typeProvider, errorListener)); | 336 libraryElement, unitElement.source, typeProvider, errorListener)); |
| 337 | 337 |
| 338 LibraryScope libraryScope = new LibraryScope(libraryElement); | 338 LibraryScope libraryScope = new LibraryScope(libraryElement); |
| 339 unit.accept(new VariableResolverVisitor( | 339 unit.accept(new VariableResolverVisitor( |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 @override | 563 @override |
| 564 String setContents(Source source, String contents) { | 564 String setContents(Source source, String contents) { |
| 565 throw new UnimplementedError(); | 565 throw new UnimplementedError(); |
| 566 } | 566 } |
| 567 | 567 |
| 568 FileState _getFileForSource(Source source) { | 568 FileState _getFileForSource(Source source) { |
| 569 String path = source.fullName; | 569 String path = source.fullName; |
| 570 return fsState.getFileForPath(path); | 570 return fsState.getFileForPath(path); |
| 571 } | 571 } |
| 572 } | 572 } |
| OLD | NEW |