github.com/cilki/sh@v2.6.4+incompatible/syntax/quotestate_string.go (about)

     1  // Code generated by "stringer -type=quoteState"; DO NOT EDIT.
     2  
     3  package syntax
     4  
     5  import "strconv"
     6  
     7  const _quoteState_name = "noStatesubCmdsubCmdBckquodblQuoteshdocWordhdocBodyhdocBodyTabsarithmExprarithmExprLetarithmExprCmdarithmExprBracktestRegexpswitchCaseparamExpNameparamExpSliceparamExpReplparamExpExparrayElems"
     8  
     9  var _quoteState_map = map[quoteState]string{
    10  	1:      _quoteState_name[0:7],
    11  	2:      _quoteState_name[7:13],
    12  	4:      _quoteState_name[13:25],
    13  	8:      _quoteState_name[25:34],
    14  	16:     _quoteState_name[34:42],
    15  	32:     _quoteState_name[42:50],
    16  	64:     _quoteState_name[50:62],
    17  	128:    _quoteState_name[62:72],
    18  	256:    _quoteState_name[72:85],
    19  	512:    _quoteState_name[85:98],
    20  	1024:   _quoteState_name[98:113],
    21  	2048:   _quoteState_name[113:123],
    22  	4096:   _quoteState_name[123:133],
    23  	8192:   _quoteState_name[133:145],
    24  	16384:  _quoteState_name[145:158],
    25  	32768:  _quoteState_name[158:170],
    26  	65536:  _quoteState_name[170:181],
    27  	131072: _quoteState_name[181:191],
    28  }
    29  
    30  func (i quoteState) String() string {
    31  	if str, ok := _quoteState_map[i]; ok {
    32  		return str
    33  	}
    34  	return "quoteState(" + strconv.FormatInt(int64(i), 10) + ")"
    35  }