findVariableDefinitions method
Implementation
List<DartBlockVariableDefinition> findVariableDefinitions(
int key, {
bool includeNode = false,
}) {
var containingNode = findNodeByKey(key);
if (!includeNode) {
containingNode = containingNode?.parent;
}
if (containingNode != null) {
return containingNode
._findVariableDefinitions(_getInherentVariableDefinitions())
.toSet()
.toList();
} else {
if (includeNode) {
return _getInherentVariableDefinitions();
} else {
return [];
}
}
}