Posted 16 years ago
by Richard Kisic

Hello,
Is it possible to remove a node (and all of its children) from the AST, then insert the node elsewhere (either in a new AST instance, or the same AST at a later time)? If this is possible, is there a way to serialize the AST content (preferably a node)?
I ask this because we are in need of building the IntelliPrompt for our custom objects, and the code for these objects is currently being placed in the document's header text. I thought a direct-injection of code (deserialized from a file) may be faster, as this would eliminate a parse. Do you have any suggestions for optimizing this process?
Thanks,
Rich
[Modified at 09/28/2009 07:40 AM]
Is it possible to remove a node (and all of its children) from the AST, then insert the node elsewhere (either in a new AST instance, or the same AST at a later time)? If this is possible, is there a way to serialize the AST content (preferably a node)?
I ask this because we are in need of building the IntelliPrompt for our custom objects, and the code for these objects is currently being placed in the document's header text. I thought a direct-injection of code (deserialized from a file) may be faster, as this would eliminate a parse. Do you have any suggestions for optimizing this process?
Thanks,
Rich
[Modified at 09/28/2009 07:40 AM]