Example #1
0
        /// <exception cref="ArgumentNullException">
        ///     <paramref name="context" /> or <paramref name="leftExpression" /> is
        ///     <c>null</c>.
        /// </exception>
        internal LSLPostfixOperationNode(LSLParser.Expr_PostfixOperationContext context, LSLType resultType,
                                         ILSLExprNode leftExpression)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            if (leftExpression == null)
            {
                throw new ArgumentNullException("leftExpression");
            }

            Type                  = resultType;
            LeftExpression        = leftExpression;
            LeftExpression.Parent = this;

            ParseAndSetOperation(context.operation.Text);

            SourceRange = new LSLSourceCodeRange(context);

            SourceRangeOperation = new LSLSourceCodeRange(context.operation);

            SourceRangesAvailable = true;
        }
Example #2
0
 /// <summary>
 /// Exit a parse tree produced by the <c>Expr_PostfixOperation</c>
 /// labeled alternative in <see cref="LSLParser.expression"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitExpr_PostfixOperation([NotNull] LSLParser.Expr_PostfixOperationContext context)
 {
 }
Example #3
0
 /// <summary>
 /// Visit a parse tree produced by the <c>Expr_PostfixOperation</c>
 /// labeled alternative in <see cref="LSLParser.expression"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitExpr_PostfixOperation([NotNull] LSLParser.Expr_PostfixOperationContext context)
 {
     return(VisitChildren(context));
 }