Antlr4.Tool.Alternative.GetAnyLabelDef C# (CSharp) Method

GetAnyLabelDef() public method

public GetAnyLabelDef ( string x ) : LabelElementPair
x string
return LabelElementPair
        public virtual LabelElementPair GetAnyLabelDef(string x)
        {
            IList<LabelElementPair> labels;
            if (labelDefs.TryGetValue(x, out labels) && labels != null)
                return labels[0];

            return null;
        }