Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: pkg/analyzer/lib/src/dart/analysis/analysis_impl.dart

Issue 2680843003: We don't need to build enums. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698