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

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

Issue 16774005: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 library engine.resolver; 3 library engine.resolver;
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'java_core.dart'; 5 import 'java_core.dart';
6 import 'java_engine.dart'; 6 import 'java_engine.dart';
7 import 'instrumentation.dart'; 7 import 'instrumentation.dart';
8 import 'source.dart'; 8 import 'source.dart';
9 import 'error.dart'; 9 import 'error.dart';
10 import 'scanner.dart' as sc; 10 import 'scanner.dart' as sc;
11 import 'utilities_dart.dart'; 11 import 'utilities_dart.dart';
12 import 'ast.dart'; 12 import 'ast.dart';
13 import 'parser.dart' show Parser, ParserErrorCode; 13 import 'parser.dart' show Parser, ParserErrorCode;
14 import 'sdk.dart' show DartSdk, SdkLibrary; 14 import 'sdk.dart' show DartSdk, SdkLibrary;
15 import 'element.dart' hide HideCombinator, ShowCombinator; 15 import 'element.dart';
16 import 'html.dart' as ht; 16 import 'html.dart' as ht;
17 import 'engine.dart'; 17 import 'engine.dart';
18 import 'constant.dart'; 18 import 'constant.dart';
19 import 'element.dart' as __imp_combi show HideCombinator, ShowCombinator;
20 /** 19 /**
21 * Instances of the class {@code CompilationUnitBuilder} build an element model for a single 20 * Instances of the class {@code CompilationUnitBuilder} build an element model for a single
22 * compilation unit. 21 * compilation unit.
23 * @coverage dart.engine.resolver 22 * @coverage dart.engine.resolver
24 */ 23 */
25 class CompilationUnitBuilder { 24 class CompilationUnitBuilder {
26 25
27 /** 26 /**
28 * Build the compilation unit element for the given source. 27 * Build the compilation unit element for the given source.
29 * @param source the source describing the compilation unit 28 * @param source the source describing the compilation unit
(...skipping 4451 matching lines...) Expand 10 before | Expand all | Expand 10 after
4481 4480
4482 /** 4481 /**
4483 * Build the element model representing the combinators declared by the given directive. 4482 * Build the element model representing the combinators declared by the given directive.
4484 * @param directive the directive that declares the combinators 4483 * @param directive the directive that declares the combinators
4485 * @return an array containing the import combinators that were built 4484 * @return an array containing the import combinators that were built
4486 */ 4485 */
4487 List<NamespaceCombinator> buildCombinators(NamespaceDirective directive) { 4486 List<NamespaceCombinator> buildCombinators(NamespaceDirective directive) {
4488 List<NamespaceCombinator> combinators = new List<NamespaceCombinator>(); 4487 List<NamespaceCombinator> combinators = new List<NamespaceCombinator>();
4489 for (Combinator combinator in directive.combinators) { 4488 for (Combinator combinator in directive.combinators) {
4490 if (combinator is HideCombinator) { 4489 if (combinator is HideCombinator) {
4491 HideCombinatorImpl hide = new HideCombinatorImpl(); 4490 HideElementCombinatorImpl hide = new HideElementCombinatorImpl();
4492 hide.hiddenNames = getIdentifiers(((combinator as HideCombinator)).hidde nNames); 4491 hide.hiddenNames = getIdentifiers(((combinator as HideCombinator)).hidde nNames);
4493 combinators.add(hide); 4492 combinators.add(hide);
4494 } else { 4493 } else {
4495 ShowCombinatorImpl show = new ShowCombinatorImpl(); 4494 ShowElementCombinatorImpl show = new ShowElementCombinatorImpl();
4496 show.shownNames = getIdentifiers(((combinator as ShowCombinator)).shownN ames); 4495 show.shownNames = getIdentifiers(((combinator as ShowCombinator)).shownN ames);
4497 combinators.add(show); 4496 combinators.add(show);
4498 } 4497 }
4499 } 4498 }
4500 return new List.from(combinators); 4499 return new List.from(combinators);
4501 } 4500 }
4502 4501
4503 /** 4502 /**
4504 * Every library now has a corresponding {@link LibraryElement}, so it is now possible to resolve 4503 * Every library now has a corresponding {@link LibraryElement}, so it is now possible to resolve
4505 * the import and export directives. 4504 * the import and export directives.
(...skipping 4599 matching lines...) Expand 10 before | Expand all | Expand 10 after
9105 } 9104 }
9106 } 9105 }
9107 9106
9108 /** 9107 /**
9109 * Apply the given combinators to all of the names in the given mapping table. 9108 * Apply the given combinators to all of the names in the given mapping table.
9110 * @param definedNames the mapping table to which the namespace operations are to be applied 9109 * @param definedNames the mapping table to which the namespace operations are to be applied
9111 * @param combinators the combinators to be applied 9110 * @param combinators the combinators to be applied
9112 */ 9111 */
9113 Map<String, Element> apply(Map<String, Element> definedNames, List<NamespaceCo mbinator> combinators) { 9112 Map<String, Element> apply(Map<String, Element> definedNames, List<NamespaceCo mbinator> combinators) {
9114 for (NamespaceCombinator combinator in combinators) { 9113 for (NamespaceCombinator combinator in combinators) {
9115 if (combinator is __imp_combi.HideCombinator) { 9114 if (combinator is HideElementCombinator) {
9116 hide(definedNames, ((combinator as __imp_combi.HideCombinator)).hiddenNa mes); 9115 hide(definedNames, ((combinator as HideElementCombinator)).hiddenNames);
9117 } else if (combinator is __imp_combi.ShowCombinator) { 9116 } else if (combinator is ShowElementCombinator) {
9118 definedNames = show(definedNames, ((combinator as __imp_combi.ShowCombin ator)).shownNames); 9117 definedNames = show(definedNames, ((combinator as ShowElementCombinator) ).shownNames);
9119 } else { 9118 } else {
9120 AnalysisEngine.instance.logger.logError("Unknown type of combinator: ${c ombinator.runtimeType.toString()}"); 9119 AnalysisEngine.instance.logger.logError("Unknown type of combinator: ${c ombinator.runtimeType.toString()}");
9121 } 9120 }
9122 } 9121 }
9123 return definedNames; 9122 return definedNames;
9124 } 9123 }
9125 9124
9126 /** 9125 /**
9127 * Apply the given prefix to all of the names in the table of defined names. 9126 * Apply the given prefix to all of the names in the table of defined names.
9128 * @param definedNames the names that were defined before this operation 9127 * @param definedNames the names that were defined before this operation
(...skipping 3699 matching lines...) Expand 10 before | Expand all | Expand 10 after
12828 this._type = type; 12827 this._type = type;
12829 this._message = message; 12828 this._message = message;
12830 } 12829 }
12831 ErrorSeverity get errorSeverity => _type.severity; 12830 ErrorSeverity get errorSeverity => _type.severity;
12832 String get message => _message; 12831 String get message => _message;
12833 ErrorType get type => _type; 12832 ErrorType get type => _type;
12834 int compareTo(ResolverErrorCode other) => ordinal - other.ordinal; 12833 int compareTo(ResolverErrorCode other) => ordinal - other.ordinal;
12835 int get hashCode => ordinal; 12834 int get hashCode => ordinal;
12836 String toString() => name; 12835 String toString() => name;
12837 } 12836 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/java_core.dart ('k') | pkg/analyzer_experimental/lib/src/generated/sdk_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698