Switch to @patch annotation from patch.

BUG=
R=terry@google.com

Review URL: https://codereview.chromium.org/2233633002 .
This commit is contained in:
Jacob Richman 2016-08-10 09:31:06 -07:00
parent 38689cd848
commit b779679721
2 changed files with 667 additions and 667 deletions

File diff suppressed because it is too large Load diff

View file

@ -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;
}