From 7a29fa5c5582fe8f5a3017811afbe681d112daf2 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Tue, 18 Oct 2016 23:13:32 -0700 Subject: [PATCH] Parse namespaced universal selectors. --- lib/src/parse/selector.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/src/parse/selector.dart b/lib/src/parse/selector.dart index a5f78573..adc30fed 100644 --- a/lib/src/parse/selector.dart +++ b/lib/src/parse/selector.dart @@ -365,9 +365,11 @@ class SelectorParser extends Parser { var nameOrNamespace = identifier(); if (!scanner.scanChar($pipe)) { 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)); } }