調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
blockly > BasicCursor > prev
BasicCursor.prev() メソッド
先行順序の走査で前のノードを検索します。
署名:
prev(): ASTNode | null;
戻り値:
ASTNode | null
前のノード。現在のノードが設定されていないか前の値がない場合は null。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-08 UTC。
[null,null,["最終更新日 2024-11-08 UTC。"],[[["The `BasicCursor.prev()` method is used to navigate to the previous node in the pre-order traversal of an Abstract Syntax Tree (AST)."],["It returns the previous ASTNode or null if the current node isn't set or if there's no preceding node."],["This method helps in traversing the AST structure by providing a way to access the previous node in the sequence."]]],["The `BasicCursor.prev()` method locates the preceding node in a pre-order traversal. It returns an `ASTNode` object representing this previous node. If no previous node exists or the current node is unset, the method returns `null`. The method's signature is `prev(): ASTNode | null;`, indicating the type of data it returns.\n"]]