parse
Parse a source code string and create a syntax tree.
If you have already parsed an earlier version of this document and the document has since been edited, pass the previous syntax tree to oldTree so that the unchanged parts of it can be reused. This will save time and memory. For this to work correctly, you must have already edited the old syntax tree using the Tree.edit method in a way that exactly matches the source code changes.
Throws
Parse source code from a callback and create a syntax tree.
If you have already parsed an earlier version of this document and the document has since been edited, pass the previous syntax tree to oldTree so that the unchanged parts of it can be reused. This will save time and memory. For this to work correctly, you must have already edited the old syntax tree using the Tree.edit method in a way that exactly matches the source code changes.
Throws
Parse a source code string and create a syntax tree.
If you have already parsed an earlier version of this document and the document has since been edited, pass the previous syntax tree to oldTree so that the unchanged parts of it can be reused. This will save time and memory. For this to work correctly, you must have already edited the old syntax tree using the Tree.edit method in a way that exactly matches the source code changes.
Throws
Parse source code from a callback and create a syntax tree.
If you have already parsed an earlier version of this document and the document has since been edited, pass the previous syntax tree to oldTree so that the unchanged parts of it can be reused. This will save time and memory. For this to work correctly, you must have already edited the old syntax tree using the Tree.edit method in a way that exactly matches the source code changes.
Throws
Parse a source code string and create a syntax tree.
If you have already parsed an earlier version of this document and the document has since been edited, pass the previous syntax tree to oldTree so that the unchanged parts of it can be reused. This will save time and memory. For this to work correctly, you must have already edited the old syntax tree using the Tree.edit method in a way that exactly matches the source code changes.
Throws
Parse source code from a callback and create a syntax tree.
If you have already parsed an earlier version of this document and the document has since been edited, pass the previous syntax tree to oldTree so that the unchanged parts of it can be reused. This will save time and memory. For this to work correctly, you must have already edited the old syntax tree using the Tree.edit method in a way that exactly matches the source code changes.
Throws
Parse a source code string and create a syntax tree.
If you have already parsed an earlier version of this document and the document has since been edited, pass the previous syntax tree to oldTree so that the unchanged parts of it can be reused. This will save time and memory. For this to work correctly, you must have already edited the old syntax tree using the Tree.edit method in a way that exactly matches the source code changes.
Throws
Parse source code from a callback and create a syntax tree.
If you have already parsed an earlier version of this document and the document has since been edited, pass the previous syntax tree to oldTree so that the unchanged parts of it can be reused. This will save time and memory. For this to work correctly, you must have already edited the old syntax tree using the Tree.edit method in a way that exactly matches the source code changes.