public override LessNode VisitUrl(LessParser.UrlContext context) { var variableContent = (Variable)context.variableName()?.Accept(this); if (variableContent != null) { return(new Url(variableContent)); } var stringContent = (LessString)context.@string()?.Accept(this); if (stringContent != null) { return(new Url(stringContent)); } var quotedStringContent = (QuotedExpression)context.quotedExpression()?.Accept(this); if (quotedStringContent != null) { return(new Url(quotedStringContent)); } return(new Url(new LessStringLiteral(context.rawUrl()?.GetText()))); }
public virtual LessNode VisitUrl(LessParser.UrlContext context) { throw new System.NotImplementedException(); }