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

Unified Diff: pkg/compiler/lib/src/universe/call_structure.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/types/value_type_mask.dart ('k') | pkg/compiler/lib/src/universe/class_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/call_structure.dart
diff --git a/pkg/compiler/lib/src/universe/call_structure.dart b/pkg/compiler/lib/src/universe/call_structure.dart
index 727390af3362a5c70b540ade354b2bc3b65b9029..fb9c9084e401dce5f0118a0f842a5caf118f8cf4 100644
--- a/pkg/compiler/lib/src/universe/call_structure.dart
+++ b/pkg/compiler/lib/src/universe/call_structure.dart
@@ -5,16 +5,12 @@
library dart2js.call_structure;
import '../common.dart';
-import '../common/names.dart' show
- Identifiers,
- Names,
- Selectors;
+import '../common/names.dart' show Identifiers, Names, Selectors;
import '../elements/elements.dart';
import '../tree/tree.dart';
import '../util/util.dart';
-import 'selector.dart' show
- Selector;
+import 'selector.dart' show Selector;
/// The structure of the arguments at a call-site.
// TODO(johnniwinther): Should these be cached?
@@ -64,9 +60,9 @@ class CallStructure {
bool match(CallStructure other) {
if (identical(this, other)) return true;
- return this.argumentCount == other.argumentCount
- && this.namedArgumentCount == other.namedArgumentCount
- && sameNames(this.namedArguments, other.namedArguments);
+ return this.argumentCount == other.argumentCount &&
+ this.namedArgumentCount == other.namedArgumentCount &&
+ sameNames(this.namedArguments, other.namedArguments);
}
// TODO(johnniwinther): Cache hash code?
@@ -180,7 +176,7 @@ class CallStructure {
* Returns [:true:] if the signature of the [caller] matches the
* signature of the [callee], [:false:] otherwise.
*/
- static /*<T>*/ bool addForwardingElementArgumentsToList(
+ static/*<T>*/ bool addForwardingElementArgumentsToList(
ConstructorElement caller,
List/*<T>*/ list,
ConstructorElement callee,
@@ -188,7 +184,7 @@ class CallStructure {
/*T*/ compileConstant(ParameterElement element)) {
assert(invariant(caller, !callee.isMalformed,
message: "Cannot compute arguments to malformed constructor: "
- "$caller calling $callee."));
+ "$caller calling $callee."));
FunctionSignature signature = caller.functionSignature;
Map<Node, ParameterElement> mapping = <Node, ParameterElement>{};
@@ -236,10 +232,7 @@ class CallStructure {
return false;
}
list.addAll(callStructure.makeArgumentsList(
- nodes,
- callee,
- internalCompileArgument,
- compileConstant));
+ nodes, callee, internalCompileArgument, compileConstant));
return true;
}
« no previous file with comments | « pkg/compiler/lib/src/types/value_type_mask.dart ('k') | pkg/compiler/lib/src/universe/class_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698