/// <summary>Gets the binary operator information for a given token type</summary> /// <param name="tokenType">Operator token type</param> /// <returns>Operator info for the operator or default if not found</returns> public OperatorInfo GetBinOperatorInfo(int tokenType) { if (BinOpPrecedence.TryGetValue(tokenType, out var value)) { return(value); } return(default);
/// <summary>Gets the binary operator information for a given token type</summary> /// <param name="tokenType">Operator token type</param> /// <returns>Operator info for the operator or default if not found</returns> internal OperatorInfo GetBinOperatorInfo(int tokenType) { return(BinOpPrecedence.TryGetValue(tokenType, out var value) ? value : (default));