Example #1
0
        public static string FormatPosition(this ITokenStream stream, Token token)
        {
            if (token == null)
            {
                throw new FormatException("Unexpected end of input.");
            }

            return(stream.FormattedDocument() + token.Line + ":" + token.Column);
        }