סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > ASTNode > (constructor)
ASTNode.(constructor)
יצירה של מופע חדש של המחלקה ASTNode
Signature:
constructor(type: string, location: IASTNodeLocation, opt_params?: Params);
פרמטרים
פרמטר |
סוג |
תיאור |
סוג |
מחרוזת |
סוג המיקום. חייב להיות ב-ASTNode.types. |
location |
IASTNodeLocation |
המיקום ב-AST. |
opt_params |
פרמטרים |
(אופציונלי) מילון אפשרויות אופציונלי. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 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."]]],[]]