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

Unified Diff: pkg/analyzer/lib/context/declared_variables.dart

Issue 2654663005: Add DeclaredVariables to AnalysisDriver. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/context/declared_variables.dart
diff --git a/pkg/analyzer/lib/context/declared_variables.dart b/pkg/analyzer/lib/context/declared_variables.dart
index 50c47ddca372dfdf2eb535cce628510abf76490a..5f6d6f1d580a0dd156183924201d80ff96cff261 100644
--- a/pkg/analyzer/lib/context/declared_variables.dart
+++ b/pkg/analyzer/lib/context/declared_variables.dart
@@ -28,6 +28,13 @@ class DeclaredVariables {
Iterable<String> get variableNames => _declaredVariables.keys;
/**
+ * Add all variables of [other] to this object.
+ */
+ void addAll(DeclaredVariables other) {
+ _declaredVariables.addAll(other._declaredVariables);
+ }
+
+ /**
* Define a variable with the given [name] to have the given [value].
*/
void define(String name, String value) {
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698