| 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; | 4 library engine; |
| 5 | 5 |
| 6 import 'java_core.dart'; | 6 import 'java_core.dart'; |
| 7 import 'java_engine.dart'; | 7 import 'java_engine.dart'; |
| 8 import 'utilities_collection.dart'; | 8 import 'utilities_collection.dart'; |
| 9 import 'utilities_general.dart'; | 9 import 'utilities_general.dart'; |
| 10 import 'instrumentation.dart'; | 10 import 'instrumentation.dart'; |
| (...skipping 7440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7451 String get taskDescription { | 7451 String get taskDescription { |
| 7452 if (source == null) { | 7452 if (source == null) { |
| 7453 return "parse as dart null source"; | 7453 return "parse as dart null source"; |
| 7454 } | 7454 } |
| 7455 return "parse as dart ${source.fullName}"; | 7455 return "parse as dart ${source.fullName}"; |
| 7456 } | 7456 } |
| 7457 | 7457 |
| 7458 void internalPerform() { | 7458 void internalPerform() { |
| 7459 RecordingErrorListener errorListener = new RecordingErrorListener(); | 7459 RecordingErrorListener errorListener = new RecordingErrorListener(); |
| 7460 List<Token> token = [null]; | 7460 List<Token> token = [null]; |
| 7461 Source_ContentReceiver receiver = new Source_ContentReceiver_19(this, errorL
istener, token); | 7461 Source_ContentReceiver receiver = new Source_ContentReceiver_ParseDartTask_i
nternalPerform(this, errorListener, token); |
| 7462 try { | 7462 try { |
| 7463 source.getContents(receiver); | 7463 source.getContents(receiver); |
| 7464 } on JavaException catch (exception) { | 7464 } on JavaException catch (exception) { |
| 7465 _modificationTime = source.modificationStamp; | 7465 _modificationTime = source.modificationStamp; |
| 7466 throw new AnalysisException.con3(exception); | 7466 throw new AnalysisException.con3(exception); |
| 7467 } | 7467 } |
| 7468 if (token[0] == null) { | 7468 if (token[0] == null) { |
| 7469 throw new AnalysisException.con1("Could not get contents for '${source.ful
lName}'"); | 7469 throw new AnalysisException.con1("Could not get contents for '${source.ful
lName}'"); |
| 7470 } | 7470 } |
| 7471 TimeCounter_TimeCounterHandle timeCounterParse = PerformanceStatistics.parse
.start(); | 7471 TimeCounter_TimeCounterHandle timeCounterParse = PerformanceStatistics.parse
.start(); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7536 */ | 7536 */ |
| 7537 List<Source> toArray(Set<Source> sources) { | 7537 List<Source> toArray(Set<Source> sources) { |
| 7538 int size = sources.length; | 7538 int size = sources.length; |
| 7539 if (size == 0) { | 7539 if (size == 0) { |
| 7540 return Source.EMPTY_ARRAY; | 7540 return Source.EMPTY_ARRAY; |
| 7541 } | 7541 } |
| 7542 return new List.from(sources); | 7542 return new List.from(sources); |
| 7543 } | 7543 } |
| 7544 } | 7544 } |
| 7545 | 7545 |
| 7546 class Source_ContentReceiver_19 implements Source_ContentReceiver { | 7546 class Source_ContentReceiver_ParseDartTask_internalPerform implements Source_Con
tentReceiver { |
| 7547 final ParseDartTask ParseDartTask_this; | 7547 final ParseDartTask ParseDartTask_this; |
| 7548 | 7548 |
| 7549 RecordingErrorListener errorListener; | 7549 RecordingErrorListener errorListener; |
| 7550 | 7550 |
| 7551 List<Token> token; | 7551 List<Token> token; |
| 7552 | 7552 |
| 7553 Source_ContentReceiver_19(this.ParseDartTask_this, this.errorListener, this.to
ken); | 7553 Source_ContentReceiver_ParseDartTask_internalPerform(this.ParseDartTask_this,
this.errorListener, this.token); |
| 7554 | 7554 |
| 7555 void accept(CharBuffer contents, int modificationTime) { | 7555 void accept(CharBuffer contents, int modificationTime) { |
| 7556 doScan(contents, modificationTime); | 7556 doScan(contents, modificationTime); |
| 7557 } | 7557 } |
| 7558 | 7558 |
| 7559 void accept2(String contents, int modificationTime) { | 7559 void accept2(String contents, int modificationTime) { |
| 7560 doScan(new CharSequence(contents), modificationTime); | 7560 doScan(new CharSequence(contents), modificationTime); |
| 7561 } | 7561 } |
| 7562 | 7562 |
| 7563 void doScan(CharSequence contents, int modificationTime) { | 7563 void doScan(CharSequence contents, int modificationTime) { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7701 _referencedLibraries = librarySources; | 7701 _referencedLibraries = librarySources; |
| 7702 } | 7702 } |
| 7703 | 7703 |
| 7704 /** | 7704 /** |
| 7705 * Return the sources of libraries that are referenced in the specified HTML f
ile. | 7705 * Return the sources of libraries that are referenced in the specified HTML f
ile. |
| 7706 * | 7706 * |
| 7707 * @return the sources of libraries that are referenced in the HTML file | 7707 * @return the sources of libraries that are referenced in the HTML file |
| 7708 */ | 7708 */ |
| 7709 List<Source> get librarySources { | 7709 List<Source> get librarySources { |
| 7710 List<Source> libraries = new List<Source>(); | 7710 List<Source> libraries = new List<Source>(); |
| 7711 _unit.accept(new RecursiveXmlVisitor_20(this, libraries)); | 7711 _unit.accept(new RecursiveXmlVisitor_ParseHtmlTask_getLibrarySources(this, l
ibraries)); |
| 7712 if (libraries.isEmpty) { | 7712 if (libraries.isEmpty) { |
| 7713 return Source.EMPTY_ARRAY; | 7713 return Source.EMPTY_ARRAY; |
| 7714 } | 7714 } |
| 7715 return new List.from(libraries); | 7715 return new List.from(libraries); |
| 7716 } | 7716 } |
| 7717 } | 7717 } |
| 7718 | 7718 |
| 7719 class RecursiveXmlVisitor_20 extends RecursiveXmlVisitor<Object> { | 7719 class RecursiveXmlVisitor_ParseHtmlTask_getLibrarySources extends RecursiveXmlVi
sitor<Object> { |
| 7720 final ParseHtmlTask ParseHtmlTask_this; | 7720 final ParseHtmlTask ParseHtmlTask_this; |
| 7721 | 7721 |
| 7722 List<Source> libraries; | 7722 List<Source> libraries; |
| 7723 | 7723 |
| 7724 RecursiveXmlVisitor_20(this.ParseHtmlTask_this, this.libraries) : super(); | 7724 RecursiveXmlVisitor_ParseHtmlTask_getLibrarySources(this.ParseHtmlTask_this, t
his.libraries) : super(); |
| 7725 | 7725 |
| 7726 Object visitHtmlScriptTagNode(HtmlScriptTagNode node) { | 7726 Object visitHtmlScriptTagNode(HtmlScriptTagNode node) { |
| 7727 XmlAttributeNode scriptAttribute = null; | 7727 XmlAttributeNode scriptAttribute = null; |
| 7728 for (XmlAttributeNode attribute in node.attributes) { | 7728 for (XmlAttributeNode attribute in node.attributes) { |
| 7729 if (javaStringEqualsIgnoreCase(attribute.name, ParseHtmlTask._ATTRIBUTE_SR
C)) { | 7729 if (javaStringEqualsIgnoreCase(attribute.name, ParseHtmlTask._ATTRIBUTE_SR
C)) { |
| 7730 scriptAttribute = attribute; | 7730 scriptAttribute = attribute; |
| 7731 } | 7731 } |
| 7732 } | 7732 } |
| 7733 if (scriptAttribute != null) { | 7733 if (scriptAttribute != null) { |
| 7734 try { | 7734 try { |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8062 | 8062 |
| 8063 void logError3(Exception exception) { | 8063 void logError3(Exception exception) { |
| 8064 } | 8064 } |
| 8065 | 8065 |
| 8066 void logInformation(String message) { | 8066 void logInformation(String message) { |
| 8067 } | 8067 } |
| 8068 | 8068 |
| 8069 void logInformation2(String message, Exception exception) { | 8069 void logInformation2(String message, Exception exception) { |
| 8070 } | 8070 } |
| 8071 } | 8071 } |
| OLD | NEW |