🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
647 B
JavaScript
Executable File
27 lines
647 B
JavaScript
Executable File
/**
|
|
* Copyright (C) 2018 Glayzzle (BSD3 License)
|
|
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
|
|
* @url http://glayzzle.com
|
|
*/
|
|
"use strict";
|
|
|
|
const Expression = require("./expression");
|
|
const KIND = "new";
|
|
|
|
/**
|
|
* Creates a new instance of the specified class
|
|
* @constructor New
|
|
* @memberOf module:php-parser
|
|
* @extends {Expression}
|
|
* @property {Identifier|Variable|Class} what
|
|
* @property {Variable[]} arguments
|
|
*/
|
|
module.exports = Expression.extends(
|
|
KIND,
|
|
function New(what, args, docs, location) {
|
|
Expression.apply(this, [KIND, docs, location]);
|
|
this.what = what;
|
|
this.arguments = args;
|
|
},
|
|
);
|