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

Unified Diff: lib/src/functionref.dart

Issue 955053002: adding codereview file, formatting, adding gitignore (Closed) Base URL: https://github.com/dart-lang/isolate.git@master
Patch Set: Created 5 years, 10 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: lib/src/functionref.dart
diff --git a/lib/src/functionref.dart b/lib/src/functionref.dart
index d4c0e8efec60bd48a7e56d8d6e6c54c146561054..e2bf578c0040e5221289aae11a594be5db9ce7c3 100644
--- a/lib/src/functionref.dart
+++ b/lib/src/functionref.dart
@@ -32,8 +32,8 @@ abstract class FunctionRef {
return new _FunctionRef(libraryUri, className, functionName);
}
}
- throw new ArgumentError.value(function, "function",
- "Not a static or top-level function");
+ throw new ArgumentError.value(
+ function, "function", "Not a static or top-level function");
}
// It's a Function but not a closure, so it's a callable object.
return new _CallableObjectRef(function);
@@ -65,11 +65,10 @@ class _FunctionRef implements FunctionRef {
String functionName = MirrorSystem.getName(this.functionName);
String classQualifier = "";
if (this.className != null) {
- classQualifier = " in class ${MirrorSystem.getName(this.className)}";
+ classQualifier = " in class ${MirrorSystem.getName(this.className)}";
}
throw new UnsupportedError(
- "Function $functionName${classQualifier} not found in library $libraryUri"
- );
+ "Function $functionName${classQualifier} not found in library $libraryUri");
Lasse Reichstein Nielsen 2015/02/26 10:59:15 Long line. The original was badly indented, but I'
}
}

Powered by Google App Engine
This is Rietveld 408576698