Antlr4.Codegen.ActionTranslator.GetTokenPropertyRef C# (CSharp) Method

GetTokenPropertyRef() private method

private GetTokenPropertyRef ( Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : TokenPropertyRef
x Antlr.Runtime.IToken
y Antlr.Runtime.IToken
return Antlr4.Codegen.Model.Chunk.TokenPropertyRef
        internal virtual TokenPropertyRef GetTokenPropertyRef(IToken x, IToken y)
        {
            try
            {
                System.Func<StructDecl, string, TokenPropertyRef> c = tokenPropToModelMap[y.Text];
                TokenPropertyRef @ref =
                    c(nodeContext, GetTokenLabel(x.Text));
                return @ref;
            }
            catch (Exception e)
            {
                factory.GetGrammar().tool.errMgr.ToolError(ErrorType.INTERNAL_ERROR, e);
            }
            return null;
        }