return result;
}
public MixinReference handleNamespaceReference(HiddenTokenAwareTree token) {
MixinReference reference = null;
List<ReusableStructureName> nameChain = new ArrayList<ReusableStructureName>();
List<HiddenTokenAwareTree> children = token.getChildren();
for (HiddenTokenAwareTree kid : children) {
ASTCssNode buildKid = switchOn(kid);
if (buildKid.getType() == ASTCssNodeType.MIXIN_REFERENCE) {
reference = (MixinReference) switchOn(kid);
} else if (buildKid.getType() == ASTCssNodeType.REUSABLE_STRUCTURE_NAME) {
nameChain.add(handleReusableStructureName(kid));
} else {
throw new BugHappened(GRAMMAR_MISMATCH, token);
}
}
reference.setUnderlyingStructure(token);
reference.addNames(nameChain);
return reference;
}