Parse namespaced universal selectors.

This commit is contained in:
Natalie Weizenbaum 2016-10-18 23:13:32 -07:00
parent 021299b9f2
commit 7a29fa5c55

View File

@ -365,9 +365,11 @@ class SelectorParser extends Parser {
var nameOrNamespace = identifier(); var nameOrNamespace = identifier();
if (!scanner.scanChar($pipe)) { if (!scanner.scanChar($pipe)) {
return new TypeSelector(new QualifiedName(nameOrNamespace)); return new TypeSelector(new QualifiedName(nameOrNamespace));
} else if (scanner.scanChar($asterisk)) {
return new UniversalSelector(namespace: nameOrNamespace);
} else {
return new TypeSelector(
new QualifiedName(identifier(), namespace: nameOrNamespace));
} }
return new TypeSelector(
new QualifiedName(identifier(), namespace: nameOrNamespace));
} }
} }