예제 #1
0
        public static List <string> Tokenize(string name)
        {
            var tokenizer = new TypeNameTokenizer(name);

            tokenizer.Tokenize();
            return(tokenizer._tokens);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public static TypeName Parse(string typeName)
 {
     return(new TypeNameParser(TypeNameTokenizer.Tokenize(typeName)).ParseTypeName());
 }