modernc.org/cc@v1.0.1/scope_string.go (about) 1 // Code generated by "stringer -type Scope"; DO NOT EDIT. 2 3 package cc // import "modernc.org/cc" 4 5 import "fmt" 6 7 const _Scope_name = "ScopeFileScopeBlockScopeMembersScopeParams" 8 9 var _Scope_index = [...]uint8{0, 9, 19, 31, 42} 10 11 func (i Scope) String() string { 12 if i < 0 || i >= Scope(len(_Scope_index)-1) { 13 return fmt.Sprintf("Scope(%d)", i) 14 } 15 return _Scope_name[_Scope_index[i]:_Scope_index[i+1]] 16 }