golang.org/x/tools@v0.21.1-0.20240520172518-788d39e776b1/internal/pkgbits/syncmarker_string.go (about) 1 // Code generated by "stringer -type=SyncMarker -trimprefix=Sync"; DO NOT EDIT. 2 3 package pkgbits 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[SyncEOF-1] 12 _ = x[SyncBool-2] 13 _ = x[SyncInt64-3] 14 _ = x[SyncUint64-4] 15 _ = x[SyncString-5] 16 _ = x[SyncValue-6] 17 _ = x[SyncVal-7] 18 _ = x[SyncRelocs-8] 19 _ = x[SyncReloc-9] 20 _ = x[SyncUseReloc-10] 21 _ = x[SyncPublic-11] 22 _ = x[SyncPos-12] 23 _ = x[SyncPosBase-13] 24 _ = x[SyncObject-14] 25 _ = x[SyncObject1-15] 26 _ = x[SyncPkg-16] 27 _ = x[SyncPkgDef-17] 28 _ = x[SyncMethod-18] 29 _ = x[SyncType-19] 30 _ = x[SyncTypeIdx-20] 31 _ = x[SyncTypeParamNames-21] 32 _ = x[SyncSignature-22] 33 _ = x[SyncParams-23] 34 _ = x[SyncParam-24] 35 _ = x[SyncCodeObj-25] 36 _ = x[SyncSym-26] 37 _ = x[SyncLocalIdent-27] 38 _ = x[SyncSelector-28] 39 _ = x[SyncPrivate-29] 40 _ = x[SyncFuncExt-30] 41 _ = x[SyncVarExt-31] 42 _ = x[SyncTypeExt-32] 43 _ = x[SyncPragma-33] 44 _ = x[SyncExprList-34] 45 _ = x[SyncExprs-35] 46 _ = x[SyncExpr-36] 47 _ = x[SyncExprType-37] 48 _ = x[SyncAssign-38] 49 _ = x[SyncOp-39] 50 _ = x[SyncFuncLit-40] 51 _ = x[SyncCompLit-41] 52 _ = x[SyncDecl-42] 53 _ = x[SyncFuncBody-43] 54 _ = x[SyncOpenScope-44] 55 _ = x[SyncCloseScope-45] 56 _ = x[SyncCloseAnotherScope-46] 57 _ = x[SyncDeclNames-47] 58 _ = x[SyncDeclName-48] 59 _ = x[SyncStmts-49] 60 _ = x[SyncBlockStmt-50] 61 _ = x[SyncIfStmt-51] 62 _ = x[SyncForStmt-52] 63 _ = x[SyncSwitchStmt-53] 64 _ = x[SyncRangeStmt-54] 65 _ = x[SyncCaseClause-55] 66 _ = x[SyncCommClause-56] 67 _ = x[SyncSelectStmt-57] 68 _ = x[SyncDecls-58] 69 _ = x[SyncLabeledStmt-59] 70 _ = x[SyncUseObjLocal-60] 71 _ = x[SyncAddLocal-61] 72 _ = x[SyncLinkname-62] 73 _ = x[SyncStmt1-63] 74 _ = x[SyncStmtsEnd-64] 75 _ = x[SyncLabel-65] 76 _ = x[SyncOptLabel-66] 77 } 78 79 const _SyncMarker_name = "EOFBoolInt64Uint64StringValueValRelocsRelocUseRelocPublicPosPosBaseObjectObject1PkgPkgDefMethodTypeTypeIdxTypeParamNamesSignatureParamsParamCodeObjSymLocalIdentSelectorPrivateFuncExtVarExtTypeExtPragmaExprListExprsExprExprTypeAssignOpFuncLitCompLitDeclFuncBodyOpenScopeCloseScopeCloseAnotherScopeDeclNamesDeclNameStmtsBlockStmtIfStmtForStmtSwitchStmtRangeStmtCaseClauseCommClauseSelectStmtDeclsLabeledStmtUseObjLocalAddLocalLinknameStmt1StmtsEndLabelOptLabel" 80 81 var _SyncMarker_index = [...]uint16{0, 3, 7, 12, 18, 24, 29, 32, 38, 43, 51, 57, 60, 67, 73, 80, 83, 89, 95, 99, 106, 120, 129, 135, 140, 147, 150, 160, 168, 175, 182, 188, 195, 201, 209, 214, 218, 226, 232, 234, 241, 248, 252, 260, 269, 279, 296, 305, 313, 318, 327, 333, 340, 350, 359, 369, 379, 389, 394, 405, 416, 424, 432, 437, 445, 450, 458} 82 83 func (i SyncMarker) String() string { 84 i -= 1 85 if i < 0 || i >= SyncMarker(len(_SyncMarker_index)-1) { 86 return "SyncMarker(" + strconv.FormatInt(int64(i+1), 10) + ")" 87 } 88 return _SyncMarker_name[_SyncMarker_index[i]:_SyncMarker_index[i+1]] 89 }