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

Unified Diff: runtime/bin/platform_patch.dart

Issue 2230383003: Implement @patch annotation for patch class members (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
« no previous file with comments | « runtime/bin/io_service_patch.dart ('k') | runtime/bin/process_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_patch.dart
diff --git a/runtime/bin/platform_patch.dart b/runtime/bin/platform_patch.dart
index bbd353b4d078e1d2aa1daac0cbec92dbbb28a3c0..8110ea1c2c9e3a8fc5f3ef74daf3bfd85635a796 100644
--- a/runtime/bin/platform_patch.dart
+++ b/runtime/bin/platform_patch.dart
@@ -3,32 +3,32 @@
// BSD-style license that can be found in the LICENSE file.
@patch class _Platform {
- /* @patch */ static int _numberOfProcessors()
+ @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:') ||
« no previous file with comments | « runtime/bin/io_service_patch.dart ('k') | runtime/bin/process_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698