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

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

Issue 1709663002: Check _localVariableInfo initialized in VariableResolverVisitor. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | no next file » | 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 fab4ed1df0ca8e18f6b675b1e8d4f6884432492c..4f350a4f142d8f03daf6143f24488f0c717f7908 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -12486,6 +12486,12 @@ class VariableResolverVisitor extends ScopedVisitor {
nameScope: nameScope);
@override
+ Object visitBlockFunctionBody(BlockFunctionBody node) {
+ assert(_localVariableInfo != null);
+ return super.visitBlockFunctionBody(node);
+ }
+
+ @override
Object visitConstructorDeclaration(ConstructorDeclaration node) {
ExecutableElement outerFunction = _enclosingFunction;
LocalVariableInfo outerLocalVariableInfo = _localVariableInfo;
@@ -12504,6 +12510,12 @@ class VariableResolverVisitor extends ScopedVisitor {
Object visitExportDirective(ExportDirective node) => null;
@override
+ Object visitExpressionFunctionBody(ExpressionFunctionBody node) {
+ assert(_localVariableInfo != null);
+ return super.visitExpressionFunctionBody(node);
+ }
+
+ @override
Object visitFunctionDeclaration(FunctionDeclaration node) {
ExecutableElement outerFunction = _enclosingFunction;
LocalVariableInfo outerLocalVariableInfo = _localVariableInfo;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698