blockly > BasicCursor > precedente
Metodo BasicCursor.prev()
Trova il nodo precedente nell'esplorazione in ordine predefinito.
Firma:
prev(): ASTNode | null;
Restituisce:
ASTNode | null
Il nodo precedente o null se il nodo corrente non è impostato o non esiste un valore precedente.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-11-08 UTC.
[null,null,["Ultimo aggiornamento 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"]]