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

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

Issue 2718113003: Run dartfmt on pkg/front_end/lib. (Closed)
Patch Set: Rerun after merging. Created 3 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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/scanner/error_token.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/error_token.dart b/pkg/front_end/lib/src/fasta/scanner/error_token.dart
index 97579b0a9be20dc12665dfef54f14d7edb5f1410..513600aef8fd12cae78b65b9658e8bed3ba5dbf3 100644
--- a/pkg/front_end/lib/src/fasta/scanner/error_token.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/error_token.dart
@@ -6,20 +6,14 @@ library dart_scanner.error_token;
// TODO(ahe): ErrorKind doesn't belong in dart_parser. Move to compiler_util or
// this package?
-import '../parser/error_kind.dart' show
- ErrorKind;
+import '../parser/error_kind.dart' show ErrorKind;
-import '../scanner.dart' show
- BeginGroupToken,
- Token,
- unicodeReplacementCharacter;
+import '../scanner.dart'
+ show BeginGroupToken, Token, unicodeReplacementCharacter;
-import 'precedence.dart' show
- BAD_INPUT_INFO,
- PrecedenceInfo;
+import 'precedence.dart' show BAD_INPUT_INFO, PrecedenceInfo;
-export '../parser/error_kind.dart' show
- ErrorKind;
+export '../parser/error_kind.dart' show ErrorKind;
ErrorToken buildUnexpectedCharacterToken(int character, int charOffset) {
if (character < 0x1f) {
@@ -29,8 +23,8 @@ ErrorToken buildUnexpectedCharacterToken(int character, int charOffset) {
case unicodeReplacementCharacter:
return new EncodingErrorToken(charOffset);
- /// See [General Punctuation]
- /// (http://www.unicode.org/charts/PDF/U2000.pdf).
+ /// See [General Punctuation]
+ /// (http://www.unicode.org/charts/PDF/U2000.pdf).
case 0x00A0: // No-break space.
case 0x1680: // Ogham space mark.
case 0x180E: // Mongolian vowel separator.
@@ -111,8 +105,7 @@ class NonAsciiIdentifierToken extends ErrorToken {
String hex = character.toRadixString(16);
String padding = "0000".substring(hex.length);
hex = "$padding$hex";
- return
- "The non-ASCII character '$c' (U+$hex) can't be used in identifiers,"
+ return "The non-ASCII character '$c' (U+$hex) can't be used in identifiers,"
" only in strings and comments.\n"
"Try using an US-ASCII letter, a digit, '_' (an underscore),"
" or '\$' (a dollar sign).";
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart ('k') | pkg/front_end/lib/src/fasta/scanner/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698