package errors
import
func () {
var [1]struct{}
_ = [InvalidSyntaxTree - -1]
_ = [Test-1]
_ = [BlankPkgName-2]
_ = [MismatchedPkgName-3]
_ = [InvalidPkgUse-4]
_ = [BadImportPath-5]
_ = [BrokenImport-6]
_ = [ImportCRenamed-7]
_ = [UnusedImport-8]
_ = [InvalidInitCycle-9]
_ = [DuplicateDecl-10]
_ = [InvalidDeclCycle-11]
_ = [InvalidTypeCycle-12]
_ = [InvalidConstInit-13]
_ = [InvalidConstVal-14]
_ = [InvalidConstType-15]
_ = [UntypedNilUse-16]
_ = [WrongAssignCount-17]
_ = [UnassignableOperand-18]
_ = [NoNewVar-19]
_ = [MultiValAssignOp-20]
_ = [InvalidIfaceAssign-21]
_ = [InvalidChanAssign-22]
_ = [IncompatibleAssign-23]
_ = [UnaddressableFieldAssign-24]
_ = [NotAType-25]
_ = [InvalidArrayLen-26]
_ = [BlankIfaceMethod-27]
_ = [IncomparableMapKey-28]
_ = [InvalidPtrEmbed-30]
_ = [BadRecv-31]
_ = [InvalidRecv-32]
_ = [DuplicateFieldAndMethod-33]
_ = [DuplicateMethod-34]
_ = [InvalidBlank-35]
_ = [InvalidIota-36]
_ = [MissingInitBody-37]
_ = [InvalidInitSig-38]
_ = [InvalidInitDecl-39]
_ = [InvalidMainDecl-40]
_ = [TooManyValues-41]
_ = [NotAnExpr-42]
_ = [TruncatedFloat-43]
_ = [NumericOverflow-44]
_ = [UndefinedOp-45]
_ = [MismatchedTypes-46]
_ = [DivByZero-47]
_ = [NonNumericIncDec-48]
_ = [UnaddressableOperand-49]
_ = [InvalidIndirection-50]
_ = [NonIndexableOperand-51]
_ = [InvalidIndex-52]
_ = [SwappedSliceIndices-53]
_ = [NonSliceableOperand-54]
_ = [InvalidSliceExpr-55]
_ = [InvalidShiftCount-56]
_ = [InvalidShiftOperand-57]
_ = [InvalidReceive-58]
_ = [InvalidSend-59]
_ = [DuplicateLitKey-60]
_ = [MissingLitKey-61]
_ = [InvalidLitIndex-62]
_ = [OversizeArrayLit-63]
_ = [MixedStructLit-64]
_ = [InvalidStructLit-65]
_ = [MissingLitField-66]
_ = [DuplicateLitField-67]
_ = [UnexportedLitField-68]
_ = [InvalidLitField-69]
_ = [UntypedLit-70]
_ = [InvalidLit-71]
_ = [AmbiguousSelector-72]
_ = [UndeclaredImportedName-73]
_ = [UnexportedName-74]
_ = [UndeclaredName-75]
_ = [MissingFieldOrMethod-76]
_ = [BadDotDotDotSyntax-77]
_ = [NonVariadicDotDotDot-78]
_ = [MisplacedDotDotDot-79]
_ = [InvalidDotDotDot-81]
_ = [UncalledBuiltin-82]
_ = [InvalidAppend-83]
_ = [InvalidCap-84]
_ = [InvalidClose-85]
_ = [InvalidCopy-86]
_ = [InvalidComplex-87]
_ = [InvalidDelete-88]
_ = [InvalidImag-89]
_ = [InvalidLen-90]
_ = [SwappedMakeArgs-91]
_ = [InvalidMake-92]
_ = [InvalidReal-93]
_ = [InvalidAssert-94]
_ = [ImpossibleAssert-95]
_ = [InvalidConversion-96]
_ = [InvalidUntypedConversion-97]
_ = [BadOffsetofSyntax-98]
_ = [InvalidOffsetof-99]
_ = [UnusedExpr-100]
_ = [UnusedVar-101]
_ = [MissingReturn-102]
_ = [WrongResultCount-103]
_ = [OutOfScopeResult-104]
_ = [InvalidCond-105]
_ = [InvalidPostDecl-106]
_ = [InvalidIterVar-108]
_ = [InvalidRangeExpr-109]
_ = [MisplacedBreak-110]
_ = [MisplacedContinue-111]
_ = [MisplacedFallthrough-112]
_ = [DuplicateCase-113]
_ = [DuplicateDefault-114]
_ = [BadTypeKeyword-115]
_ = [InvalidTypeSwitch-116]
_ = [InvalidExprSwitch-117]
_ = [InvalidSelectCase-118]
_ = [UndeclaredLabel-119]
_ = [DuplicateLabel-120]
_ = [MisplacedLabel-121]
_ = [UnusedLabel-122]
_ = [JumpOverDecl-123]
_ = [JumpIntoBlock-124]
_ = [InvalidMethodExpr-125]
_ = [WrongArgCount-126]
_ = [InvalidCall-127]
_ = [UnusedResults-128]
_ = [InvalidDefer-129]
_ = [InvalidGo-130]
_ = [BadDecl-131]
_ = [RepeatedDecl-132]
_ = [InvalidUnsafeAdd-133]
_ = [InvalidUnsafeSlice-134]
_ = [UnsupportedFeature-135]
_ = [NotAGenericType-136]
_ = [WrongTypeArgCount-137]
_ = [CannotInferTypeArgs-138]
_ = [InvalidTypeArg-139]
_ = [InvalidInstanceCycle-140]
_ = [InvalidUnion-141]
_ = [MisplacedConstraintIface-142]
_ = [InvalidMethodTypeParams-143]
_ = [MisplacedTypeParam-144]
_ = [InvalidUnsafeSliceData-145]
_ = [InvalidUnsafeString-146]
_ = [InvalidClear-148]
_ = [TypeTooLarge-149]
_ = [InvalidMinMaxOperand-150]
_ = [TooNew-151]
}
const (
_Code_name_0 = "InvalidSyntaxTree"
_Code_name_1 = "TestBlankPkgNameMismatchedPkgNameInvalidPkgUseBadImportPathBrokenImportImportCRenamedUnusedImportInvalidInitCycleDuplicateDeclInvalidDeclCycleInvalidTypeCycleInvalidConstInitInvalidConstValInvalidConstTypeUntypedNilUseWrongAssignCountUnassignableOperandNoNewVarMultiValAssignOpInvalidIfaceAssignInvalidChanAssignIncompatibleAssignUnaddressableFieldAssignNotATypeInvalidArrayLenBlankIfaceMethodIncomparableMapKey"
_Code_name_2 = "InvalidPtrEmbedBadRecvInvalidRecvDuplicateFieldAndMethodDuplicateMethodInvalidBlankInvalidIotaMissingInitBodyInvalidInitSigInvalidInitDeclInvalidMainDeclTooManyValuesNotAnExprTruncatedFloatNumericOverflowUndefinedOpMismatchedTypesDivByZeroNonNumericIncDecUnaddressableOperandInvalidIndirectionNonIndexableOperandInvalidIndexSwappedSliceIndicesNonSliceableOperandInvalidSliceExprInvalidShiftCountInvalidShiftOperandInvalidReceiveInvalidSendDuplicateLitKeyMissingLitKeyInvalidLitIndexOversizeArrayLitMixedStructLitInvalidStructLitMissingLitFieldDuplicateLitFieldUnexportedLitFieldInvalidLitFieldUntypedLitInvalidLitAmbiguousSelectorUndeclaredImportedNameUnexportedNameUndeclaredNameMissingFieldOrMethodBadDotDotDotSyntaxNonVariadicDotDotDotMisplacedDotDotDot"
_Code_name_3 = "InvalidDotDotDotUncalledBuiltinInvalidAppendInvalidCapInvalidCloseInvalidCopyInvalidComplexInvalidDeleteInvalidImagInvalidLenSwappedMakeArgsInvalidMakeInvalidRealInvalidAssertImpossibleAssertInvalidConversionInvalidUntypedConversionBadOffsetofSyntaxInvalidOffsetofUnusedExprUnusedVarMissingReturnWrongResultCountOutOfScopeResultInvalidCondInvalidPostDecl"
_Code_name_4 = "InvalidIterVarInvalidRangeExprMisplacedBreakMisplacedContinueMisplacedFallthroughDuplicateCaseDuplicateDefaultBadTypeKeywordInvalidTypeSwitchInvalidExprSwitchInvalidSelectCaseUndeclaredLabelDuplicateLabelMisplacedLabelUnusedLabelJumpOverDeclJumpIntoBlockInvalidMethodExprWrongArgCountInvalidCallUnusedResultsInvalidDeferInvalidGoBadDeclRepeatedDeclInvalidUnsafeAddInvalidUnsafeSliceUnsupportedFeatureNotAGenericTypeWrongTypeArgCountCannotInferTypeArgsInvalidTypeArgInvalidInstanceCycleInvalidUnionMisplacedConstraintIfaceInvalidMethodTypeParamsMisplacedTypeParamInvalidUnsafeSliceDataInvalidUnsafeString"
_Code_name_5 = "InvalidClearTypeTooLargeInvalidMinMaxOperandTooNew"
)
var (
_Code_index_1 = [...]uint16{0, 4, 16, 33, 46, 59, 71, 85, 97, 113, 126, 142, 158, 174, 189, 205, 218, 234, 253, 261, 277, 295, 312, 330, 354, 362, 377, 393, 411}
_Code_index_2 = [...]uint16{0, 15, 22, 33, 56, 71, 83, 94, 109, 123, 138, 153, 166, 175, 189, 204, 215, 230, 239, 255, 275, 293, 312, 324, 343, 362, 378, 395, 414, 428, 439, 454, 467, 482, 498, 512, 528, 543, 560, 578, 593, 603, 613, 630, 652, 666, 680, 700, 718, 738, 756}
_Code_index_3 = [...]uint16{0, 16, 31, 44, 54, 66, 77, 91, 104, 115, 125, 140, 151, 162, 175, 191, 208, 232, 249, 264, 274, 283, 296, 312, 328, 339, 354}
_Code_index_4 = [...]uint16{0, 14, 30, 44, 61, 81, 94, 110, 124, 141, 158, 175, 190, 204, 218, 229, 241, 254, 271, 284, 295, 308, 320, 329, 336, 348, 364, 382, 400, 415, 432, 451, 465, 485, 497, 521, 544, 562, 584, 603}
_Code_index_5 = [...]uint8{0, 12, 24, 44, 50}
)
func ( Code) () string {
switch {
case == -1:
return _Code_name_0
case 1 <= && <= 28:
-= 1
return _Code_name_1[_Code_index_1[]:_Code_index_1[+1]]
case 30 <= && <= 79:
-= 30
return _Code_name_2[_Code_index_2[]:_Code_index_2[+1]]
case 81 <= && <= 106:
-= 81
return _Code_name_3[_Code_index_3[]:_Code_index_3[+1]]
case 108 <= && <= 146:
-= 108
return _Code_name_4[_Code_index_4[]:_Code_index_4[+1]]
case 148 <= && <= 151:
-= 148
return _Code_name_5[_Code_index_5[]:_Code_index_5[+1]]
default:
return "Code(" + strconv.FormatInt(int64(), 10) + ")"
}
}