public static void WalkFunctionBody([NotNull] BaseNode node, [NotNull] List <IDeclaration> list) { if (node is BlockStatementNode block) { TopLevelLexicallyScopedDeclarationsWalker.Walk(block.Body, list); } }
public static void Walk([NotNull] ProgramNode node, [NotNull] List <IDeclaration> list) { TopLevelLexicallyScopedDeclarationsWalker.Walk(node.Body, list); }