/// <exception cref="ArgumentNullException"> /// <paramref name="context" /> or /// <paramref name="x" /> or /// <paramref name="y" /> or /// <paramref name="z" /> is <c>null</c>. /// </exception> /// <exception cref="ArgumentException"> /// <paramref name="x" /> or /// <paramref name="y" /> or /// <paramref name="z" /> already has a Parent node. /// </exception> internal LSLVectorLiteralNode(LSLParser.VectorLiteralContext context, ILSLExprNode x, ILSLExprNode y, ILSLExprNode z) : this(x, y, z) { if (context == null) { throw new ArgumentNullException("context"); } SourceRange = new LSLSourceCodeRange(context); SourceRangeOpenBracket = new LSLSourceCodeRange(context.open_bracket); SourceRangeCommaOne = new LSLSourceCodeRange(context.comma_one); SourceRangeCommaTwo = new LSLSourceCodeRange(context.comma_two); SourceRangeCloseBracket = new LSLSourceCodeRange(context.close_bracket); SourceRangesAvailable = true; }
/// <summary> /// Exit a parse tree produced by <see cref="LSLParser.vectorLiteral"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitVectorLiteral([NotNull] LSLParser.VectorLiteralContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="LSLParser.vectorLiteral"/>. /// <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 VisitVectorLiteral([NotNull] LSLParser.VectorLiteralContext context) { return(VisitChildren(context)); }