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

Unified Diff: pkg/dev_compiler/lib/src/analyzer/context.dart

Issue 2578463004: update DDC to use analyzer extractDefinedVariables (Closed)
Patch Set: merge Created 4 years 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 | pkg/dev_compiler/lib/src/compiler/command.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/src/analyzer/context.dart
diff --git a/pkg/dev_compiler/lib/src/analyzer/context.dart b/pkg/dev_compiler/lib/src/analyzer/context.dart
index f30ddc6dc44d2a387ba95e1c8bcfe5c77317daca..6e1e4e30faf5d256e00f9954787226b2a452c12a 100644
--- a/pkg/dev_compiler/lib/src/analyzer/context.dart
+++ b/pkg/dev_compiler/lib/src/analyzer/context.dart
@@ -175,25 +175,3 @@ DartUriResolver createSdkPathResolver(String sdkSummaryPath, String sdkPath) {
: _createFolderBasedDartSdk(sdkPath);
return new DartUriResolver(sdk);
}
-
-List<String> parseDeclaredVariables(
- List<String> args, Map<String, String> declaredVars) {
- var count = args.length;
- var remainingArgs = <String>[];
- for (int i = 0; i < count; i++) {
- var arg = args[i];
- if (arg == '--') {
- while (i < count) {
- remainingArgs.add(args[i++]);
- }
- } else if (arg.startsWith("-D")) {
- // The format for defined variables is:
- // -D<name>=<value>
- var parts = arg.substring(2).split('=');
- declaredVars[parts[0]] = parts.length > 1 ? parts[1] : '';
- } else {
- remainingArgs.add(arg);
- }
- }
- return remainingArgs;
-}
« no previous file with comments | « no previous file | pkg/dev_compiler/lib/src/compiler/command.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698