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

Unified Diff: runtime/bin/platform_patch.dart

Issue 2220883004: Use metadata annotation @patch for patch classes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: wip 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
Index: runtime/bin/platform_patch.dart
diff --git a/runtime/bin/platform_patch.dart b/runtime/bin/platform_patch.dart
index 577bbb6dffcd67677533290438c93ccc362cf8a5..bbd353b4d078e1d2aa1daac0cbec92dbbb28a3c0 100644
--- a/runtime/bin/platform_patch.dart
+++ b/runtime/bin/platform_patch.dart
@@ -2,33 +2,33 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-patch class _Platform {
- /* patch */ static int _numberOfProcessors()
+@patch class _Platform {
+ /* @patch */ static int _numberOfProcessors()
native "Platform_NumberOfProcessors";
- /* patch */ static String _pathSeparator()
+ /* @patch */ static String _pathSeparator()
native "Platform_PathSeparator";
- /* patch */ static String _operatingSystem()
+ /* @patch */ static String _operatingSystem()
native "Platform_OperatingSystem";
- /* patch */ static _localHostname()
+ /* @patch */ static _localHostname()
native "Platform_LocalHostname";
- /* patch */ static _executable()
+ /* @patch */ static _executable()
native "Platform_ExecutableName";
- /* patch */ static _resolvedExecutable()
+ /* @patch */ static _resolvedExecutable()
native "Platform_ResolvedExecutableName";
- /* patch */ static _environment()
+ /* @patch */ static _environment()
native "Platform_Environment";
- /* patch */ static List<String> _executableArguments()
+ /* @patch */ static List<String> _executableArguments()
native "Platform_ExecutableArguments";
- /* patch */ static String _version()
+ /* @patch */ static String _version()
native "Platform_GetVersion";
- /* patch */ static String _packageRoot()
+ /* @patch */ static String _packageRoot()
=> VMLibraryHooks.packageRootString;
- /* patch */ static String _packageConfig()
+ /* @patch */ static String _packageConfig()
=> VMLibraryHooks.packageConfigString;
// This script singleton is written to by the embedder if applicable.
- /* patch */ static void set _nativeScript(String path) {
+ /* @patch */ static void set _nativeScript(String path) {
if (path.startsWith('http:') ||
path.startsWith('https:') ||
path.startsWith('package:') ||

Powered by Google App Engine
This is Rietveld 408576698