mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
Switch to @patch annotation from patch.
BUG= R=terry@google.com Review URL: https://codereview.chromium.org/2233633002 .
This commit is contained in:
parent
38689cd848
commit
b779679721
File diff suppressed because it is too large
Load diff
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue