Exemplo n.º 1
0
        public static void InsertBefore(this BlockStatement self, AstNode nextSibling, Expression expression)
        {
            if (self == null)
            {
                throw new ArgumentNullException("self");
            }
            if (nextSibling == null)
            {
                throw new ArgumentNullException("nextSibling");
            }
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            self.InsertChildBefore(nextSibling, new ExpressionStatement(expression), BlockStatement.StatementRole);
        }