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

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

Issue 2835703002: Remove ReferencedNames(Builder). (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/analysis_server/lib/src/status/validator.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | 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 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 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 } 879 }
880 } 880 }
881 881
882 void _updateEntry() { 882 void _updateEntry() {
883 // scan results 883 // scan results
884 _sourceEntry.setValueIncremental(SCAN_ERRORS, _newScanErrors, true); 884 _sourceEntry.setValueIncremental(SCAN_ERRORS, _newScanErrors, true);
885 _sourceEntry.setValueIncremental(LINE_INFO, _newLineInfo, false); 885 _sourceEntry.setValueIncremental(LINE_INFO, _newLineInfo, false);
886 // parse results 886 // parse results
887 _sourceEntry.setValueIncremental(PARSE_ERRORS, _newParseErrors, true); 887 _sourceEntry.setValueIncremental(PARSE_ERRORS, _newParseErrors, true);
888 _sourceEntry.setValueIncremental(PARSED_UNIT, _oldUnit, false); 888 _sourceEntry.setValueIncremental(PARSED_UNIT, _oldUnit, false);
889 // referenced names
890 ReferencedNames referencedNames = new ReferencedNames(_unitSource);
891 new ReferencedNamesBuilder(referencedNames).build(_oldUnit);
892 _sourceEntry.setValueIncremental(REFERENCED_NAMES, referencedNames, false);
893 } 889 }
894 890
895 /** 891 /**
896 * Checks if [token] has a balanced number of open and closed curly brackets. 892 * Checks if [token] has a balanced number of open and closed curly brackets.
897 */ 893 */
898 static bool _areCurlyBracketsBalanced(Token token) { 894 static bool _areCurlyBracketsBalanced(Token token) {
899 int numOpen = _getTokenCount(token, TokenType.OPEN_CURLY_BRACKET); 895 int numOpen = _getTokenCount(token, TokenType.OPEN_CURLY_BRACKET);
900 int numOpen2 = 896 int numOpen2 =
901 _getTokenCount(token, TokenType.STRING_INTERPOLATION_EXPRESSION); 897 _getTokenCount(token, TokenType.STRING_INTERPOLATION_EXPRESSION);
902 int numClosed = _getTokenCount(token, TokenType.CLOSE_CURLY_BRACKET); 898 int numClosed = _getTokenCount(token, TokenType.CLOSE_CURLY_BRACKET);
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 @override 1305 @override
1310 String toString() => name; 1306 String toString() => name;
1311 } 1307 }
1312 1308
1313 class _TokenPair { 1309 class _TokenPair {
1314 final _TokenDifferenceKind kind; 1310 final _TokenDifferenceKind kind;
1315 final Token oldToken; 1311 final Token oldToken;
1316 final Token newToken; 1312 final Token newToken;
1317 _TokenPair(this.kind, this.oldToken, this.newToken); 1313 _TokenPair(this.kind, this.oldToken, this.newToken);
1318 } 1314 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/status/validator.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698