public static List <string> Tokenize(string name) { var tokenizer = new TypeNameTokenizer(name); tokenizer.Tokenize(); return(tokenizer._tokens); }
public TypeName ParseTypeName(Optional <TypeName> containingType = default(Optional <TypeName>)) { var typeName = ParseSingleTypeName(containingType); ParsePossibleDot(); if (_idx < _tokens.Count && !TypeNameTokenizer.IsSpecialChar(Cur[0])) { var tmp = ParseTypeName(typeName); return(tmp); } return(typeName); }
public static TypeName Parse(string typeName) { return(new TypeNameParser(TypeNameTokenizer.Tokenize(typeName)).ParseTypeName()); }