@Override
	public void globalNamedAction(GrammarAST scope, GrammarAST ID, ActionAST action) {
		action.setScope(scope);
		namedActions.add((GrammarAST)ID.getParent());
		action.resolver = g;
	}
Track action name node in @parser::members {...} or @members {...}
tool/src/org/antlr/v4/semantics/SymbolCollector.java