コード例 #1
0
        public override LessNode VisitLineStatement(LessParser.LineStatementContext context)
        {
            ExtendStatement GetExtendStatement()
            {
                var extend = context.extend();

                if (extend == null)
                {
                    return(null);
                }

                return(new ExtendStatement(GetExtend(extend)));
            }

            return(context.importDeclaration()?.Accept(this)
                   ?? context.variableDeclaration()?.Accept(this)
                   ?? context.mixinCall()?.Accept(this)
                   ?? context.property()?.Accept(this)
                   ?? GetExtendStatement()
                   ?? throw new ParserException($"Unexpected statement type: [{context.GetText()}]"));
        }
コード例 #2
0
 public virtual LessNode VisitLineStatement(LessParser.LineStatementContext context)
 {
     throw new System.NotImplementedException();
 }