# ASTNode.(constructor)

Constructs a new instance of the ASTNode class

Signature:

constructor(type: string, location: IASTNodeLocation, opt_params?: Params);

# Parameters

Parameter Type Description
type string The type of the location. Must be in ASTNode.types.
location IASTNodeLocation The position in the AST.
opt_params Params (Optional) Optional dictionary of options.