/// <exception cref="ArgumentNullException">
        ///     <paramref name="context" /> or
        ///     <paramref name="x" /> or
        ///     <paramref name="y" /> or
        ///     <paramref name="z" /> or
        ///     <paramref name="s" /> is <c>null</c>.
        /// </exception>
        internal LSLRotationLiteralNode(LSLParser.RotationLiteralContext context, ILSLExprNode x, ILSLExprNode y,
                                        ILSLExprNode z, ILSLExprNode s) : this(x, y, z, s)
        {
            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);
            SourceRangeCommaThree   = new LSLSourceCodeRange(context.comma_three);
            SourceRangeCloseBracket = new LSLSourceCodeRange(context.close_bracket);

            SourceRangesAvailable = true;
        }
예제 #2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="LSLParser.rotationLiteral"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitRotationLiteral([NotNull] LSLParser.RotationLiteralContext context)
 {
 }
예제 #3
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="LSLParser.rotationLiteral"/>.
 /// <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 VisitRotationLiteral([NotNull] LSLParser.RotationLiteralContext context)
 {
     return(VisitChildren(context));
 }