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

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

Issue 14161021: Generate unique names less aggressively. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
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 'dart:collection' show HasNextIterator; 6 import 'dart:collection' show HasNextIterator;
7 import 'dart:uri' show Uri; 7 import 'dart:uri' show Uri;
8 import 'java_core.dart'; 8 import 'java_core.dart';
9 import 'java_engine.dart'; 9 import 'java_engine.dart';
10 import 'instrumentation.dart'; 10 import 'instrumentation.dart';
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 } 691 }
692 HtmlElement computeHtmlElement(Source source) { 692 HtmlElement computeHtmlElement(Source source) {
693 if (!AnalysisEngine.isHtmlFileName(source.shortName)) { 693 if (!AnalysisEngine.isHtmlFileName(source.shortName)) {
694 return null; 694 return null;
695 } 695 }
696 { 696 {
697 HtmlUnitInfo htmlUnitInfo = getHtmlUnitInfo(source); 697 HtmlUnitInfo htmlUnitInfo = getHtmlUnitInfo(source);
698 if (htmlUnitInfo == null) { 698 if (htmlUnitInfo == null) {
699 return null; 699 return null;
700 } 700 }
701 HtmlElement element26 = htmlUnitInfo.element; 701 HtmlElement element2 = htmlUnitInfo.element;
702 if (element26 == null) { 702 if (element2 == null) {
703 HtmlUnit unit = htmlUnitInfo.resolvedUnit; 703 HtmlUnit unit = htmlUnitInfo.resolvedUnit;
704 if (unit == null) { 704 if (unit == null) {
705 unit = htmlUnitInfo.parsedUnit; 705 unit = htmlUnitInfo.parsedUnit;
706 if (unit == null) { 706 if (unit == null) {
707 unit = parseHtmlUnit(source); 707 unit = parseHtmlUnit(source);
708 } 708 }
709 } 709 }
710 HtmlUnitBuilder builder = new HtmlUnitBuilder(this); 710 HtmlUnitBuilder builder = new HtmlUnitBuilder(this);
711 element26 = builder.buildHtmlElement2(source, unit); 711 element2 = builder.buildHtmlElement2(source, unit);
712 htmlUnitInfo.resolvedUnit = unit; 712 htmlUnitInfo.resolvedUnit = unit;
713 htmlUnitInfo.element = element26; 713 htmlUnitInfo.element = element2;
714 } 714 }
715 return element26; 715 return element2;
716 } 716 }
717 } 717 }
718 SourceKind computeKindOf(Source source) { 718 SourceKind computeKindOf(Source source) {
719 { 719 {
720 SourceInfo sourceInfo = getSourceInfo(source); 720 SourceInfo sourceInfo = getSourceInfo(source);
721 if (sourceInfo == null) { 721 if (sourceInfo == null) {
722 return SourceKind.UNKNOWN; 722 return SourceKind.UNKNOWN;
723 } else if (identical(sourceInfo, DartInfo.pendingInstance)) { 723 } else if (identical(sourceInfo, DartInfo.pendingInstance)) {
724 sourceInfo = internalComputeKindOf(source); 724 sourceInfo = internalComputeKindOf(source);
725 } 725 }
726 return sourceInfo.kind; 726 return sourceInfo.kind;
727 } 727 }
728 } 728 }
729 LibraryElement computeLibraryElement(Source source) { 729 LibraryElement computeLibraryElement(Source source) {
730 if (!AnalysisEngine.isDartFileName(source.shortName)) { 730 if (!AnalysisEngine.isDartFileName(source.shortName)) {
731 return null; 731 return null;
732 } 732 }
733 { 733 {
734 LibraryInfo libraryInfo = getLibraryInfo(source); 734 LibraryInfo libraryInfo = getLibraryInfo(source);
735 if (libraryInfo == null) { 735 if (libraryInfo == null) {
736 return null; 736 return null;
737 } 737 }
738 LibraryElement element27 = libraryInfo.element; 738 LibraryElement element2 = libraryInfo.element;
739 if (element27 == null) { 739 if (element2 == null) {
740 if (computeKindOf(source) != SourceKind.LIBRARY) { 740 if (computeKindOf(source) != SourceKind.LIBRARY) {
741 return null; 741 return null;
742 } 742 }
743 LibraryResolver resolver = new LibraryResolver.con1(this); 743 LibraryResolver resolver = new LibraryResolver.con1(this);
744 try { 744 try {
745 element27 = resolver.resolveLibrary(source, true); 745 element2 = resolver.resolveLibrary(source, true);
746 if (element27 != null) { 746 if (element2 != null) {
747 libraryInfo.element = element27; 747 libraryInfo.element = element2;
748 } 748 }
749 } on AnalysisException catch (exception) { 749 } on AnalysisException catch (exception) {
750 AnalysisEngine.instance.logger.logError2("Could not resolve the librar y ${source.fullName}", exception); 750 AnalysisEngine.instance.logger.logError2("Could not resolve the librar y ${source.fullName}", exception);
751 } 751 }
752 } 752 }
753 return element27; 753 return element2;
754 } 754 }
755 } 755 }
756 LineInfo computeLineInfo(Source source) { 756 LineInfo computeLineInfo(Source source) {
757 { 757 {
758 SourceInfo sourceInfo = getSourceInfo(source); 758 SourceInfo sourceInfo = getSourceInfo(source);
759 if (sourceInfo == null) { 759 if (sourceInfo == null) {
760 return null; 760 return null;
761 } 761 }
762 LineInfo lineInfo4 = sourceInfo.lineInfo; 762 LineInfo lineInfo2 = sourceInfo.lineInfo;
763 if (lineInfo4 == null) { 763 if (lineInfo2 == null) {
764 if (identical(sourceInfo, DartInfo.pendingInstance)) { 764 if (identical(sourceInfo, DartInfo.pendingInstance)) {
765 sourceInfo = internalComputeKindOf(source); 765 sourceInfo = internalComputeKindOf(source);
766 } 766 }
767 if (sourceInfo is HtmlUnitInfo) { 767 if (sourceInfo is HtmlUnitInfo) {
768 parseHtmlUnit(source); 768 parseHtmlUnit(source);
769 lineInfo4 = sourceInfo.lineInfo; 769 lineInfo2 = sourceInfo.lineInfo;
770 } else if (sourceInfo is CompilationUnitInfo) { 770 } else if (sourceInfo is CompilationUnitInfo) {
771 parseCompilationUnit(source); 771 parseCompilationUnit(source);
772 lineInfo4 = sourceInfo.lineInfo; 772 lineInfo2 = sourceInfo.lineInfo;
773 } 773 }
774 } 774 }
775 return lineInfo4; 775 return lineInfo2;
776 } 776 }
777 } 777 }
778 CompilationUnit computeResolvableCompilationUnit(Source source) { 778 CompilationUnit computeResolvableCompilationUnit(Source source) {
779 { 779 {
780 CompilationUnitInfo compilationUnitInfo = getCompilationUnitInfo(source); 780 CompilationUnitInfo compilationUnitInfo = getCompilationUnitInfo(source);
781 if (compilationUnitInfo == null) { 781 if (compilationUnitInfo == null) {
782 return null; 782 return null;
783 } 783 }
784 CompilationUnit unit = compilationUnitInfo.parsedCompilationUnit; 784 CompilationUnit unit = compilationUnitInfo.parsedCompilationUnit;
785 if (unit == null) { 785 if (unit == null) {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 LineInfo getLineInfo(Source source) { 933 LineInfo getLineInfo(Source source) {
934 { 934 {
935 SourceInfo info = getSourceInfo(source); 935 SourceInfo info = getSourceInfo(source);
936 if (info != null) { 936 if (info != null) {
937 return info.lineInfo; 937 return info.lineInfo;
938 } 938 }
939 return null; 939 return null;
940 } 940 }
941 } 941 }
942 Namespace getPublicNamespace(LibraryElement library) { 942 Namespace getPublicNamespace(LibraryElement library) {
943 Source source11 = library.definingCompilationUnit.source; 943 Source source2 = library.definingCompilationUnit.source;
944 { 944 {
945 LibraryInfo libraryInfo = getLibraryInfo(source11); 945 LibraryInfo libraryInfo = getLibraryInfo(source2);
946 if (libraryInfo == null) { 946 if (libraryInfo == null) {
947 return null; 947 return null;
948 } 948 }
949 Namespace namespace = libraryInfo.publicNamespace; 949 Namespace namespace = libraryInfo.publicNamespace;
950 if (namespace == null) { 950 if (namespace == null) {
951 NamespaceBuilder builder = new NamespaceBuilder(); 951 NamespaceBuilder builder = new NamespaceBuilder();
952 namespace = builder.createPublicNamespace(library); 952 namespace = builder.createPublicNamespace(library);
953 libraryInfo.publicNamespace = namespace; 953 libraryInfo.publicNamespace = namespace;
954 } 954 }
955 return namespace; 955 return namespace;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 unitSources.add(librarySource); 1091 unitSources.add(librarySource);
1092 for (CompilationUnitElement part in library.parts) { 1092 for (CompilationUnitElement part in library.parts) {
1093 Source partSource = part.source; 1093 Source partSource = part.source;
1094 unitSources.add(partSource); 1094 unitSources.add(partSource);
1095 } 1095 }
1096 libraryInfo.unitSources = new List.from(unitSources); 1096 libraryInfo.unitSources = new List.from(unitSources);
1097 } 1097 }
1098 } 1098 }
1099 } 1099 }
1100 } 1100 }
1101 void recordResolutionErrors(Source source, List<AnalysisError> errors, LineInf o lineInfo5) { 1101 void recordResolutionErrors(Source source, List<AnalysisError> errors, LineInf o lineInfo2) {
1102 { 1102 {
1103 CompilationUnitInfo compilationUnitInfo = getCompilationUnitInfo(source); 1103 CompilationUnitInfo compilationUnitInfo = getCompilationUnitInfo(source);
1104 if (compilationUnitInfo != null) { 1104 if (compilationUnitInfo != null) {
1105 compilationUnitInfo.lineInfo = lineInfo5; 1105 compilationUnitInfo.lineInfo = lineInfo2;
1106 compilationUnitInfo.resolutionErrors = errors; 1106 compilationUnitInfo.resolutionErrors = errors;
1107 } 1107 }
1108 getNotice(source).setErrors(compilationUnitInfo.allErrors, lineInfo5); 1108 getNotice(source).setErrors(compilationUnitInfo.allErrors, lineInfo2);
1109 } 1109 }
1110 } 1110 }
1111 void recordResolvedCompilationUnit(Source source, CompilationUnit unit) { 1111 void recordResolvedCompilationUnit(Source source, CompilationUnit unit) {
1112 { 1112 {
1113 CompilationUnitInfo compilationUnitInfo = getCompilationUnitInfo(source); 1113 CompilationUnitInfo compilationUnitInfo = getCompilationUnitInfo(source);
1114 if (compilationUnitInfo != null) { 1114 if (compilationUnitInfo != null) {
1115 compilationUnitInfo.resolvedCompilationUnit = unit; 1115 compilationUnitInfo.resolvedCompilationUnit = unit;
1116 compilationUnitInfo.clearParsedUnit(); 1116 compilationUnitInfo.clearParsedUnit();
1117 getNotice(source).compilationUnit = unit; 1117 getNotice(source).compilationUnit = unit;
1118 } 1118 }
1119 } 1119 }
1120 } 1120 }
1121 CompilationUnit resolveCompilationUnit(Source source20, LibraryElement library ) { 1121 CompilationUnit resolveCompilationUnit(Source source2, LibraryElement library) {
1122 if (library == null) { 1122 if (library == null) {
1123 return null; 1123 return null;
1124 } 1124 }
1125 return resolveCompilationUnit2(source20, library.source); 1125 return resolveCompilationUnit2(source2, library.source);
1126 } 1126 }
1127 CompilationUnit resolveCompilationUnit2(Source unitSource, Source librarySourc e) { 1127 CompilationUnit resolveCompilationUnit2(Source unitSource, Source librarySourc e) {
1128 { 1128 {
1129 accessed(unitSource); 1129 accessed(unitSource);
1130 CompilationUnitInfo compilationUnitInfo = getCompilationUnitInfo(unitSourc e); 1130 CompilationUnitInfo compilationUnitInfo = getCompilationUnitInfo(unitSourc e);
1131 if (compilationUnitInfo == null) { 1131 if (compilationUnitInfo == null) {
1132 return null; 1132 return null;
1133 } 1133 }
1134 CompilationUnit unit = compilationUnitInfo.resolvedCompilationUnit; 1134 CompilationUnit unit = compilationUnitInfo.resolvedCompilationUnit;
1135 if (unit == null) { 1135 if (unit == null) {
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 if (sourceInfo == null) { 1483 if (sourceInfo == null) {
1484 sourceInfo = createSourceInfo(source); 1484 sourceInfo = createSourceInfo(source);
1485 } 1485 }
1486 return sourceInfo; 1486 return sourceInfo;
1487 } 1487 }
1488 /** 1488 /**
1489 * Return an array containing all of the sources known to this context that ha ve the given kind. 1489 * Return an array containing all of the sources known to this context that ha ve the given kind.
1490 * @param kind the kind of sources to be returned 1490 * @param kind the kind of sources to be returned
1491 * @return all of the sources known to this context that have the given kind 1491 * @return all of the sources known to this context that have the given kind
1492 */ 1492 */
1493 List<Source> getSources(SourceKind kind3) { 1493 List<Source> getSources(SourceKind kind2) {
1494 List<Source> sources = new List<Source>(); 1494 List<Source> sources = new List<Source>();
1495 { 1495 {
1496 for (MapEntry<Source, SourceInfo> entry in getMapEntrySet(_sourceMap)) { 1496 for (MapEntry<Source, SourceInfo> entry in getMapEntrySet(_sourceMap)) {
1497 if (identical(entry.getValue().kind, kind3)) { 1497 if (identical(entry.getValue().kind, kind2)) {
1498 sources.add(entry.getKey()); 1498 sources.add(entry.getKey());
1499 } 1499 }
1500 } 1500 }
1501 } 1501 }
1502 return new List.from(sources); 1502 return new List.from(sources);
1503 } 1503 }
1504 /** 1504 /**
1505 * Return {@code true} if the given compilation unit has a part-of directive b ut no library 1505 * Return {@code true} if the given compilation unit has a part-of directive b ut no library
1506 * directive. 1506 * directive.
1507 * @param unit the compilation unit being tested 1507 * @param unit the compilation unit being tested
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 } 1800 }
1801 } 1801 }
1802 return super.visitXmlTagNode(node); 1802 return super.visitXmlTagNode(node);
1803 } 1803 }
1804 } 1804 }
1805 class Source_ContentReceiver_7 implements Source_ContentReceiver { 1805 class Source_ContentReceiver_7 implements Source_ContentReceiver {
1806 Source source; 1806 Source source;
1807 AnalysisErrorListener errorListener; 1807 AnalysisErrorListener errorListener;
1808 AnalysisContextImpl_ScanResult result; 1808 AnalysisContextImpl_ScanResult result;
1809 Source_ContentReceiver_7(this.source, this.errorListener, this.result); 1809 Source_ContentReceiver_7(this.source, this.errorListener, this.result);
1810 void accept(CharBuffer contents, int modificationTime4) { 1810 void accept(CharBuffer contents, int modificationTime2) {
1811 CharBufferScanner scanner = new CharBufferScanner(source, contents, errorLis tener); 1811 CharBufferScanner scanner = new CharBufferScanner(source, contents, errorLis tener);
1812 result._modificationTime = modificationTime4; 1812 result._modificationTime = modificationTime2;
1813 result._token = scanner.tokenize(); 1813 result._token = scanner.tokenize();
1814 result._lineStarts = scanner.lineStarts; 1814 result._lineStarts = scanner.lineStarts;
1815 } 1815 }
1816 void accept2(String contents, int modificationTime5) { 1816 void accept2(String contents, int modificationTime2) {
1817 StringScanner scanner = new StringScanner(source, contents, errorListener); 1817 StringScanner scanner = new StringScanner(source, contents, errorListener);
1818 result._modificationTime = modificationTime5; 1818 result._modificationTime = modificationTime2;
1819 result._token = scanner.tokenize(); 1819 result._token = scanner.tokenize();
1820 result._lineStarts = scanner.lineStarts; 1820 result._lineStarts = scanner.lineStarts;
1821 } 1821 }
1822 } 1822 }
1823 /** 1823 /**
1824 * Instances of the class {@code AnalysisErrorInfoImpl} represent the analysis e rrors and line info 1824 * Instances of the class {@code AnalysisErrorInfoImpl} represent the analysis e rrors and line info
1825 * associated with a source. 1825 * associated with a source.
1826 */ 1826 */
1827 class AnalysisErrorInfoImpl implements AnalysisErrorInfo { 1827 class AnalysisErrorInfoImpl implements AnalysisErrorInfo {
1828 /** 1828 /**
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 LineInfo get lineInfo => _lineInfo; 1936 LineInfo get lineInfo => _lineInfo;
1937 /** 1937 /**
1938 * Return the source for which the result is being reported. 1938 * Return the source for which the result is being reported.
1939 * @return the source for which the result is being reported 1939 * @return the source for which the result is being reported
1940 */ 1940 */
1941 Source get source => _source; 1941 Source get source => _source;
1942 /** 1942 /**
1943 * Set the fully resolved AST that changed as a result of the analysis to the given AST. 1943 * Set the fully resolved AST that changed as a result of the analysis to the given AST.
1944 * @param compilationUnit the fully resolved AST that changed as a result of t he analysis 1944 * @param compilationUnit the fully resolved AST that changed as a result of t he analysis
1945 */ 1945 */
1946 void set compilationUnit(CompilationUnit compilationUnit9) { 1946 void set compilationUnit(CompilationUnit compilationUnit2) {
1947 this._compilationUnit = compilationUnit9; 1947 this._compilationUnit = compilationUnit2;
1948 } 1948 }
1949 /** 1949 /**
1950 * Set the errors that changed as a result of the analysis to the given errors and set the line 1950 * Set the errors that changed as a result of the analysis to the given errors and set the line
1951 * information to the given line information. 1951 * information to the given line information.
1952 * @param errors the errors that changed as a result of the analysis 1952 * @param errors the errors that changed as a result of the analysis
1953 * @param lineInfo the line information associated with the source 1953 * @param lineInfo the line information associated with the source
1954 */ 1954 */
1955 void setErrors(List<AnalysisError> errors2, LineInfo lineInfo3) { 1955 void setErrors(List<AnalysisError> errors2, LineInfo lineInfo2) {
1956 this._errors = errors2; 1956 this._errors = errors2;
1957 this._lineInfo = lineInfo3; 1957 this._lineInfo = lineInfo2;
1958 } 1958 }
1959 } 1959 }
1960 /** 1960 /**
1961 * Instances of the class {@code CompilationUnitInfo} maintain the information c ached by an analysis 1961 * Instances of the class {@code CompilationUnitInfo} maintain the information c ached by an analysis
1962 * context about an individual compilation unit. 1962 * context about an individual compilation unit.
1963 * @coverage dart.engine 1963 * @coverage dart.engine
1964 */ 1964 */
1965 class CompilationUnitInfo extends SourceInfo { 1965 class CompilationUnitInfo extends SourceInfo {
1966 /** 1966 /**
1967 * The state of the cached parsed compilation unit. 1967 * The state of the cached parsed compilation unit.
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2324 } 2324 }
2325 List<Source> get librarySources => ArrayUtils.addAll(super.librarySources, _sd kAnalysisContext.librarySources); 2325 List<Source> get librarySources => ArrayUtils.addAll(super.librarySources, _sd kAnalysisContext.librarySources);
2326 LineInfo getLineInfo(Source source) { 2326 LineInfo getLineInfo(Source source) {
2327 if (source.isInSystemLibrary()) { 2327 if (source.isInSystemLibrary()) {
2328 return _sdkAnalysisContext.getLineInfo(source); 2328 return _sdkAnalysisContext.getLineInfo(source);
2329 } else { 2329 } else {
2330 return super.getLineInfo(source); 2330 return super.getLineInfo(source);
2331 } 2331 }
2332 } 2332 }
2333 Namespace getPublicNamespace(LibraryElement library) { 2333 Namespace getPublicNamespace(LibraryElement library) {
2334 Source source12 = library.source; 2334 Source source2 = library.source;
2335 if (source12.isInSystemLibrary()) { 2335 if (source2.isInSystemLibrary()) {
2336 return _sdkAnalysisContext.getPublicNamespace(library); 2336 return _sdkAnalysisContext.getPublicNamespace(library);
2337 } else { 2337 } else {
2338 return super.getPublicNamespace(library); 2338 return super.getPublicNamespace(library);
2339 } 2339 }
2340 } 2340 }
2341 Namespace getPublicNamespace2(Source source) { 2341 Namespace getPublicNamespace2(Source source) {
2342 if (source.isInSystemLibrary()) { 2342 if (source.isInSystemLibrary()) {
2343 return _sdkAnalysisContext.getPublicNamespace2(source); 2343 return _sdkAnalysisContext.getPublicNamespace2(source);
2344 } else { 2344 } else {
2345 return super.getPublicNamespace2(source); 2345 return super.getPublicNamespace2(source);
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2578 invalidateElement(); 2578 invalidateElement();
2579 _resolvedUnitState = CacheState.INVALID; 2579 _resolvedUnitState = CacheState.INVALID;
2580 _resolvedUnit = null; 2580 _resolvedUnit = null;
2581 } 2581 }
2582 /** 2582 /**
2583 * Set the element representing the HTML file to the given element. 2583 * Set the element representing the HTML file to the given element.
2584 * <p> 2584 * <p>
2585 * <b>Note:</b> Do not use this method to clear or invalidate the element. Use either{@link #clearElement()} or {@link #invalidateElement()}. 2585 * <b>Note:</b> Do not use this method to clear or invalidate the element. Use either{@link #clearElement()} or {@link #invalidateElement()}.
2586 * @param element the element representing the HTML file 2586 * @param element the element representing the HTML file
2587 */ 2587 */
2588 void set element(HtmlElement element19) { 2588 void set element(HtmlElement element2) {
2589 this._element = element19; 2589 this._element = element2;
2590 _elementState = CacheState.VALID; 2590 _elementState = CacheState.VALID;
2591 } 2591 }
2592 /** 2592 /**
2593 * Set the sources of libraries referenced by this HTML file to the given sour ces. 2593 * Set the sources of libraries referenced by this HTML file to the given sour ces.
2594 * @param sources the sources of libraries referenced by this HTML file 2594 * @param sources the sources of libraries referenced by this HTML file
2595 */ 2595 */
2596 void set librarySources(List<Source> sources) { 2596 void set librarySources(List<Source> sources) {
2597 _librarySources = sources; 2597 _librarySources = sources;
2598 _librarySourcesState = CacheState.VALID; 2598 _librarySourcesState = CacheState.VALID;
2599 } 2599 }
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
3301 _bitmask &= ~_CLIENT_CODE; 3301 _bitmask &= ~_CLIENT_CODE;
3302 } 3302 }
3303 _clientServerState = CacheState.VALID; 3303 _clientServerState = CacheState.VALID;
3304 } 3304 }
3305 /** 3305 /**
3306 * Set the element representing the library to the given element. 3306 * Set the element representing the library to the given element.
3307 * <p> 3307 * <p>
3308 * <b>Note:</b> Do not use this method to clear or invalidate the element. Use either{@link #clearElement()} or {@link #invalidateElement()}. 3308 * <b>Note:</b> Do not use this method to clear or invalidate the element. Use either{@link #clearElement()} or {@link #invalidateElement()}.
3309 * @param element the element representing the library 3309 * @param element the element representing the library
3310 */ 3310 */
3311 void set element(LibraryElement element20) { 3311 void set element(LibraryElement element2) {
3312 this._element = element20; 3312 this._element = element2;
3313 _elementState = CacheState.VALID; 3313 _elementState = CacheState.VALID;
3314 } 3314 }
3315 /** 3315 /**
3316 * Sets the value of the launchable flag. 3316 * Sets the value of the launchable flag.
3317 * <p> 3317 * <p>
3318 * <b>Note:</b> Do not use this method to invalidate the flag, use {@link #inv alidateLaunchable()}. 3318 * <b>Note:</b> Do not use this method to invalidate the flag, use {@link #inv alidateLaunchable()}.
3319 * @param isClient the new value of the client flag 3319 * @param isClient the new value of the client flag
3320 */ 3320 */
3321 void set launchable(bool launchable2) { 3321 void set launchable(bool launchable2) {
3322 if (launchable2) { 3322 if (launchable2) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
3382 */ 3382 */
3383 List<AnalysisError> getErrors2(Source source) { 3383 List<AnalysisError> getErrors2(Source source) {
3384 List<AnalysisError> errorsForSource = _errors[source]; 3384 List<AnalysisError> errorsForSource = _errors[source];
3385 if (errorsForSource == null) { 3385 if (errorsForSource == null) {
3386 return AnalysisError.NO_ERRORS; 3386 return AnalysisError.NO_ERRORS;
3387 } else { 3387 } else {
3388 return new List.from(errorsForSource); 3388 return new List.from(errorsForSource);
3389 } 3389 }
3390 } 3390 }
3391 void onError(AnalysisError event) { 3391 void onError(AnalysisError event) {
3392 Source source13 = event.source; 3392 Source source2 = event.source;
3393 List<AnalysisError> errorsForSource = _errors[source13]; 3393 List<AnalysisError> errorsForSource = _errors[source2];
3394 if (_errors[source13] == null) { 3394 if (_errors[source2] == null) {
3395 errorsForSource = new List<AnalysisError>(); 3395 errorsForSource = new List<AnalysisError>();
3396 _errors[source13] = errorsForSource; 3396 _errors[source2] = errorsForSource;
3397 } 3397 }
3398 errorsForSource.add(event); 3398 errorsForSource.add(event);
3399 } 3399 }
3400 } 3400 }
3401 /** 3401 /**
3402 * Instances of the class {@code ResolutionEraser} remove any resolution informa tion from an AST 3402 * Instances of the class {@code ResolutionEraser} remove any resolution informa tion from an AST
3403 * structure when used to visit that structure. 3403 * structure when used to visit that structure.
3404 */ 3404 */
3405 class ResolutionEraser extends GeneralizingASTVisitor<Object> { 3405 class ResolutionEraser extends GeneralizingASTVisitor<Object> {
3406 Object visitAssignmentExpression(AssignmentExpression node) { 3406 Object visitAssignmentExpression(AssignmentExpression node) {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
3589 } 3589 }
3590 void logError2(String message, Exception exception) { 3590 void logError2(String message, Exception exception) {
3591 } 3591 }
3592 void logError3(Exception exception) { 3592 void logError3(Exception exception) {
3593 } 3593 }
3594 void logInformation(String message) { 3594 void logInformation(String message) {
3595 } 3595 }
3596 void logInformation2(String message, Exception exception) { 3596 void logInformation2(String message, Exception exception) {
3597 } 3597 }
3598 } 3598 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698