@Override
	public void tokenRef(TerminalAST ref) {
		terminals.add(ref);
		tokenIDRefs.add(ref);
		if ( currentRule!=null ) {
			currentRule.alt[currentOuterAltNumber].tokenRefs.map(ref.getText(), ref);
		}
	}
Track action name node in @parser::members {...} or @members {...}
tool/src/org/antlr/v4/semantics/SymbolCollector.java