public static bool IsType(Token token, ParserContext context) { return(TokenIdentifier.IsPrimitiveType(token.Type) || context.SymbolTable.structs.Contains(token.Value)); }
/// <summary> /// Determine if the provided token is /// representing a type /// </summary> public static bool IsPrimitiveType(Token token) { return(TokenIdentifier.IsPrimitiveType(token.Type)); }