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

Unified Diff: lib/src/closure/closure_annotator.dart

Issue 1322673004: Reformat (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 3 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 | « lib/src/closure/closure_annotation.dart ('k') | lib/src/closure/closure_type.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/closure/closure_annotator.dart
diff --git a/lib/src/closure/closure_annotator.dart b/lib/src/closure/closure_annotator.dart
index 2a03ddbefa350a32f682c42250d9d70fdd4802d7..a6fc1253fad21b96c90bfab1420b4888fc7d9dbf 100644
--- a/lib/src/closure/closure_annotator.dart
+++ b/lib/src/closure/closure_annotator.dart
@@ -19,7 +19,8 @@ abstract class ClosureAnnotator {
String getQualifiedName(TypeDefiningElement type);
ClosureAnnotation closureAnnotationForVariable(VariableElement e) =>
- new ClosureAnnotation(type: _closureTypeForDartType(e.type),
+ new ClosureAnnotation(
+ type: _closureTypeForDartType(e.type),
// Note: we don't set isConst here because Closure's constness and
// Dart's are not really compatible.
isFinal: e.isFinal || e.isConst);
@@ -27,7 +28,7 @@ abstract class ClosureAnnotator {
/// We don't use Closure's `@typedef` annotations
ClosureAnnotation closureAnnotationForTypeDef(FunctionTypeAliasElement e) =>
new ClosureAnnotation(
- type: _closureTypeForDartType(e.type, forceTypeDefExpansion: true),
+ type: _closureTypeForDartType(e.type, forceTypeDefExpansion: true),
isTypedef: true);
ClosureAnnotation closureAnnotationForDefaultConstructor(ClassElement e) =>
@@ -62,9 +63,11 @@ abstract class ClosureAnnotator {
? (e.isFactory ? _closureTypeForClass(e.enclosingElement) : null)
: _closureTypeForDartType(e.returnType);
- return new ClosureAnnotation(isOverride: e.isOverride,
+ return new ClosureAnnotation(
+ isOverride: e.isOverride,
// Note: Dart and Closure privacy are not compatible: don't set `isPrivate: e.isPrivate`.
- paramTypes: paramTypes, returnType: returnType);
+ paramTypes: paramTypes,
+ returnType: returnType);
}
Map<DartType, ClosureType> __commonTypes;
@@ -113,7 +116,7 @@ abstract class ClosureAnnotator {
if (!forceTypeDefExpansion && type.element.name != '') {
return new ClosureType.type(getQualifiedName(type.element));
}
-
+
var args = []
..addAll(type.normalParameterTypes.map(_closureTypeForDartType))
..addAll(type.optionalParameterTypes
« no previous file with comments | « lib/src/closure/closure_annotation.dart ('k') | lib/src/closure/closure_type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698