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

Unified Diff: pkg/compiler/lib/src/scanner/array_based_scanner.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/variables.dart ('k') | pkg/compiler/lib/src/scanner/scanner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/scanner/array_based_scanner.dart
diff --git a/pkg/compiler/lib/src/scanner/array_based_scanner.dart b/pkg/compiler/lib/src/scanner/array_based_scanner.dart
index 49461fb2cb22f656696f75bce4aefbdda638f6bc..27540a48b03b5f47111fe608eea63c932eddfa5c 100644
--- a/pkg/compiler/lib/src/scanner/array_based_scanner.dart
+++ b/pkg/compiler/lib/src/scanner/array_based_scanner.dart
@@ -4,33 +4,19 @@
library dart2js.scanner.array_based;
-import '../io/source_file.dart' show
- SourceFile;
-import '../tokens/keyword.dart' show
- Keyword;
-import '../tokens/precedence.dart' show
- PrecedenceInfo;
-import '../tokens/precedence_constants.dart' as Precedence show
- COMMENT_INFO,
- EOF_INFO;
-import '../tokens/token.dart' show
- BeginGroupToken,
- ErrorToken,
- KeywordToken,
- SymbolToken,
- Token;
-import '../tokens/token_constants.dart' as Tokens show
- LT_TOKEN,
- OPEN_CURLY_BRACKET_TOKEN,
- STRING_INTERPOLATION_TOKEN;
-import '../util/characters.dart' show
- $LF,
- $STX;
-import '../util/util.dart' show
- Link;
-
-import 'scanner.dart' show
- AbstractScanner;
+import '../io/source_file.dart' show SourceFile;
+import '../tokens/keyword.dart' show Keyword;
+import '../tokens/precedence.dart' show PrecedenceInfo;
+import '../tokens/precedence_constants.dart' as Precedence
+ show COMMENT_INFO, EOF_INFO;
+import '../tokens/token.dart'
+ show BeginGroupToken, ErrorToken, KeywordToken, SymbolToken, Token;
+import '../tokens/token_constants.dart' as Tokens
+ show LT_TOKEN, OPEN_CURLY_BRACKET_TOKEN, STRING_INTERPOLATION_TOKEN;
+import '../util/characters.dart' show $LF, $STX;
+import '../util/util.dart' show Link;
+
+import 'scanner.dart' show AbstractScanner;
abstract class ArrayBasedScanner extends AbstractScanner {
ArrayBasedScanner(SourceFile file, bool includeComments)
@@ -153,7 +139,7 @@ abstract class ArrayBasedScanner extends AbstractScanner {
BeginGroupToken begin = groupingStack.head;
if (!identical(begin.kind, openKind)) {
assert(begin.kind == Tokens.STRING_INTERPOLATION_TOKEN &&
- openKind == Tokens.OPEN_CURLY_BRACKET_TOKEN);
+ openKind == Tokens.OPEN_CURLY_BRACKET_TOKEN);
// We're ending an interpolated expression.
begin.endGroup = close;
groupingStack = groupingStack.tail;
@@ -240,8 +226,8 @@ abstract class ArrayBasedScanner extends AbstractScanner {
* list, like the '=' in the above example.
*/
void discardOpenLt() {
- while (!groupingStack.isEmpty
- && identical(groupingStack.head.kind, Tokens.LT_TOKEN)) {
+ while (!groupingStack.isEmpty &&
+ identical(groupingStack.head.kind, Tokens.LT_TOKEN)) {
groupingStack = groupingStack.tail;
}
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/variables.dart ('k') | pkg/compiler/lib/src/scanner/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698