github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/pkgbits/sync.go (about)

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package pkgbits
     6  
     7  // SyncMarker is an enum type that represents markers that may be
     8  // written to export data to ensure the reader and writer stay
     9  // synchronized.
    10  type SyncMarker int
    11  
    12  const (
    13  	_ SyncMarker = iota
    14  
    15  	// Low-level coding markers.
    16  	SyncEOF
    17  	SyncBool
    18  	SyncInt64
    19  	SyncUint64
    20  	SyncString
    21  	SyncValue
    22  	SyncVal
    23  	SyncRelocs
    24  	SyncReloc
    25  	SyncUseReloc
    26  
    27  	// Higher-level object and type markers.
    28  	SyncPublic
    29  	SyncPos
    30  	SyncPosBase
    31  	SyncObject
    32  	SyncObject1
    33  	SyncPkg
    34  	SyncPkgDef
    35  	SyncMethod
    36  	SyncType
    37  	SyncTypeIdx
    38  	SyncTypeParamNames
    39  	SyncSignature
    40  	SyncParams
    41  	SyncParam
    42  	SyncCodeObj
    43  	SyncSym
    44  	SyncLocalIdent
    45  	SyncSelector
    46  
    47  	// Private markers (only known to cmd/compile).
    48  	SyncPrivate
    49  
    50  	SyncFuncExt
    51  	SyncVarExt
    52  	SyncTypeExt
    53  	SyncPragma
    54  
    55  	SyncExprList
    56  	SyncExprs
    57  	SyncExpr
    58  	SyncExprType
    59  	SyncAssign
    60  	SyncOp
    61  	SyncFuncLit
    62  	SyncCompLit
    63  
    64  	SyncDecl
    65  	SyncFuncBody
    66  	SyncOpenScope
    67  	SyncCloseScope
    68  	SyncCloseAnotherScope
    69  	SyncDeclNames
    70  	SyncDeclName
    71  
    72  	SyncStmts
    73  	SyncBlockStmt
    74  	SyncIfStmt
    75  	SyncForStmt
    76  	SyncSwitchStmt
    77  	SyncRangeStmt
    78  	SyncCaseClause
    79  	SyncCommClause
    80  	SyncSelectStmt
    81  	SyncDecls
    82  	SyncLabeledStmt
    83  	SyncUseObjLocal
    84  	SyncAddLocal
    85  	SyncLinkname
    86  	SyncStmt1
    87  	SyncStmtsEnd
    88  	SyncLabel
    89  	SyncOptLabel
    90  
    91  	SyncMultiExpr
    92  	SyncRType
    93  	SyncConvRTTI
    94  )