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

Unified Diff: pkg/analyzer/lib/src/generated/resolver.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 660203003: Add (an as yet unused) task (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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:
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/task/task_dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
index 6e26b9e0c537ab7fe621d7cecd90f81819f72cdf..7c697cadac26123932b03d9c42d848192a457823 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -1269,17 +1269,14 @@ class ClassScope extends EnclosedScope {
}
/**
- * Instances of the class `CompilationUnitBuilder` build an element model for a single
- * compilation unit.
+ * A `CompilationUnitBuilder` builds an element model for a single compilation
+ * unit.
*/
class CompilationUnitBuilder {
/**
- * Build the compilation unit element for the given source.
- *
- * @param source the source describing the compilation unit
- * @param unit the AST structure representing the compilation unit
- * @return the compilation unit element that was built
- * @throws AnalysisException if the analysis could not be performed
+ * Build the compilation unit element for the given [source] based on the
+ * compilation [unit] associated with the source. Throw an AnalysisException
+ * if the element could not be built.
*/
CompilationUnitElementImpl buildCompilationUnit(Source source, CompilationUnit unit) {
TimeCounter_TimeCounterHandle timeCounter = PerformanceStatistics.resolve.start();
@@ -1299,6 +1296,7 @@ class CompilationUnitBuilder {
element.types = holder.types;
element.topLevelVariables = holder.topLevelVariables;
unit.element = element;
+ holder.validate();
return element;
} finally {
timeCounter.stop();
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/task/task_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698