Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cogentcore/core
/ Destroy
Method
Destroy
parse/parser/ast.go:40–44 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
}
39
40
func
(ast *AST) Destroy() {
41
ast.Syms.ClearAST()
42
ast.Syms = nil
43
ast.NodeBase.Destroy()
44
}
45
46
// ChildAST returns the Child at given index as an AST.
47
// Will panic if index is invalid -- use Try if unsure.
Callers
nothing calls this directly
Calls
2
Destroy
Method · 0.65
ClearAST
Method · 0.45
Tested by
no test coverage detected