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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/utf8_bytes_scanner.dart

Issue 2872453004: cleanup TokenType var names (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/token.dart ('k') | pkg/front_end/lib/src/scanner/errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/scanner/utf8_bytes_scanner.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/utf8_bytes_scanner.dart b/pkg/front_end/lib/src/fasta/scanner/utf8_bytes_scanner.dart
index 79106abb45f623210c8664a4ab63ba524103169a..41bf014221b6db49cf4d84ef55ed9944b81078ad 100644
--- a/pkg/front_end/lib/src/fasta/scanner/utf8_bytes_scanner.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/utf8_bytes_scanner.dart
@@ -198,24 +198,24 @@ class Utf8BytesScanner extends ArrayBasedScanner {
}
@override
- StringToken createSubstringToken(TokenType info, int start, bool asciiOnly,
+ StringToken createSubstringToken(TokenType type, int start, bool asciiOnly,
[int extraOffset = 0]) {
return new StringToken.fromUtf8Bytes(
- info, bytes, start, byteOffset + extraOffset, asciiOnly, tokenStart);
+ type, bytes, start, byteOffset + extraOffset, asciiOnly, tokenStart);
}
@override
- CommentToken createCommentToken(TokenType info, int start, bool asciiOnly,
+ CommentToken createCommentToken(TokenType type, int start, bool asciiOnly,
[int extraOffset = 0]) {
return new CommentToken.fromUtf8Bytes(
- info, bytes, start, byteOffset + extraOffset, asciiOnly, tokenStart);
+ type, bytes, start, byteOffset + extraOffset, asciiOnly, tokenStart);
}
@override
- DartDocToken createDartDocToken(TokenType info, int start, bool asciiOnly,
+ DartDocToken createDartDocToken(TokenType type, int start, bool asciiOnly,
[int extraOffset = 0]) {
return new DartDocToken.fromUtf8Bytes(
- info, bytes, start, byteOffset + extraOffset, asciiOnly, tokenStart);
+ type, bytes, start, byteOffset + extraOffset, asciiOnly, tokenStart);
}
bool atEndOfFile() => byteOffset >= bytes.length - 1;
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/token.dart ('k') | pkg/front_end/lib/src/scanner/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698