/// <exception cref="ArgumentNullException"> /// <paramref name="context" /> or <paramref name="rightExpression" /> is /// <c>null</c>. /// </exception> internal LSLPrefixOperationNode(LSLParser.Expr_PrefixOperationContext context, LSLType resultType, ILSLExprNode rightExpression) { if (context == null) { throw new ArgumentNullException("context"); } if (rightExpression == null) { throw new ArgumentNullException("rightExpression"); } Type = resultType; RightExpression = rightExpression; RightExpression.Parent = this; ParseAndSetOperation(context.operation.Text); SourceRange = new LSLSourceCodeRange(context); SourceRangeOperation = new LSLSourceCodeRange(context.operation); SourceRangesAvailable = true; }
/// <summary> /// Exit a parse tree produced by the <c>Expr_PrefixOperation</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_PrefixOperation([NotNull] LSLParser.Expr_PrefixOperationContext context) { }
/// <summary> /// Visit a parse tree produced by the <c>Expr_PrefixOperation</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_PrefixOperation([NotNull] LSLParser.Expr_PrefixOperationContext context) { return(VisitChildren(context)); }