@Override /** * Setting property of declaration property : MINUS? IDENT S* returns null - processed via declaration_sctack */ public Object visitProperty(CSSParser.PropertyContext ctx) { logEnter("property"); String property = extractTextUnescaped(ctx.IDENT().getText()); if (ctx.MINUS() != null) { property = ctx.MINUS().getText() + property; } declaration_stack.peek().d.setProperty(property); Token token = ctx.IDENT().getSymbol(); declaration_stack.peek().d.setSource(extractSource((CSSToken) token)); log.debug("Setting property: {}", declaration_stack.peek().d.getProperty()); logLeave("property"); //returns null return null; }
@Override /** * Setting property of declaration property : MINUS? IDENT S* returns null - processed via declaration_sctack */ public Object visitProperty(CSSParser.PropertyContext ctx) { logEnter("property"); String property = extractTextUnescaped(ctx.IDENT().getText()); if (ctx.MINUS() != null) { property = ctx.MINUS().getText() + property; } declaration_stack.peek().d.setProperty(property); Token token = ctx.IDENT().getSymbol(); declaration_stack.peek().d.setSource(extractSource((CSSToken) token)); log.debug("Setting property: {}", declaration_stack.peek().d.getProperty()); logLeave("property"); //returns null return null; }
decl.setProperty(property); Token token = ctx.IDENT().getSymbol(); decl.setSource(extractSource((CSSToken) token)); if (ctx.terms() != null) { List<Term<?>> t = visitTerms(ctx.terms());
decl.setProperty(property); Token token = ctx.IDENT().getSymbol(); decl.setSource(extractSource((CSSToken) token)); if (ctx.terms() != null) { List<Term<?>> t = visitTerms(ctx.terms());