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

Function new_decl_var

decl.go:326–338  ·  view source on GitHub ↗
(name string, typ ast.Expr, value ast.Expr, vindex int, scope *scope)

Source from the content-addressed store, hash-verified

324}
325
326func new_decl_var(name string, typ ast.Expr, value ast.Expr, vindex int, scope *scope) *decl {
327 if name == "_" {
328 return nil
329 }
330 decl := new(decl)
331 decl.name = name
332 decl.class = decl_var
333 decl.typ = typ
334 decl.value = value
335 decl.value_index = vindex
336 decl.scope = scope
337 return decl
338}
339
340func method_of(d ast.Decl) string {
341 if t, ok := d.(*ast.FuncDecl); ok {

Callers 4

process_select_stmtMethod · 0.85
process_range_stmtMethod · 0.85
process_assign_stmtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected