Avoid rescanning unsupported input names
This commit is contained in:
@@ -253,11 +253,9 @@ func (walker *requirementWalker) evaluateInputName(node parse.Node, reach requir
|
||||
}
|
||||
evaluation.unsupported = true
|
||||
}
|
||||
if evaluation.unsupported {
|
||||
// Preserve directly recognizable references from a computed name without
|
||||
// treating the computation itself as an evaluated dependency.
|
||||
_ = walker.visit(node, requirementPossible, dot)
|
||||
}
|
||||
// Value analysis has already visited recognizable references, including
|
||||
// the conservative fallback for unsupported expressions. Do not rescan
|
||||
// the same subtree: nested computed names would multiply that work.
|
||||
return walker.unresolvedInputName(evaluation)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user