diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-11-26 15:42:21 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-11-26 15:42:21 +0100 |
| commit | aed20c1c453e50f716c454c0bd7e4995a0f5d898 (patch) | |
| tree | 91af798989300451113e5b865a20fb2eae777938 /parser/symkind_string.go | |
| parent | 31054164870b413db797572b8e3d5a00c41d328e (diff) | |
Chore: improve tracing of code emits
Diffstat (limited to 'parser/symkind_string.go')
| -rw-r--r-- | parser/symkind_string.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/parser/symkind_string.go b/parser/symkind_string.go new file mode 100644 index 0000000..a22c994 --- /dev/null +++ b/parser/symkind_string.go @@ -0,0 +1,30 @@ +// Code generated by "stringer -type=symKind"; DO NOT EDIT. + +package parser + +import "strconv" + +func _() { + // An "invalid array index" compiler error signifies that the constant values have changed. + // Re-run the stringer command to generate them again. + var x [1]struct{} + _ = x[symValue-0] + _ = x[symType-1] + _ = x[symLabel-2] + _ = x[symConst-3] + _ = x[symVar-4] + _ = x[symFunc-5] + _ = x[symPkg-6] +} + +const _symKind_name = "symValuesymTypesymLabelsymConstsymVarsymFuncsymPkg" + +var _symKind_index = [...]uint8{0, 8, 15, 23, 31, 37, 44, 50} + +func (i symKind) String() string { + idx := int(i) - 0 + if i < 0 || idx >= len(_symKind_index)-1 { + return "symKind(" + strconv.FormatInt(int64(i), 10) + ")" + } + return _symKind_name[_symKind_index[idx]:_symKind_index[idx+1]] +} |
