Пример #1
0
 public virtual void Visit(JsConditionalCompilationSet node)
 {
     if (node != null)
     {
         if (node.Value != null)
         {
             node.Value.Accept(this);
         }
     }
 }
 public void Visit(JsConditionalCompilationSet node)
 {
     // starts with a '@set', so we don't care
 }
Пример #3
0
 public virtual void Visit(JsConditionalCompilationSet node)
 {
     if (node != null)
     {
         if (node.Value != null)
         {
             node.Value.Accept(this);
         }
     }
 }
 public void Visit(JsConditionalCompilationSet node)
 {
     // invalid! ignore
     IsValid = false;
 }
 public void Visit(JsConditionalCompilationSet node)
 {
     // not applicable; terminate
 }
 public void Visit(JsConditionalCompilationSet node)
 {
     // preprocessor nodes are handled outside the real JavaScript parsing
 }
 public void Visit(JsConditionalCompilationSet node)
 {
     // nothing to do
 }
Пример #8
0
        public void Visit(JsConditionalCompilationSet node)
        {
            if (node != null)
            {
                var symbol = StartSymbol(node);

                Output("@set");
                MarkSegment(node, null, node.Context);
                SetContextOutputPosition(node.Context);

                m_startOfStatement = false;
                Output(node.VariableName);
                Output('=');

                // if the value is an operator of any kind, we need to wrap it in parentheses
                // so it gets properly parsed
                if (node.Value is JsBinaryOperator || node.Value is JsUnaryOperator)
                {
                    Output('(');
                    node.Value.Accept(this);
                    OutputPossibleLineBreak(')');
                }
                else if (node.Value != null)
                {
                    node.Value.Accept(this);
                }

                EndSymbol(symbol);
            }
        }