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

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

Issue 1668483003: Create ElementAnnotation objects prior to resolution. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 analyzer.src.generated.incremental_resolver; 5 library analyzer.src.generated.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/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 return true; 1078 return true;
1079 } finally { 1079 } finally {
1080 logger.exit(); 1080 logger.exit();
1081 } 1081 }
1082 } 1082 }
1083 1083
1084 void _buildElements(AstNode node) { 1084 void _buildElements(AstNode node) {
1085 LoggingTimer timer = logger.startTimer(); 1085 LoggingTimer timer = logger.startTimer();
1086 try { 1086 try {
1087 ElementHolder holder = new ElementHolder(); 1087 ElementHolder holder = new ElementHolder();
1088 ElementBuilder builder = new ElementBuilder(holder); 1088 ElementBuilder builder = new ElementBuilder(holder, _definingUnit);
1089 if (_resolutionContext.enclosingClassDeclaration != null) { 1089 if (_resolutionContext.enclosingClassDeclaration != null) {
1090 builder.visitClassDeclarationIncrementally( 1090 builder.visitClassDeclarationIncrementally(
1091 _resolutionContext.enclosingClassDeclaration); 1091 _resolutionContext.enclosingClassDeclaration);
1092 } 1092 }
1093 node.accept(builder); 1093 node.accept(builder);
1094 } finally { 1094 } finally {
1095 timer.stop('build elements'); 1095 timer.stop('build elements');
1096 } 1096 }
1097 } 1097 }
1098 1098
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 @override 2158 @override
2159 String toString() => name; 2159 String toString() => name;
2160 } 2160 }
2161 2161
2162 class _TokenPair { 2162 class _TokenPair {
2163 final _TokenDifferenceKind kind; 2163 final _TokenDifferenceKind kind;
2164 final Token oldToken; 2164 final Token oldToken;
2165 final Token newToken; 2165 final Token newToken;
2166 _TokenPair(this.kind, this.oldToken, this.newToken); 2166 _TokenPair(this.kind, this.oldToken, this.newToken);
2167 } 2167 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element_resolver.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698