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

Unified Diff: pkg/compiler/lib/src/resolution/scope.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
Index: pkg/compiler/lib/src/resolution/scope.dart
diff --git a/pkg/compiler/lib/src/resolution/scope.dart b/pkg/compiler/lib/src/resolution/scope.dart
index c3785f980df39d827307a3969a7fbf46b04166f3..41df8033f6ef8b6710d5d7f0ab20b202471393f4 100644
--- a/pkg/compiler/lib/src/resolution/scope.dart
+++ b/pkg/compiler/lib/src/resolution/scope.dart
@@ -21,7 +21,8 @@ abstract class Scope {
static Scope buildEnclosingScope(Element element) {
return element.enclosingElement != null
- ? element.enclosingElement.buildScope() : element.buildScope();
+ ? element.enclosingElement.buildScope()
+ : element.buildScope();
}
}
@@ -67,8 +68,7 @@ class VariableDefinitionScope extends NestedScope {
class TypeDeclarationScope extends NestedScope {
final TypeDeclarationElement element;
- TypeDeclarationScope(parent, this.element)
- : super(parent) {
+ TypeDeclarationScope(parent, this.element) : super(parent) {
assert(parent != null);
}
@@ -88,8 +88,7 @@ class TypeDeclarationScope extends NestedScope {
Element localLookup(String name) => lookupTypeVariable(name);
- String toString() =>
- 'TypeDeclarationScope($element)';
+ String toString() => 'TypeDeclarationScope($element)';
}
abstract class MutableScope extends NestedScope {
@@ -115,8 +114,7 @@ abstract class MutableScope extends NestedScope {
class MethodScope extends MutableScope {
final Element element;
- MethodScope(Scope parent, this.element)
- : super(parent);
+ MethodScope(Scope parent, this.element) : super(parent);
String toString() => 'MethodScope($element${elements.keys.toList()})';
}
@@ -136,7 +134,7 @@ class ClassScope extends TypeDeclarationScope {
ClassElement get element => super.element;
ClassScope(Scope parentScope, ClassElement element)
- : super(parentScope, element) {
+ : super(parentScope, element) {
assert(parent != null);
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_result.dart ('k') | pkg/compiler/lib/src/resolution/secret_tree_element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698