private void setActionResolver(GrammarAST valueAST) {
		if ( valueAST instanceof ActionAST) {
			((ActionAST)valueAST).resolver = currentRule.alt[currentOuterAltNumber];
		}
	}
In case of option id={...}, set resolve in case they use $foo
tool/src/org/antlr/v4/semantics/SymbolCollector.java