private ASTStatement MakeActionStatement(CodeLocation location, object thisValue, object name, object paramList, bool not)
        {
            var stmt = new ASTStatement
            {
                Location = location,
                Name     = (string)name,
                Not      = not,
                Params   = (ASTStatementParamList)paramList
            };

            stmt.Params.Insert(0, (ASTRValue)thisValue);
            return(stmt);
        }
Beispiel #2
0
        private ASTStatement MakeActionStatement(CodeLocation location, ASTNode thisValue, ASTNode name, ASTNode paramList, bool not)
        {
            var stmt = new ASTStatement
            {
                Location = location,
                Name     = (name as ASTLiteral).Literal,
                Not      = not,
                Params   = (paramList as ASTStatementParamList).Params
            };

            stmt.Params.Insert(0, thisValue as ASTRValue);
            return(stmt);
        }