| 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'; |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 */ | 407 */ |
| 408 LibraryMap _librariesMap = new LibraryMap(); | 408 LibraryMap _librariesMap = new LibraryMap(); |
| 409 /** | 409 /** |
| 410 * Return the library map that was populated by visiting the AST structure par
sed from the | 410 * Return the library map that was populated by visiting the AST structure par
sed from the |
| 411 * contents of the libraries file. | 411 * contents of the libraries file. |
| 412 * @return the library map describing the contents of the SDK | 412 * @return the library map describing the contents of the SDK |
| 413 */ | 413 */ |
| 414 LibraryMap get librariesMap => _librariesMap; | 414 LibraryMap get librariesMap => _librariesMap; |
| 415 Object visitMapLiteralEntry(MapLiteralEntry node) { | 415 Object visitMapLiteralEntry(MapLiteralEntry node) { |
| 416 String libraryName = null; | 416 String libraryName = null; |
| 417 Expression key3 = node.key; | 417 Expression key2 = node.key; |
| 418 if (key3 is SimpleStringLiteral) { | 418 if (key2 is SimpleStringLiteral) { |
| 419 libraryName = "${_LIBRARY_PREFIX}${((key3 as SimpleStringLiteral)).value}"
; | 419 libraryName = "${_LIBRARY_PREFIX}${((key2 as SimpleStringLiteral)).value}"
; |
| 420 } | 420 } |
| 421 Expression value10 = node.value; | 421 Expression value2 = node.value; |
| 422 if (value10 is InstanceCreationExpression) { | 422 if (value2 is InstanceCreationExpression) { |
| 423 SdkLibraryImpl library = new SdkLibraryImpl(libraryName); | 423 SdkLibraryImpl library = new SdkLibraryImpl(libraryName); |
| 424 List<Expression> arguments8 = ((value10 as InstanceCreationExpression)).ar
gumentList.arguments; | 424 List<Expression> arguments2 = ((value2 as InstanceCreationExpression)).arg
umentList.arguments; |
| 425 for (Expression argument in arguments8) { | 425 for (Expression argument in arguments2) { |
| 426 if (argument is SimpleStringLiteral) { | 426 if (argument is SimpleStringLiteral) { |
| 427 library.path = ((argument as SimpleStringLiteral)).value; | 427 library.path = ((argument as SimpleStringLiteral)).value; |
| 428 } else if (argument is NamedExpression) { | 428 } else if (argument is NamedExpression) { |
| 429 String name23 = ((argument as NamedExpression)).name.label.name; | 429 String name2 = ((argument as NamedExpression)).name.label.name; |
| 430 Expression expression15 = ((argument as NamedExpression)).expression; | 430 Expression expression2 = ((argument as NamedExpression)).expression; |
| 431 if (name23 == _CATEGORY) { | 431 if (name2 == _CATEGORY) { |
| 432 library.category = ((expression15 as SimpleStringLiteral)).value; | 432 library.category = ((expression2 as SimpleStringLiteral)).value; |
| 433 } else if (name23 == _IMPLEMENTATION) { | 433 } else if (name2 == _IMPLEMENTATION) { |
| 434 library.implementation = ((expression15 as BooleanLiteral)).value; | 434 library.implementation = ((expression2 as BooleanLiteral)).value; |
| 435 } else if (name23 == _DOCUMENTED) { | 435 } else if (name2 == _DOCUMENTED) { |
| 436 library.documented = ((expression15 as BooleanLiteral)).value; | 436 library.documented = ((expression2 as BooleanLiteral)).value; |
| 437 } else if (name23 == _PLATFORMS) { | 437 } else if (name2 == _PLATFORMS) { |
| 438 if (expression15 is SimpleIdentifier) { | 438 if (expression2 is SimpleIdentifier) { |
| 439 String identifier = ((expression15 as SimpleIdentifier)).name; | 439 String identifier = ((expression2 as SimpleIdentifier)).name; |
| 440 if (identifier == _VM_PLATFORM) { | 440 if (identifier == _VM_PLATFORM) { |
| 441 library.setVmLibrary(); | 441 library.setVmLibrary(); |
| 442 } else { | 442 } else { |
| 443 library.setDart2JsLibrary(); | 443 library.setDart2JsLibrary(); |
| 444 } | 444 } |
| 445 } | 445 } |
| 446 } | 446 } |
| 447 } | 447 } |
| 448 } | 448 } |
| 449 _librariesMap.setLibrary(libraryName, library); | 449 _librariesMap.setLibrary(libraryName, library); |
| 450 } | 450 } |
| 451 return null; | 451 return null; |
| 452 } | 452 } |
| 453 } | 453 } |
| 454 class AnalysisErrorListener_10 implements AnalysisErrorListener { | 454 class AnalysisErrorListener_10 implements AnalysisErrorListener { |
| 455 List<bool> foundError; | 455 List<bool> foundError; |
| 456 AnalysisErrorListener_10(this.foundError); | 456 AnalysisErrorListener_10(this.foundError); |
| 457 void onError(AnalysisError error) { | 457 void onError(AnalysisError error) { |
| 458 foundError[0] = true; | 458 foundError[0] = true; |
| 459 } | 459 } |
| 460 } | 460 } |
| OLD | NEW |