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

Unified Diff: sdk/lib/js/dartium/js_dartium.dart

Issue 2233633002: Switch dartium to @patch annotation from patch. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « sdk/lib/js/dartium/cached_patches.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/js/dartium/js_dartium.dart
diff --git a/sdk/lib/js/dartium/js_dartium.dart b/sdk/lib/js/dartium/js_dartium.dart
index a8f0661ac72498f01fc940e603fadc309feca824..fbda4965fce7ddfb93b4cbcabea729bd239574e4 100644
--- a/sdk/lib/js/dartium/js_dartium.dart
+++ b/sdk/lib/js/dartium/js_dartium.dart
@@ -514,7 +514,7 @@ void addMemberHelper(
} else if (isStatic) {
sb.write("static");
} else {
- sb.write("patch");
+ sb.write("@patch");
}
sb.write(" ");
if (declaration.isGetter) {
@@ -729,7 +729,7 @@ class ${escapePrivateClassPrefix}${className} implements $className {}
'<${clazz.typeVariables.map((m) => mirrors.MirrorSystem.getName(m.simpleName)).join(',')}>';
}
sb.write("""
-patch class $className$typeVariablesClause {
+@patch class $className$typeVariablesClause {
$sbPatch
}
""");
@@ -884,15 +884,15 @@ class JSArrayImpl extends JSArray ${buildImplementsClause(implementsArray)} {
abstract class JSObjectInterfacesDom $implementsClauseDom {
}
-patch class JSObject {
+@patch class JSObject {
static Type get instanceRuntimeType => JSObjectImpl;
}
-patch class JSFunction {
+@patch class JSFunction {
static Type get instanceRuntimeType => JSFunctionImpl;
}
-patch class JSArray {
+@patch class JSArray {
static Type get instanceRuntimeType => JSArrayImpl;
}
« no previous file with comments | « sdk/lib/js/dartium/cached_patches.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698