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

Side by Side Diff: pkg/analyzer/lib/src/generated/incremental_resolver.dart

Issue 1080503003: Move getElementAt() to CompilationUnitElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/element_handle.dart ('k') | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library engine.incremental_resolver; 5 library engine.incremental_resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'package:analyzer/src/generated/constant.dart'; 10 import 'package:analyzer/src/generated/constant.dart';
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 } 781 }
782 782
783 /** 783 /**
784 * Instances of the class [IncrementalResolver] resolve the smallest portion of 784 * Instances of the class [IncrementalResolver] resolve the smallest portion of
785 * an AST structure that we currently know how to resolve. 785 * an AST structure that we currently know how to resolve.
786 */ 786 */
787 class IncrementalResolver { 787 class IncrementalResolver {
788 /** 788 /**
789 * The element of the compilation unit being resolved. 789 * The element of the compilation unit being resolved.
790 */ 790 */
791 final CompilationUnitElement _definingUnit; 791 final CompilationUnitElementImpl _definingUnit;
792 792
793 /** 793 /**
794 * The context the compilation unit being resolved in. 794 * The context the compilation unit being resolved in.
795 */ 795 */
796 AnalysisContextImpl _context; 796 AnalysisContextImpl _context;
797 797
798 /** 798 /**
799 * The object used to access the types from the core library. 799 * The object used to access the types from the core library.
800 */ 800 */
801 TypeProvider _typeProvider; 801 TypeProvider _typeProvider;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 // resolve 880 // resolve
881 _resolveReferences(rootNode); 881 _resolveReferences(rootNode);
882 _computeConstants(rootNode); 882 _computeConstants(rootNode);
883 _resolveErrors = errorListener.getErrorsForSource(_source); 883 _resolveErrors = errorListener.getErrorsForSource(_source);
884 // verify 884 // verify
885 _verify(rootNode); 885 _verify(rootNode);
886 _context.invalidateLibraryHints(_librarySource); 886 _context.invalidateLibraryHints(_librarySource);
887 _generateLints(rootNode); 887 _generateLints(rootNode);
888 // update entry errors 888 // update entry errors
889 _updateEntry(); 889 _updateEntry();
890 // notify library 890 // notify unit
891 _definingLibrary.afterIncrementalResolution(); 891 _definingUnit.afterIncrementalResolution();
892 // OK 892 // OK
893 return true; 893 return true;
894 } finally { 894 } finally {
895 logger.exit(); 895 logger.exit();
896 } 896 }
897 } 897 }
898 898
899 void _buildElements(AstNode node) { 899 void _buildElements(AstNode node) {
900 LoggingTimer timer = logger.startTimer(); 900 LoggingTimer timer = logger.startTimer();
901 try { 901 try {
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1843 @override 1843 @override
1844 String toString() => name; 1844 String toString() => name;
1845 } 1845 }
1846 1846
1847 class _TokenPair { 1847 class _TokenPair {
1848 final _TokenDifferenceKind kind; 1848 final _TokenDifferenceKind kind;
1849 final Token oldToken; 1849 final Token oldToken;
1850 final Token newToken; 1850 final Token newToken;
1851 _TokenPair(this.kind, this.oldToken, this.newToken); 1851 _TokenPair(this.kind, this.oldToken, this.newToken);
1852 } 1852 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element_handle.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698