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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 128443003: Analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/error.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6617 matching lines...) Expand 10 before | Expand all | Expand 10 after
6628 * the elements representing the libraries 6628 * the elements representing the libraries
6629 */ 6629 */
6630 void recordLibraryElements(Map<Source, LibraryElement> elementMap); 6630 void recordLibraryElements(Map<Source, LibraryElement> elementMap);
6631 } 6631 }
6632 6632
6633 /** 6633 /**
6634 * Container with global [AnalysisContext] performance statistics. 6634 * Container with global [AnalysisContext] performance statistics.
6635 */ 6635 */
6636 class PerformanceStatistics { 6636 class PerformanceStatistics {
6637 /** 6637 /**
6638 * The [TimeCounter] for time spent in Angular analysis.
6639 */
6640 static TimeCounter angular = new TimeCounter();
6641
6642 /**
6638 * The [TimeCounter] for time spent in scanning. 6643 * The [TimeCounter] for time spent in scanning.
6639 */ 6644 */
6640 static TimeCounter scan = new TimeCounter(); 6645 static TimeCounter scan = new TimeCounter();
6641 6646
6642 /** 6647 /**
6643 * The [TimeCounter] for time spent in parsing. 6648 * The [TimeCounter] for time spent in parsing.
6644 */ 6649 */
6645 static TimeCounter parse = new TimeCounter(); 6650 static TimeCounter parse = new TimeCounter();
6646 6651
6647 /** 6652 /**
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
7448 return "parse as dart null source"; 7453 return "parse as dart null source";
7449 } 7454 }
7450 return "parse as dart ${source.fullName}"; 7455 return "parse as dart ${source.fullName}";
7451 } 7456 }
7452 7457
7453 void internalPerform() { 7458 void internalPerform() {
7454 RecordingErrorListener errorListener = new RecordingErrorListener(); 7459 RecordingErrorListener errorListener = new RecordingErrorListener();
7455 List<Token> token = [null]; 7460 List<Token> token = [null];
7456 TimeCounter_TimeCounterHandle timeCounterScan = PerformanceStatistics.scan.s tart(); 7461 TimeCounter_TimeCounterHandle timeCounterScan = PerformanceStatistics.scan.s tart();
7457 try { 7462 try {
7458 Source_ContentReceiver receiver = new Source_ContentReceiver_12(this, erro rListener, token); 7463 Source_ContentReceiver receiver = new Source_ContentReceiver_14(this, erro rListener, token);
7459 try { 7464 try {
7460 source.getContents(receiver); 7465 source.getContents(receiver);
7461 } on JavaException catch (exception) { 7466 } on JavaException catch (exception) {
7462 _modificationTime = source.modificationStamp; 7467 _modificationTime = source.modificationStamp;
7463 throw new AnalysisException.con3(exception); 7468 throw new AnalysisException.con3(exception);
7464 } 7469 }
7465 } finally { 7470 } finally {
7466 timeCounterScan.stop(); 7471 timeCounterScan.stop();
7467 } 7472 }
7468 if (token[0] == null) { 7473 if (token[0] == null) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
7536 */ 7541 */
7537 List<Source> toArray(Set<Source> sources) { 7542 List<Source> toArray(Set<Source> sources) {
7538 int size = sources.length; 7543 int size = sources.length;
7539 if (size == 0) { 7544 if (size == 0) {
7540 return Source.EMPTY_ARRAY; 7545 return Source.EMPTY_ARRAY;
7541 } 7546 }
7542 return new List.from(sources); 7547 return new List.from(sources);
7543 } 7548 }
7544 } 7549 }
7545 7550
7546 class Source_ContentReceiver_12 implements Source_ContentReceiver { 7551 class Source_ContentReceiver_14 implements Source_ContentReceiver {
7547 final ParseDartTask ParseDartTask_this; 7552 final ParseDartTask ParseDartTask_this;
7548 7553
7549 RecordingErrorListener errorListener; 7554 RecordingErrorListener errorListener;
7550 7555
7551 List<Token> token; 7556 List<Token> token;
7552 7557
7553 Source_ContentReceiver_12(this.ParseDartTask_this, this.errorListener, this.to ken); 7558 Source_ContentReceiver_14(this.ParseDartTask_this, this.errorListener, this.to ken);
7554 7559
7555 void accept(CharBuffer contents, int modificationTime) { 7560 void accept(CharBuffer contents, int modificationTime) {
7556 doScan(contents, modificationTime); 7561 doScan(contents, modificationTime);
7557 } 7562 }
7558 7563
7559 void accept2(String contents, int modificationTime) { 7564 void accept2(String contents, int modificationTime) {
7560 doScan(new CharSequence(contents), modificationTime); 7565 doScan(new CharSequence(contents), modificationTime);
7561 } 7566 }
7562 7567
7563 void doScan(CharSequence contents, int modificationTime) { 7568 void doScan(CharSequence contents, int modificationTime) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
7696 _referencedLibraries = librarySources; 7701 _referencedLibraries = librarySources;
7697 } 7702 }
7698 7703
7699 /** 7704 /**
7700 * 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.
7701 * 7706 *
7702 * @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
7703 */ 7708 */
7704 List<Source> get librarySources { 7709 List<Source> get librarySources {
7705 List<Source> libraries = new List<Source>(); 7710 List<Source> libraries = new List<Source>();
7706 _unit.accept(new RecursiveXmlVisitor_13(this, libraries)); 7711 _unit.accept(new RecursiveXmlVisitor_15(this, libraries));
7707 if (libraries.isEmpty) { 7712 if (libraries.isEmpty) {
7708 return Source.EMPTY_ARRAY; 7713 return Source.EMPTY_ARRAY;
7709 } 7714 }
7710 return new List.from(libraries); 7715 return new List.from(libraries);
7711 } 7716 }
7712 } 7717 }
7713 7718
7714 class RecursiveXmlVisitor_13 extends RecursiveXmlVisitor<Object> { 7719 class RecursiveXmlVisitor_15 extends RecursiveXmlVisitor<Object> {
7715 final ParseHtmlTask ParseHtmlTask_this; 7720 final ParseHtmlTask ParseHtmlTask_this;
7716 7721
7717 List<Source> libraries; 7722 List<Source> libraries;
7718 7723
7719 RecursiveXmlVisitor_13(this.ParseHtmlTask_this, this.libraries) : super(); 7724 RecursiveXmlVisitor_15(this.ParseHtmlTask_this, this.libraries) : super();
7720 7725
7721 Object visitHtmlScriptTagNode(HtmlScriptTagNode node) { 7726 Object visitHtmlScriptTagNode(HtmlScriptTagNode node) {
7722 XmlAttributeNode scriptAttribute = null; 7727 XmlAttributeNode scriptAttribute = null;
7723 for (XmlAttributeNode attribute in node.attributes) { 7728 for (XmlAttributeNode attribute in node.attributes) {
7724 if (javaStringEqualsIgnoreCase(attribute.name.lexeme, ParseHtmlTask._ATTRI BUTE_SRC)) { 7729 if (javaStringEqualsIgnoreCase(attribute.name, ParseHtmlTask._ATTRIBUTE_SR C)) {
7725 scriptAttribute = attribute; 7730 scriptAttribute = attribute;
7726 } 7731 }
7727 } 7732 }
7728 if (scriptAttribute != null) { 7733 if (scriptAttribute != null) {
7729 try { 7734 try {
7730 Uri uri = new Uri(path: scriptAttribute.text); 7735 Uri uri = new Uri(path: scriptAttribute.text);
7731 String fileName = uri.path; 7736 String fileName = uri.path;
7732 Source librarySource = ParseHtmlTask_this.context.sourceFactory.resolveU ri(ParseHtmlTask_this.source, fileName); 7737 Source librarySource = ParseHtmlTask_this.context.sourceFactory.resolveU ri(ParseHtmlTask_this.source, fileName);
7733 if (librarySource != null && librarySource.exists()) { 7738 if (librarySource != null && librarySource.exists()) {
7734 libraries.add(librarySource); 7739 libraries.add(librarySource);
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
8057 8062
8058 void logError3(Exception exception) { 8063 void logError3(Exception exception) {
8059 } 8064 }
8060 8065
8061 void logInformation(String message) { 8066 void logInformation(String message) {
8062 } 8067 }
8063 8068
8064 void logInformation2(String message, Exception exception) { 8069 void logInformation2(String message, Exception exception) {
8065 } 8070 }
8066 } 8071 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698