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

Unified Diff: pkg/compiler/lib/src/js_backend/namer_names.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/js_backend/namer.dart ('k') | pkg/compiler/lib/src/js_backend/native_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/namer_names.dart
diff --git a/pkg/compiler/lib/src/js_backend/namer_names.dart b/pkg/compiler/lib/src/js_backend/namer_names.dart
index 31a17471ca2fe071cce57b6815b38901cda15c54..4baffb53333f0d3e81c7ab7a12be115d9dbf77fc 100644
--- a/pkg/compiler/lib/src/js_backend/namer_names.dart
+++ b/pkg/compiler/lib/src/js_backend/namer_names.dart
@@ -16,14 +16,7 @@ abstract class _NamerName extends jsAst.Name {
}
}
-enum _NamerNameKinds {
- StringBacked,
- Getter,
- Setter,
- Async,
- Compound,
- Token
-}
+enum _NamerNameKinds { StringBacked, Getter, Setter, Async, Compound, Token }
class StringBackedName extends _NamerName {
final String name;
@@ -33,7 +26,7 @@ class StringBackedName extends _NamerName {
String get key => name;
- operator==(other) {
+ operator ==(other) {
if (other is _NameReference) other = other._target;
if (identical(this, other)) return true;
return (other is StringBackedName) && other.name == name;
@@ -61,7 +54,7 @@ abstract class _PrefixedName extends _NamerName implements jsAst.AstContainer {
String get key => prefix.key + base.key;
- bool operator==(other) {
+ bool operator ==(other) {
if (other is _NameReference) other = other._target;
if (identical(this, other)) return true;
if (other is! _PrefixedName) return false;
@@ -125,7 +118,7 @@ class CompoundName extends _NamerName implements jsAst.AstContainer {
String get key => _parts.map((_NamerName name) => name.key).join();
- bool operator==(other) {
+ bool operator ==(other) {
if (other is _NameReference) other = other._target;
if (identical(this, other)) return true;
if (other is! CompoundName) return false;
@@ -188,7 +181,7 @@ class TokenName extends _NamerName implements jsAst.ReferenceCountedAstNode {
markSeen(jsAst.TokenCounter counter) => _rc++;
@override
- bool operator==(other) {
+ bool operator ==(other) {
if (other is _NameReference) other = other._target;
if (identical(this, other)) return true;
return false;
@@ -220,8 +213,8 @@ class _NameReference extends _NamerName implements jsAst.AstContainer {
int compareTo(_NamerName other) => _target.compareTo(other);
@override
- bool operator==(other) => _target == other;
+ bool operator ==(other) => _target == other;
@override
int get hashCode => _target.hashCode;
-}
+}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/namer.dart ('k') | pkg/compiler/lib/src/js_backend/native_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698