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

Unified Diff: pkg/compiler/lib/src/tokens/token_map.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/tokens/token.dart ('k') | pkg/compiler/lib/src/tracer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/tokens/token_map.dart
diff --git a/pkg/compiler/lib/src/tokens/token_map.dart b/pkg/compiler/lib/src/tokens/token_map.dart
index 55b4d30b40e422eeaf19e7a8659e13cbeca73c63..e7fc3b574e54de4c1b238e58b18fc95cbd534dc1 100644
--- a/pkg/compiler/lib/src/tokens/token_map.dart
+++ b/pkg/compiler/lib/src/tokens/token_map.dart
@@ -4,8 +4,7 @@
library dart2js.tokens.token_map;
-import 'token.dart' show
- Token;
+import 'token.dart' show Token;
/**
* Key class used in [TokenMap] in which the hash code for a token is based
@@ -15,7 +14,7 @@ class TokenKey {
final Token token;
TokenKey(this.token);
int get hashCode => token.charOffset;
- operator==(other) => other is TokenKey && token == other.token;
+ operator ==(other) => other is TokenKey && token == other.token;
}
/// Map of tokens and the first associated comment.
@@ -33,14 +32,14 @@ class TokenKey {
* 6) Storing token/comments pairs in a linked list: ~5400 msec
*/
class TokenMap {
- Map<TokenKey,Token> comments = new Map<TokenKey,Token>();
+ Map<TokenKey, Token> comments = new Map<TokenKey, Token>();
- Token operator[] (Token key) {
+ Token operator [](Token key) {
if (key == null) return null;
return comments[new TokenKey(key)];
}
- void operator[]= (Token key, Token value) {
+ void operator []=(Token key, Token value) {
if (key == null) return;
comments[new TokenKey(key)] = value;
}
« no previous file with comments | « pkg/compiler/lib/src/tokens/token.dart ('k') | pkg/compiler/lib/src/tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698