OLD | NEW |
1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
3 | 3 |
4 library engine.sdk; | 4 library engine.sdk; |
5 | 5 |
6 import 'dart:io'; | 6 import 'dart:io'; |
7 import 'dart:uri'; | 7 import 'dart:uri'; |
8 import 'java_core.dart'; | 8 import 'java_core.dart'; |
9 import 'java_io.dart'; | 9 import 'java_io.dart'; |
10 import 'java_engine.dart'; | 10 import 'java_engine.dart'; |
11 import 'java_engine_io.dart'; | 11 import 'java_engine_io.dart'; |
12 import 'package:analyzer-experimental/src/generated/source_io.dart'; | 12 import 'package:analyzer_experimental/src/generated/source_io.dart'; |
13 import 'package:analyzer-experimental/src/generated/error.dart'; | 13 import 'package:analyzer_experimental/src/generated/error.dart'; |
14 import 'package:analyzer-experimental/src/generated/scanner.dart'; | 14 import 'package:analyzer_experimental/src/generated/scanner.dart'; |
15 import 'package:analyzer-experimental/src/generated/parser.dart'; | 15 import 'package:analyzer_experimental/src/generated/parser.dart'; |
16 import 'package:analyzer-experimental/src/generated/ast.dart'; | 16 import 'package:analyzer_experimental/src/generated/ast.dart'; |
17 import 'package:analyzer-experimental/src/generated/engine.dart' show AnalysisEn
gine; | 17 import 'package:analyzer_experimental/src/generated/engine.dart' show AnalysisEn
gine; |
18 | 18 |
19 /** | 19 /** |
20 * Represents a single library in the SDK | 20 * Represents a single library in the SDK |
21 */ | 21 */ |
22 abstract class SdkLibrary { | 22 abstract class SdkLibrary { |
23 /** | 23 /** |
24 * Return the name of the category containing the library. | 24 * Return the name of the category containing the library. |
25 * @return the name of the category containing the library | 25 * @return the name of the category containing the library |
26 */ | 26 */ |
27 String get category; | 27 String get category; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 LibraryMap get librariesMap => _librariesMap; | 249 LibraryMap get librariesMap => _librariesMap; |
250 Object visitMapLiteralEntry(MapLiteralEntry node) { | 250 Object visitMapLiteralEntry(MapLiteralEntry node) { |
251 String libraryName = null; | 251 String libraryName = null; |
252 Expression key3 = node.key; | 252 Expression key3 = node.key; |
253 if (key3 is SimpleStringLiteral) { | 253 if (key3 is SimpleStringLiteral) { |
254 libraryName = "${_LIBRARY_PREFIX}${((key3 as SimpleStringLiteral)).value}"
; | 254 libraryName = "${_LIBRARY_PREFIX}${((key3 as SimpleStringLiteral)).value}"
; |
255 } | 255 } |
256 Expression value9 = node.value; | 256 Expression value9 = node.value; |
257 if (value9 is InstanceCreationExpression) { | 257 if (value9 is InstanceCreationExpression) { |
258 SdkLibraryImpl library = new SdkLibraryImpl(libraryName); | 258 SdkLibraryImpl library = new SdkLibraryImpl(libraryName); |
259 List<Expression> arguments6 = ((value9 as InstanceCreationExpression)).arg
umentList.arguments; | 259 List<Expression> arguments7 = ((value9 as InstanceCreationExpression)).arg
umentList.arguments; |
260 for (Expression argument in arguments6) { | 260 for (Expression argument in arguments7) { |
261 if (argument is SimpleStringLiteral) { | 261 if (argument is SimpleStringLiteral) { |
262 library.path = ((argument as SimpleStringLiteral)).value; | 262 library.path = ((argument as SimpleStringLiteral)).value; |
263 } else if (argument is NamedExpression) { | 263 } else if (argument is NamedExpression) { |
264 String name19 = ((argument as NamedExpression)).name.label.name; | 264 String name19 = ((argument as NamedExpression)).name.label.name; |
265 Expression expression15 = ((argument as NamedExpression)).expression; | 265 Expression expression15 = ((argument as NamedExpression)).expression; |
266 if (name19 == _CATEGORY) { | 266 if (name19 == _CATEGORY) { |
267 library.category = ((expression15 as SimpleStringLiteral)).value; | 267 library.category = ((expression15 as SimpleStringLiteral)).value; |
268 } else if (name19 == _IMPLEMENTATION) { | 268 } else if (name19 == _IMPLEMENTATION) { |
269 library.implementation = ((expression15 as BooleanLiteral)).value; | 269 library.implementation = ((expression15 as BooleanLiteral)).value; |
270 } else if (name19 == _DOCUMENTED) { | 270 } else if (name19 == _DOCUMENTED) { |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 } | 663 } |
664 /** | 664 /** |
665 * Initialize the state of the SDK. | 665 * Initialize the state of the SDK. |
666 */ | 666 */ |
667 void initializeSdk() { | 667 void initializeSdk() { |
668 if (!OSUtilities.isWindows()) { | 668 if (!OSUtilities.isWindows()) { |
669 ensureVmIsExecutable(); | 669 ensureVmIsExecutable(); |
670 } | 670 } |
671 } | 671 } |
672 } | 672 } |
OLD | NEW |