getLocalDeclarations method

  1. @override
List<Statement> getLocalDeclarations()
override

Returns variable declarations for all locals used in this scope.

Implementation

@override
List<o.Statement> getLocalDeclarations() {
  final declarations = <o.Statement>[];
  for (final name in _localsInScope) {
    declarations.add(_state.localDeclarations[name]!);
  }
  return declarations;
}