ruleSet.addGuards(guards);
return ruleSet;
}
public ReusableStructure handleReusableStructureDeclaration(HiddenTokenAwareTree token) {
ReusableStructure result = new ReusableStructure(token);
List<HiddenTokenAwareTree> children = token.getChildren();
for (HiddenTokenAwareTree kid : children) {
if (kid.getType() == LessLexer.REUSABLE_STRUCTURE_NAME) {
result.addName(handleReusableStructureName(kid));
} else if (kid.getType() == LessLexer.BODY) {
result.setBody(handleGeneralBody(kid));
} else if (kid.getType() == LessLexer.GUARD) {
result.addGuard(handleGuard(kid));
} else if (kid.getType() == LessLexer.SEMI_SPLIT_MIXIN_DECLARATION_ARGUMENTS) {
mixinsParametersBuilder.handleMixinDeclarationArguments(kid, result);
}
}