Skip to content

Commit 119596a

Browse files
committed
Fixed a bug in variable resolution of function names and function parameters
1 parent 5a463db commit 119596a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/ast.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class Name extends Node {
130130
Scope scope;
131131

132132
/// True if this refers to a variable name.
133-
bool get isVariable => parent is NameExpression || parent is FunctionExpression || parent is VariableDeclarator || parent is CatchClause;
133+
bool get isVariable => parent is NameExpression || parent is FunctionNode || parent is VariableDeclarator || parent is CatchClause;
134134

135135
/// True if this refers to a property name.
136136
bool get isProperty =>

0 commit comments

Comments
 (0)