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

Function new_decl

decl.go:317–324  ·  view source on GitHub ↗
(name string, class decl_class, scope *scope)

Source from the content-addressed store, hash-verified

315}
316
317func new_decl(name string, class decl_class, scope *scope) *decl {
318 decl := new(decl)
319 decl.name = name
320 decl.class = class
321 decl.value_index = -1
322 decl.scope = scope
323 return decl
324}
325
326func new_decl_var(name string, typ ast.Expr, value ast.Expr, vindex int, scope *scope) *decl {
327 if name == "_" {

Callers 5

process_package_dataMethod · 0.85
add_package_to_scopeMethod · 0.85
add_ast_decl_to_packageFunction · 0.85
initFunction · 0.85
append_to_top_declsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected