Esempio n. 1
0
        /// <summary>
        ///     Visit an expression list node during a syntax tree traversal.
        /// </summary>
        /// <param name="node">The Syntax Tree Node.</param>
        /// <seealso cref="VisitFunctionCallArguments">VisitFunctionCallParameters calls this method.</seealso>
        /// <seealso cref="LSLValidatorNodeVisitor{T}.VisitListLiteralInitializerList">
        ///     VisitListLiteralInitializerList calls this
        ///     method.
        /// </seealso>
        /// <seealso cref="LSLValidatorNodeVisitor{T}.VisitForLoopInitExpressions">VisitForLoopInitExpressions calls this method.</seealso>
        /// <seealso cref="LSLValidatorNodeVisitor{T}.VisitForLoopAfterthoughts">VisitForLoopAfterthoughts calls this method.</seealso>
        /// <returns>An object of type (T) from the visitor implementation of this function.</returns>
        public virtual T VisitExpressionList(ILSLExpressionListNode node)
        {
            foreach (var exp in node.Expressions)
            {
                Visit(exp);
            }


            return(default(T));
        }
Esempio n. 2
0
 /// <summary>
 ///     Visits an expression list node representing a function calls parameters during a syntax tree traversal.
 /// </summary>
 /// <param name="node">The Syntax Tree Node.</param>
 /// <seealso cref="LSLValidatorNodeVisitor{T}.VisitExpressionList">
 ///     VisitListLiteralInitializerList makes a call to the
 ///     method seen here.
 /// </seealso>
 /// <returns>An object of type (T) from the visitor implementation of this function.</returns>
 public virtual T VisitFunctionCallArguments(ILSLExpressionListNode node)
 {
     return(VisitExpressionList(node));
 }
Esempio n. 3
0
 /// <summary>
 ///     Visits an expression list node inside of a list literal initializer during a syntax tree traversal.
 /// </summary>
 /// <param name="node">The Syntax Tree Node.</param>
 /// <seealso cref="LSLValidatorNodeVisitor{T}.VisitExpressionList">
 ///     VisitListLiteralInitializerList makes a call to the
 ///     method seen here.
 /// </seealso>
 /// <returns>An object of type (T) from the visitor implementation of this function.</returns>
 public virtual T VisitListLiteralInitializerList(ILSLExpressionListNode node)
 {
     return(VisitExpressionList(node));
 }
Esempio n. 4
0
 /// <summary>
 ///     Visits the function call parameter list node used for a call to a user defined function during a syntax tree
 ///     traversal.
 /// </summary>
 /// <param name="node">The Syntax Tree Node.</param>
 /// <seealso cref="VisitFunctionCallArguments">
 ///     VisitUserFunctionCallParameters makes a call to
 ///     the method seen here.
 /// </seealso>
 /// <returns>An object of type (T) from the visitor implementation of this function.</returns>
 public virtual T VisitUserFunctionCallParameters(ILSLExpressionListNode node)
 {
     return(VisitFunctionCallArguments(node));
 }
Esempio n. 5
0
 /// <summary>
 ///     Visits an expression list node representing a for loops initializer expressions during a syntax tree traversal.
 /// </summary>
 /// <param name="node">The Syntax Tree Node.</param>
 /// <seealso cref="LSLValidatorNodeVisitor{T}.VisitExpressionList">
 ///     VisitForLoopInitExpressions makes a call to the method
 ///     seen here.
 /// </seealso>
 /// <returns>An object of type (T) from the visitor implementation of this function.</returns>
 public virtual T VisitForLoopInitExpressions(ILSLExpressionListNode node)
 {
     return(VisitExpressionList(node));
 }
Esempio n. 6
0
 /// <summary>
 ///     Visits an expression list node representing a for loops afterthought expressions during a syntax tree traversal.
 /// </summary>
 /// <param name="node">The Syntax Tree Node.</param>
 /// <seealso cref="LSLValidatorNodeVisitor{T}.VisitExpressionList">
 ///     VisitForLoopAfterthoughts makes a call to the method
 ///     seen here.
 /// </seealso>
 /// <returns>An object of type (T) from the visitor implementation of this function.</returns>
 public virtual T VisitForLoopAfterthoughts(ILSLExpressionListNode node)
 {
     return(VisitExpressionList(node));
 }