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

Method String

decl.go:33–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31)
32
33func (this decl_class) String() string {
34 switch this {
35 case decl_invalid:
36 return "PANIC"
37 case decl_const:
38 return "const"
39 case decl_func:
40 return "func"
41 case decl_import:
42 return "import"
43 case decl_package:
44 return "package"
45 case decl_type:
46 return "type"
47 case decl_var:
48 return "var"
49 case decl_methods_stub:
50 return "IF YOU SEE THIS, REPORT A BUG" // :D
51 }
52 panic("unreachable")
53}
54
55// decl.flags
56type decl_flags int16

Callers 15

create_sock_flagFunction · 0.80
server_auto_completeFunction · 0.80
create_sock_flagFunction · 0.80
pretty_print_type_exprFunction · 0.80
write_candidatesMethod · 0.80
literalMethod · 0.80
token_items_to_stringFunction · 0.80
list_valueFunction · 0.80
listMethod · 0.80
list_optionMethod · 0.80
set_optionMethod · 0.80
optionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected