Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > ASTNode > (konstruktor)
ASTNode.(constructor)
Membuat instance baru dari class ASTNode
Tanda Tangan:
constructor(type: string, location: IASTNodeLocation, opt_params?: Params);
Parameter
Parameter |
Jenis |
Deskripsi |
jenis |
string |
Jenis lokasi. Harus dalam ASTNode.types. |
lokasi |
IASTNodeLocation |
Posisi di AST. |
opt_params |
Params |
(Opsional) Kamus opsi opsional. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-21 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-21 UTC."],[[["Initializes a new ASTNode object, representing a node in the Abstract Syntax Tree."],["Requires a `type` argument specifying the node's type, which should be from the `ASTNode.types` enumeration."],["Needs a `location` object (IASTNodeLocation) to define the node's position within the AST."],["Optionally accepts `opt_params`, a dictionary for any additional node-specific properties."]]],[]]