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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 2292213002: Remove legacy patch class syntax in VM (Closed)
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 | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl_test.cc
diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc
index ae0812cc9dc2b3eeb2e6dd83fcbe9a58c4fd1a29..5560535b45ad685abf77202e96896d8ead3c6291 100644
--- a/runtime/vm/dart_api_impl_test.cc
+++ b/runtime/vm/dart_api_impl_test.cc
@@ -6667,7 +6667,7 @@ TEST_CASE(LoadPatch) {
"part of library1_name;\n"
"external int foo();";
const char* kPatchChars =
- "patch int foo() => 42;";
+ "@patch int foo() => 42;";
// Load up a library.
Dart_Handle url = NewString("library1_url");
@@ -6712,8 +6712,8 @@ TEST_CASE(LoadPatchSignatureMismatch) {
"}";
const char* kPatchChars =
"const _UNDEFINED = const Object();\n"
- "patch foo([x=_UNDEFINED]) => identical(x, _UNDEFINED) ? 42 : x;\n"
- "patch class Foo {\n"
+ "@patch foo([x=_UNDEFINED]) => identical(x, _UNDEFINED) ? 42 : x;\n"
+ "@patch class Foo {\n"
" static addDefault10([x=_UNDEFINED, y=_UNDEFINED]) {\n"
" if (identical(x, _UNDEFINED)) x = 10;\n"
" if (identical(y, _UNDEFINED)) y = 10;\n"
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698