Accumulate type paths as we parse, rather than throwing them away.

This commit is contained in:
Graydon Hoare
2010-11-22 13:21:54 -08:00
parent 0847ff7d42
commit fdac6ffa7c

View File

@@ -210,6 +210,7 @@ impure fn parse_ty(parser p) -> @ast.ty {
case (token.IDENT(?i)) { case (token.IDENT(?i)) {
auto n = parse_name(p, i); auto n = parse_name(p, i);
hi = n.span; hi = n.span;
pth += n;
if (p.peek() == token.DOT) { if (p.peek() == token.DOT) {
p.bump(); p.bump();
} else { } else {