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

Unified Diff: runtime/lib/invocation_mirror_patch.dart

Issue 2751423005: Run dartfmt on all files under runtime. (Closed)
Patch Set: Run dartfmt on all files under runtime. Created 3 years, 9 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 | « runtime/lib/internal_patch.dart ('k') | runtime/lib/isolate_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/invocation_mirror_patch.dart
diff --git a/runtime/lib/invocation_mirror_patch.dart b/runtime/lib/invocation_mirror_patch.dart
index 09b68270f27c99cdc9b7eddd803bf8968b84cfd7..7a1422efa0712b9b51d2607ac1c67a792e741c10 100644
--- a/runtime/lib/invocation_mirror_patch.dart
+++ b/runtime/lib/invocation_mirror_patch.dart
@@ -40,13 +40,11 @@ class _InvocationMirror implements Invocation {
void _setMemberNameAndType() {
if (_functionName.startsWith("get:")) {
_type = _GETTER;
- _memberName =
- new internal.Symbol.unvalidated(_functionName.substring(4));
+ _memberName = new internal.Symbol.unvalidated(_functionName.substring(4));
} else if (_functionName.startsWith("set:")) {
_type = _SETTER;
_memberName =
- new internal.Symbol.unvalidated(
- _functionName.substring(4) + "=");
+ new internal.Symbol.unvalidated(_functionName.substring(4) + "=");
} else {
_type = _isSuperInvocation ? (_SUPER << _CALL_SHIFT) | _METHOD : _METHOD;
_memberName = new internal.Symbol.unvalidated(_functionName);
@@ -76,7 +74,7 @@ class _InvocationMirror implements Invocation {
Map<Symbol, dynamic> get namedArguments {
if (_namedArguments == null) {
- int numArguments = _argumentsDescriptor[0] - 1; // Exclude receiver.
+ int numArguments = _argumentsDescriptor[0] - 1; // Exclude receiver.
int numPositionalArguments = _argumentsDescriptor[1] - 1;
int numNamedArguments = numArguments - numPositionalArguments;
if (numNamedArguments == 0) {
@@ -84,10 +82,9 @@ class _InvocationMirror implements Invocation {
}
_namedArguments = new Map<Symbol, dynamic>();
for (int i = 0; i < numNamedArguments; i++) {
- String arg_name = _argumentsDescriptor[2 + 2*i];
- var arg_value = _arguments[_argumentsDescriptor[3 + 2*i]];
- _namedArguments[new internal.Symbol.unvalidated(arg_name)] =
- arg_value;
+ String arg_name = _argumentsDescriptor[2 + 2 * i];
+ var arg_value = _arguments[_argumentsDescriptor[3 + 2 * i]];
+ _namedArguments[new internal.Symbol.unvalidated(arg_name)] = arg_value;
}
_namedArguments = new Map.unmodifiable(_namedArguments);
}
@@ -122,18 +119,12 @@ class _InvocationMirror implements Invocation {
return (_type & _TYPE_MASK) == _SETTER;
}
- _InvocationMirror(this._functionName,
- this._argumentsDescriptor,
- this._arguments,
- this._isSuperInvocation);
+ _InvocationMirror(this._functionName, this._argumentsDescriptor,
+ this._arguments, this._isSuperInvocation);
static _allocateInvocationMirror(String functionName,
- List argumentsDescriptor,
- List arguments,
- bool isSuperInvocation) {
- return new _InvocationMirror(functionName,
- argumentsDescriptor,
- arguments,
- isSuperInvocation);
+ List argumentsDescriptor, List arguments, bool isSuperInvocation) {
+ return new _InvocationMirror(
+ functionName, argumentsDescriptor, arguments, isSuperInvocation);
}
}
« no previous file with comments | « runtime/lib/internal_patch.dart ('k') | runtime/lib/isolate_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698