MCPcopy Create free account
hub / github.com/nsf/gocode / new_scope

Function new_scope

scope.go:20–28  ·  view source on GitHub ↗
(outer *scope)

Source from the content-addressed store, hash-verified

18}
19
20func new_scope(outer *scope) *scope {
21 s := new(scope)
22 if outer != nil {
23 s.pkgname = outer.pkgname
24 }
25 s.parent = outer
26 s.entities = make(map[string]*decl)
27 return s
28}
29
30// returns: new, prev
31func advance_scope(s *scope) (*scope, *scope) {

Callers 8

process_dataMethod · 0.85
process_decl_localsMethod · 0.85
VisitMethod · 0.85
decl.goFile · 0.85
process_dataMethod · 0.85
new_named_scopeFunction · 0.85
advance_scopeFunction · 0.85
merge_declsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected