writer.writeComments(true, true);
}
// do the parsing
CssErrorManager em = new CssErrorManager(resourceName);
PluginRegistry registry = Omakase.source(content).add(plugins).add(writer).add(em).process();
// report any errors found during parsing
em.checkErrors();
// return the results
ParserResult result = new ParserResult();
result.content = writer.write();
if (registry.retrieve(ThemeFunctionPlugin.class).isPresent()) {
result.themeExpressions = registry.retrieve(ThemeFunctionPlugin.class).get().parsedExpressions();
}
return result;
}