private StyleSheet parseContent(Import importNode, String importedContent, LessSource source) {
ANTLRParser parser = new ANTLRParser();
ANTLRParser.ParseResult parsedSheet = parser.parseStyleSheet(importedContent, source);
if (parsedSheet.hasErrors()) {
StyleSheet result = new StyleSheet(importNode.getUnderlyingStructure());
result.addMember(new FaultyNode(importNode));
problemsHandler.addErrors(parsedSheet.getErrors());
return result;
}
ASTBuilder astBuilder = new ASTBuilder(problemsHandler);
StyleSheet lessStyleSheet = astBuilder.parse(parsedSheet.getTree());