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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/abstract_scanner.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/abstract_scanner.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart b/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
index c621efde27fd4a0dd770fd9c7780f3b9ee5d3eba..68a7adb73bedfca60fac1160cc78118131396d6d 100644
--- a/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
@@ -4,33 +4,20 @@
library fasta.scanner.abstract_scanner;
-import 'dart:collection' show
- ListMixin;
+import 'dart:collection' show ListMixin;
-import 'dart:typed_data' show
- Uint16List,
- Uint32List;
+import 'dart:typed_data' show Uint16List, Uint32List;
-import '../scanner.dart' show
- ErrorToken,
- Scanner,
- buildUnexpectedCharacterToken;
+import '../scanner.dart'
+ show ErrorToken, Scanner, buildUnexpectedCharacterToken;
-import 'error_token.dart' show
- UnmatchedToken,
- UnterminatedToken;
+import 'error_token.dart' show UnmatchedToken, UnterminatedToken;
-import 'keyword.dart' show
- KeywordState,
- Keyword;
+import 'keyword.dart' show KeywordState, Keyword;
import 'precedence.dart';
-import 'token.dart' show
- BeginGroupToken,
- KeywordToken,
- SymbolToken,
- Token;
+import 'token.dart' show BeginGroupToken, KeywordToken, SymbolToken, Token;
import 'token_constants.dart';
@@ -820,7 +807,7 @@ abstract class AbstractScanner implements Scanner {
if ($A <= next && next <= $Z) {
state = state.nextCapital(next);
next = advance();
- } else if ($a <= next && next <= $z){
+ } else if ($a <= next && next <= $z) {
// Do the first next call outside the loop to avoid an additional test
// and to make the loop monomorphic.
state = state.next(next);
@@ -1208,7 +1195,7 @@ class LineStarts extends Object with ListMixin<int> {
int get length => arrayLength;
- int operator[](int index) {
+ int operator [](int index) {
assert(index < arrayLength);
return array[index];
}
@@ -1220,7 +1207,7 @@ class LineStarts extends Object with ListMixin<int> {
arrayLength = newLength;
}
- void operator[]=(int index, int value) {
+ void operator []=(int index, int value) {
if (value > 65535 && array is! Uint32List) {
switchToUint32(array.length);
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner.dart ('k') | pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698