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

Side by Side Diff: pkg/front_end/lib/src/fasta/scanner/token.dart

Issue 2887443002: Revert "cleanup unused incremental resolution" (Closed)
Patch Set: Created 3 years, 7 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/analyzer/test/generated/test_all.dart ('k') | pkg/front_end/lib/src/scanner/token.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 fasta.scanner.token; 5 library fasta.scanner.token;
6 6
7 import '../../scanner/token.dart' as analyzer; 7 import '../../scanner/token.dart' as analyzer;
8 import '../../scanner/token.dart' show TokenType; 8 import '../../scanner/token.dart' show TokenType;
9 9
10 import 'token_constants.dart' show IDENTIFIER_TOKEN; 10 import 'token_constants.dart' show IDENTIFIER_TOKEN;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 charOffset = newOffset; 70 charOffset = newOffset;
71 } 71 }
72 72
73 @override 73 @override
74 int get length => charCount; 74 int get length => charCount;
75 75
76 @override 76 @override
77 int get end => charEnd; 77 int get end => charEnd;
78 78
79 @override 79 @override
80 void applyDelta(int delta) {
81 charOffset += delta;
82 CommentToken token = precedingComments;
83 while (token != null) {
84 token.applyDelta(delta);
85 token = token.next;
86 }
87 }
88
89 @override
80 analyzer.Token copy() { 90 analyzer.Token copy() {
81 return copyWithoutComments() 91 return copyWithoutComments()
82 ..precedingComments = copyComments(precedingComments); 92 ..precedingComments = copyComments(precedingComments);
83 } 93 }
84 94
85 @override 95 @override
86 analyzer.Token copyComments(analyzer.Token token) { 96 analyzer.Token copyComments(analyzer.Token token) {
87 if (token == null) { 97 if (token == null) {
88 return null; 98 return null;
89 } 99 }
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 identical(value, "<=") || 576 identical(value, "<=") ||
567 identical(value, "<") || 577 identical(value, "<") ||
568 identical(value, "&") || 578 identical(value, "&") ||
569 identical(value, "^") || 579 identical(value, "^") ||
570 identical(value, "|"); 580 identical(value, "|");
571 } 581 }
572 582
573 bool isTernaryOperator(String value) => identical(value, "[]="); 583 bool isTernaryOperator(String value) => identical(value, "[]=");
574 584
575 bool isMinusOperator(String value) => identical(value, "-"); 585 bool isMinusOperator(String value) => identical(value, "-");
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/test_all.dart ('k') | pkg/front_end/lib/src/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698