Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenEndedGroup/Field2
/ astSize
Function
astSize
lib/web/tern/tern.js:496–500 ·
view source on GitHub ↗
(node)
Source
from the content-addressed store, hash-verified
494
// Budget management
495
496
function
astSize(node) {
497
var
size = 0;
498
walk.simple(node, {Expression:
function
() { ++size; }});
499
return
size;
500
}
501
502
function
parentDepth(srv, parent) {
503
var
depth = 0;
Callers
1
chargeOnBudget
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected