| 1 | package tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ |
| 2 | |
| 3 | import ( |
| 4 | "errorsscip-go gomod github.com/golang/go/src go1.21.0 errors/" |
| 5 | "fmtscip-go gomod github.com/golang/go/src go1.21.0 fmt/" |
| 6 | "strconvscip-go gomod github.com/golang/go/src go1.21.0 strconv/" |
| 7 | "stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/" |
| 8 | "timescip-go gomod github.com/golang/go/src go1.21.0 time/" |
| 9 | ) |
| 10 | |
| 11 | // Character type for character |
| 12 | type Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# byte |
| 13 | |
| 14 | const ( |
| 15 | // SequenceEntryCharacter character for sequence entry |
| 16 | SequenceEntryCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEntryCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '-' |
| 17 | // MappingKeyCharacter character for mapping key |
| 18 | MappingKeyCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingKeyCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '?' |
| 19 | // MappingValueCharacter character for mapping value |
| 20 | MappingValueCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingValueCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = ':' |
| 21 | // CollectEntryCharacter character for collect entry |
| 22 | CollectEntryCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CollectEntryCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = ',' |
| 23 | // SequenceStartCharacter character for sequence start |
| 24 | SequenceStartCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceStartCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '[' |
| 25 | // SequenceEndCharacter character for sequence end |
| 26 | SequenceEndCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEndCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = ']' |
| 27 | // MappingStartCharacter character for mapping start |
| 28 | MappingStartCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingStartCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '{' |
| 29 | // MappingEndCharacter character for mapping end |
| 30 | MappingEndCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingEndCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '}' |
| 31 | // CommentCharacter character for comment |
| 32 | CommentCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CommentCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '#' |
| 33 | // AnchorCharacter character for anchor |
| 34 | AnchorCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/AnchorCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '&' |
| 35 | // AliasCharacter character for alias |
| 36 | AliasCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/AliasCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '*' |
| 37 | // TagCharacter character for tag |
| 38 | TagCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '!' |
| 39 | // LiteralCharacter character for literal |
| 40 | LiteralCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/LiteralCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '|' |
| 41 | // FoldedCharacter character for folded |
| 42 | FoldedCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FoldedCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '>' |
| 43 | // SingleQuoteCharacter character for single quote |
| 44 | SingleQuoteCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SingleQuoteCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '\'' |
| 45 | // DoubleQuoteCharacter character for double quote |
| 46 | DoubleQuoteCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DoubleQuoteCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '"' |
| 47 | // DirectiveCharacter character for directive |
| 48 | DirectiveCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DirectiveCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '%' |
| 49 | // SpaceCharacter character for space |
| 50 | SpaceCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SpaceCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = ' ' |
| 51 | // LineBreakCharacter character for line break |
| 52 | LineBreakCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/LineBreakCharacter. Characterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Character# = '\n' |
| 53 | ) |
| 54 | |
| 55 | // Type type identifier for token |
| 56 | type Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Type# int |
| 57 | |
| 58 | const ( |
| 59 | // UnknownType reserve for invalid type |
| 60 | UnknownTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/UnknownType. Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Type# = iota |
| 61 | // DocumentHeaderType type for DocumentHeader token |
| 62 | DocumentHeaderTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DocumentHeaderType. |
| 63 | // DocumentEndType type for DocumentEnd token |
| 64 | DocumentEndTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DocumentEndType. |
| 65 | // SequenceEntryType type for SequenceEntry token |
| 66 | SequenceEntryTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEntryType. |
| 67 | // MappingKeyType type for MappingKey token |
| 68 | MappingKeyTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingKeyType. |
| 69 | // MappingValueType type for MappingValue token |
| 70 | MappingValueTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingValueType. |
| 71 | // MergeKeyType type for MergeKey token |
| 72 | MergeKeyTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MergeKeyType. |
| 73 | // CollectEntryType type for CollectEntry token |
| 74 | CollectEntryTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CollectEntryType. |
| 75 | // SequenceStartType type for SequenceStart token |
| 76 | SequenceStartTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceStartType. |
| 77 | // SequenceEndType type for SequenceEnd token |
| 78 | SequenceEndTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEndType. |
| 79 | // MappingStartType type for MappingStart token |
| 80 | MappingStartTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingStartType. |
| 81 | // MappingEndType type for MappingEnd token |
| 82 | MappingEndTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingEndType. |
| 83 | // CommentType type for Comment token |
| 84 | CommentTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CommentType. |
| 85 | // AnchorType type for Anchor token |
| 86 | AnchorTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/AnchorType. |
| 87 | // AliasType type for Alias token |
| 88 | AliasTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/AliasType. |
| 89 | // TagType type for Tag token |
| 90 | TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType. |
| 91 | // LiteralType type for Literal token |
| 92 | LiteralTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/LiteralType. |
| 93 | // FoldedType type for Folded token |
| 94 | FoldedTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FoldedType. |
| 95 | // SingleQuoteType type for SingleQuote token |
| 96 | SingleQuoteTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SingleQuoteType. |
| 97 | // DoubleQuoteType type for DoubleQuote token |
| 98 | DoubleQuoteTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DoubleQuoteType. |
| 99 | // DirectiveType type for Directive token |
| 100 | DirectiveTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DirectiveType. |
| 101 | // SpaceType type for Space token |
| 102 | SpaceTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SpaceType. |
| 103 | // NullType type for Null token |
| 104 | NullTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NullType. |
| 105 | // ImplicitNullType type for implicit Null token. |
| 106 | // This is used when explicit keywords such as null or ~ are not specified. |
| 107 | // It is distinguished during encoding and output as an empty string. |
| 108 | ImplicitNullTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ImplicitNullType. |
| 109 | // InfinityType type for Infinity token |
| 110 | InfinityTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/InfinityType. |
| 111 | // NanType type for Nan token |
| 112 | NanTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NanType. |
| 113 | // IntegerType type for Integer token |
| 114 | IntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/IntegerType. |
| 115 | // BinaryIntegerType type for BinaryInteger token |
| 116 | BinaryIntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BinaryIntegerType. |
| 117 | // OctetIntegerType type for OctetInteger token |
| 118 | OctetIntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/OctetIntegerType. |
| 119 | // HexIntegerType type for HexInteger token |
| 120 | HexIntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/HexIntegerType. |
| 121 | // FloatType type for Float token |
| 122 | FloatTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FloatType. |
| 123 | // StringType type for String token |
| 124 | StringTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/StringType. |
| 125 | // BoolType type for Bool token |
| 126 | BoolTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BoolType. |
| 127 | // InvalidType type for invalid token |
| 128 | InvalidTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/InvalidType. |
| 129 | ) |
| 130 | |
| 131 | // String type identifier to text |
| 132 | func (t Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Type#) Stringscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Type#String().() string { |
| 133 | switch t { |
| 134 | case UnknownTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/UnknownType.: |
| 135 | return "Unknown" |
| 136 | case DocumentHeaderTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DocumentHeaderType.: |
| 137 | return "DocumentHeader" |
| 138 | case DocumentEndTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DocumentEndType.: |
| 139 | return "DocumentEnd" |
| 140 | case SequenceEntryTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEntryType.: |
| 141 | return "SequenceEntry" |
| 142 | case MappingKeyTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingKeyType.: |
| 143 | return "MappingKey" |
| 144 | case MappingValueTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingValueType.: |
| 145 | return "MappingValue" |
| 146 | case MergeKeyTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MergeKeyType.: |
| 147 | return "MergeKey" |
| 148 | case CollectEntryTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CollectEntryType.: |
| 149 | return "CollectEntry" |
| 150 | case SequenceStartTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceStartType.: |
| 151 | return "SequenceStart" |
| 152 | case SequenceEndTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEndType.: |
| 153 | return "SequenceEnd" |
| 154 | case MappingStartTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingStartType.: |
| 155 | return "MappingStart" |
| 156 | case MappingEndTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingEndType.: |
| 157 | return "MappingEnd" |
| 158 | case CommentTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CommentType.: |
| 159 | return "Comment" |
| 160 | case AnchorTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/AnchorType.: |
| 161 | return "Anchor" |
| 162 | case AliasTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/AliasType.: |
| 163 | return "Alias" |
| 164 | case TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType.: |
| 165 | return "Tag" |
| 166 | case LiteralTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/LiteralType.: |
| 167 | return "Literal" |
| 168 | case FoldedTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FoldedType.: |
| 169 | return "Folded" |
| 170 | case SingleQuoteTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SingleQuoteType.: |
| 171 | return "SingleQuote" |
| 172 | case DoubleQuoteTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DoubleQuoteType.: |
| 173 | return "DoubleQuote" |
| 174 | case DirectiveTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DirectiveType.: |
| 175 | return "Directive" |
| 176 | case SpaceTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SpaceType.: |
| 177 | return "Space" |
| 178 | case StringTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/StringType.: |
| 179 | return "String" |
| 180 | case BoolTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BoolType.: |
| 181 | return "Bool" |
| 182 | case IntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/IntegerType.: |
| 183 | return "Integer" |
| 184 | case BinaryIntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BinaryIntegerType.: |
| 185 | return "BinaryInteger" |
| 186 | case OctetIntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/OctetIntegerType.: |
| 187 | return "OctetInteger" |
| 188 | case HexIntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/HexIntegerType.: |
| 189 | return "HexInteger" |
| 190 | case FloatTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FloatType.: |
| 191 | return "Float" |
| 192 | case NullTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NullType.: |
| 193 | return "Null" |
| 194 | case ImplicitNullTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ImplicitNullType.: |
| 195 | return "ImplicitNull" |
| 196 | case InfinityTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/InfinityType.: |
| 197 | return "Infinity" |
| 198 | case NanTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NanType.: |
| 199 | return "Nan" |
| 200 | case InvalidTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/InvalidType.: |
| 201 | return "Invalid" |
| 202 | } |
| 203 | return "" |
| 204 | } |
| 205 | |
| 206 | // CharacterType type for character category |
| 207 | type CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterType# int |
| 208 | |
| 209 | const ( |
| 210 | // CharacterTypeIndicator type of indicator character |
| 211 | CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator. CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterType# = iota |
| 212 | // CharacterTypeWhiteSpace type of white space character |
| 213 | CharacterTypeWhiteSpacescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeWhiteSpace. |
| 214 | // CharacterTypeMiscellaneous type of miscellaneous character |
| 215 | CharacterTypeMiscellaneousscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeMiscellaneous. |
| 216 | // CharacterTypeEscaped type of escaped character |
| 217 | CharacterTypeEscapedscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeEscaped. |
| 218 | // CharacterTypeInvalid type for a invalid token. |
| 219 | CharacterTypeInvalidscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeInvalid. |
| 220 | ) |
| 221 | |
| 222 | // String character type identifier to text |
| 223 | func (c CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterType#) Stringscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterType#String().() string { |
| 224 | switch c { |
| 225 | case CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator.: |
| 226 | return "Indicator" |
| 227 | case CharacterTypeWhiteSpacescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeWhiteSpace.: |
| 228 | return "WhiteSpace" |
| 229 | case CharacterTypeMiscellaneousscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeMiscellaneous.: |
| 230 | return "Miscellaneous" |
| 231 | case CharacterTypeEscapedscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeEscaped.: |
| 232 | return "Escaped" |
| 233 | } |
| 234 | return "" |
| 235 | } |
| 236 | |
| 237 | // Indicator type for indicator |
| 238 | type Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Indicator# int |
| 239 | |
| 240 | const ( |
| 241 | // NotIndicator not indicator |
| 242 | NotIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NotIndicator. Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Indicator# = iota |
| 243 | // BlockStructureIndicator indicator for block structure ( '-', '?', ':' ) |
| 244 | BlockStructureIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BlockStructureIndicator. |
| 245 | // FlowCollectionIndicator indicator for flow collection ( '[', ']', '{', '}', ',' ) |
| 246 | FlowCollectionIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FlowCollectionIndicator. |
| 247 | // CommentIndicator indicator for comment ( '#' ) |
| 248 | CommentIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CommentIndicator. |
| 249 | // NodePropertyIndicator indicator for node property ( '!', '&', '*' ) |
| 250 | NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator. |
| 251 | // BlockScalarIndicator indicator for block scalar ( '|', '>' ) |
| 252 | BlockScalarIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BlockScalarIndicator. |
| 253 | // QuotedScalarIndicator indicator for quoted scalar ( ''', '"' ) |
| 254 | QuotedScalarIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/QuotedScalarIndicator. |
| 255 | // DirectiveIndicator indicator for directive ( '%' ) |
| 256 | DirectiveIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DirectiveIndicator. |
| 257 | // InvalidUseOfReservedIndicator indicator for invalid use of reserved keyword ( '@', '`' ) |
| 258 | InvalidUseOfReservedIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/InvalidUseOfReservedIndicator. |
| 259 | ) |
| 260 | |
| 261 | // String indicator to text |
| 262 | func (i Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Indicator#) Stringscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Indicator#String().() string { |
| 263 | switch i { |
| 264 | case NotIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NotIndicator.: |
| 265 | return "NotIndicator" |
| 266 | case BlockStructureIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BlockStructureIndicator.: |
| 267 | return "BlockStructure" |
| 268 | case FlowCollectionIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FlowCollectionIndicator.: |
| 269 | return "FlowCollection" |
| 270 | case CommentIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CommentIndicator.: |
| 271 | return "Comment" |
| 272 | case NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator.: |
| 273 | return "NodeProperty" |
| 274 | case BlockScalarIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BlockScalarIndicator.: |
| 275 | return "BlockScalar" |
| 276 | case QuotedScalarIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/QuotedScalarIndicator.: |
| 277 | return "QuotedScalar" |
| 278 | case DirectiveIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DirectiveIndicator.: |
| 279 | return "Directive" |
| 280 | case InvalidUseOfReservedIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/InvalidUseOfReservedIndicator.: |
| 281 | return "InvalidUseOfReserved" |
| 282 | } |
| 283 | return "" |
| 284 | } |
| 285 | |
| 286 | var ( |
| 287 | reservedNullKeywordsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedNullKeywords. = []string{ |
| 288 | "null", |
| 289 | "Null", |
| 290 | "NULL", |
| 291 | "~", |
| 292 | } |
| 293 | reservedBoolKeywordsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedBoolKeywords. = []string{ |
| 294 | "true", |
| 295 | "True", |
| 296 | "TRUE", |
| 297 | "false", |
| 298 | "False", |
| 299 | "FALSE", |
| 300 | } |
| 301 | // For compatibility with other YAML 1.1 parsers |
| 302 | // Note that we use these solely for encoding the bool value with quotes. |
| 303 | // go-yaml should not treat these as reserved keywords at parsing time. |
| 304 | // as go-yaml is supposed to be compliant only with YAML 1.2. |
| 305 | reservedLegacyBoolKeywordsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedLegacyBoolKeywords. = []string{ |
| 306 | "y", |
| 307 | "Y", |
| 308 | "yes", |
| 309 | "Yes", |
| 310 | "YES", |
| 311 | "n", |
| 312 | "N", |
| 313 | "no", |
| 314 | "No", |
| 315 | "NO", |
| 316 | "on", |
| 317 | "On", |
| 318 | "ON", |
| 319 | "off", |
| 320 | "Off", |
| 321 | "OFF", |
| 322 | } |
| 323 | reservedInfKeywordsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedInfKeywords. = []string{ |
| 324 | ".inf", |
| 325 | ".Inf", |
| 326 | ".INF", |
| 327 | "-.inf", |
| 328 | "-.Inf", |
| 329 | "-.INF", |
| 330 | } |
| 331 | reservedNanKeywordsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedNanKeywords. = []string{ |
| 332 | ".nan", |
| 333 | ".NaN", |
| 334 | ".NAN", |
| 335 | } |
| 336 | reservedKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordMap. = map[string]func(string, string, *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{} |
| 337 | // reservedEncKeywordMap contains is the keyword map used at encoding time. |
| 338 | // This is supposed to be a superset of reservedKeywordMap, |
| 339 | // and used to quote legacy keywords present in YAML 1.1 or lesser for compatibility reasons, |
| 340 | // even though this library is supposed to be YAML 1.2-compliant. |
| 341 | reservedEncKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedEncKeywordMap. = map[string]func(string, string, *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{} |
| 342 | ) |
| 343 | |
| 344 | func reservedKeywordTokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordToken().(typ Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Type#, value, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 345 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 346 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: typ, |
| 347 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeMiscellaneousscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeMiscellaneous., |
| 348 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NotIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NotIndicator., |
| 349 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: value, |
| 350 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 351 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | func initscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/init().() { |
| 356 | for _, keyword := range reservedNullKeywordsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedNullKeywords. { |
| 357 | f := func(value, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 358 | return reservedKeywordTokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordToken().(NullTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NullType., value, org, pos) |
| 359 | } |
| 360 | |
| 361 | reservedKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordMap.[keyword] = f |
| 362 | reservedEncKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedEncKeywordMap.[keyword] = f |
| 363 | } |
| 364 | for _, keyword := range reservedBoolKeywordsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedBoolKeywords. { |
| 365 | f := func(value, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 366 | return reservedKeywordTokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordToken().(BoolTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BoolType., value, org, pos) |
| 367 | } |
| 368 | reservedKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordMap.[keyword] = f |
| 369 | reservedEncKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedEncKeywordMap.[keyword] = f |
| 370 | } |
| 371 | for _, keyword := range reservedLegacyBoolKeywordsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedLegacyBoolKeywords. { |
| 372 | reservedEncKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedEncKeywordMap.[keyword] = func(value, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 373 | return reservedKeywordTokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordToken().(BoolTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BoolType., value, org, pos) |
| 374 | } |
| 375 | } |
| 376 | for _, keyword := range reservedInfKeywordsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedInfKeywords. { |
| 377 | reservedKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordMap.[keyword] = func(value, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 378 | return reservedKeywordTokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordToken().(InfinityTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/InfinityType., value, org, pos) |
| 379 | } |
| 380 | } |
| 381 | for _, keyword := range reservedNanKeywordsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedNanKeywords. { |
| 382 | reservedKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordMap.[keyword] = func(value, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 383 | return reservedKeywordTokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordToken().(NanTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NanType., value, org, pos) |
| 384 | } |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | // ReservedTagKeyword type of reserved tag keyword |
| 389 | type ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# string |
| 390 | |
| 391 | const ( |
| 392 | // IntegerTag `!!int` tag |
| 393 | IntegerTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/IntegerTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!int" |
| 394 | // FloatTag `!!float` tag |
| 395 | FloatTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FloatTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!float" |
| 396 | // NullTag `!!null` tag |
| 397 | NullTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NullTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!null" |
| 398 | // SequenceTag `!!seq` tag |
| 399 | SequenceTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!seq" |
| 400 | // MappingTag `!!map` tag |
| 401 | MappingTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!map" |
| 402 | // StringTag `!!str` tag |
| 403 | StringTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/StringTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!str" |
| 404 | // BinaryTag `!!binary` tag |
| 405 | BinaryTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BinaryTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!binary" |
| 406 | // OrderedMapTag `!!omap` tag |
| 407 | OrderedMapTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/OrderedMapTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!omap" |
| 408 | // SetTag `!!set` tag |
| 409 | SetTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SetTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!set" |
| 410 | // TimestampTag `!!timestamp` tag |
| 411 | TimestampTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TimestampTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!timestamp" |
| 412 | // BooleanTag `!!bool` tag |
| 413 | BooleanTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BooleanTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!bool" |
| 414 | // MergeTag `!!merge` tag |
| 415 | MergeTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MergeTag. ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword# = "!!merge" |
| 416 | ) |
| 417 | |
| 418 | var ( |
| 419 | // ReservedTagKeywordMap map for reserved tag keywords |
| 420 | ReservedTagKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap. = map[ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword#]func(string, string, *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 421 | IntegerTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/IntegerTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 422 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 423 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 424 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 425 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 426 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 427 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 428 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 429 | } |
| 430 | }, |
| 431 | FloatTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FloatTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 432 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 433 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 434 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 435 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 436 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 437 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 438 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 439 | } |
| 440 | }, |
| 441 | NullTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NullTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 442 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 443 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 444 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 445 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 446 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 447 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 448 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 449 | } |
| 450 | }, |
| 451 | SequenceTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 452 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 453 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 454 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 455 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 456 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 457 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 458 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 459 | } |
| 460 | }, |
| 461 | MappingTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 462 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 463 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 464 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 465 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 466 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 467 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 468 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 469 | } |
| 470 | }, |
| 471 | StringTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/StringTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 472 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 473 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 474 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 475 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 476 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 477 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 478 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 479 | } |
| 480 | }, |
| 481 | BinaryTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BinaryTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 482 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 483 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 484 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 485 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 486 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 487 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 488 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 489 | } |
| 490 | }, |
| 491 | OrderedMapTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/OrderedMapTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 492 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 493 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 494 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 495 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 496 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 497 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 498 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 499 | } |
| 500 | }, |
| 501 | SetTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SetTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 502 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 503 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 504 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 505 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 506 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 507 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 508 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 509 | } |
| 510 | }, |
| 511 | TimestampTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TimestampTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 512 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 513 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 514 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 515 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 516 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 517 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 518 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 519 | } |
| 520 | }, |
| 521 | BooleanTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BooleanTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 522 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 523 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 524 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 525 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 526 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 527 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 528 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 529 | } |
| 530 | }, |
| 531 | MergeTagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MergeTag.: func(valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org. string, posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 532 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 533 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 534 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 535 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 536 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:value., |
| 537 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: orgscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:org., |
| 538 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: posscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap:pos., |
| 539 | } |
| 540 | }, |
| 541 | } |
| 542 | ) |
| 543 | |
| 544 | type NumberTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberType# string |
| 545 | |
| 546 | const ( |
| 547 | NumberTypeDecimalscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeDecimal. NumberTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberType# = "decimal" |
| 548 | NumberTypeBinaryscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeBinary. NumberTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberType# = "binary" |
| 549 | NumberTypeOctetscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeOctet. NumberTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberType# = "octet" |
| 550 | NumberTypeHexscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeHex. NumberTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberType# = "hex" |
| 551 | NumberTypeFloatscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeFloat. NumberTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberType# = "float" |
| 552 | ) |
| 553 | |
| 554 | type NumberValuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue# struct { |
| 555 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue#Type. NumberTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberType# |
| 556 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue#Value. any |
| 557 | Textscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue#Text. string |
| 558 | } |
| 559 | |
| 560 | func ToNumberscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ToNumber().(value string) *NumberValuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue# { |
| 561 | num, err := toNumberscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/toNumber().(value) |
| 562 | if err != nil { |
| 563 | return nil |
| 564 | } |
| 565 | return num |
| 566 | } |
| 567 | |
| 568 | func isNumberscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/isNumber().(value string) bool { |
| 569 | num, err := toNumberscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/toNumber().(value) |
| 570 | if err != nil { |
| 571 | var numErr *strconvscip-go gomod github.com/golang/go/src go1.21.0 strconv/.NumErrorscip-go gomod github.com/golang/go/src go1.21.0 strconv/NumError# |
| 572 | if errorsscip-go gomod github.com/golang/go/src go1.21.0 errors/.Asscip-go gomod github.com/golang/go/src go1.21.0 errors/As().(err, &numErr) && errorsscip-go gomod github.com/golang/go/src go1.21.0 errors/.Isscip-go gomod github.com/golang/go/src go1.21.0 errors/Is().(numErr.Errscip-go gomod github.com/golang/go/src go1.21.0 strconv/NumError#Err., strconvscip-go gomod github.com/golang/go/src go1.21.0 strconv/.ErrRangescip-go gomod github.com/golang/go/src go1.21.0 strconv/ErrRange.) { |
| 573 | return true |
| 574 | } |
| 575 | return false |
| 576 | } |
| 577 | return num != nil |
| 578 | } |
| 579 | |
| 580 | func toNumberscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/toNumber().(value string) (*NumberValuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue#, error) { |
| 581 | if len(value) == 0 { |
| 582 | return nil, nil |
| 583 | } |
| 584 | if stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.HasPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/HasPrefix().(value, "_") { |
| 585 | return nil, nil |
| 586 | } |
| 587 | dotCount := stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.Countscip-go gomod github.com/golang/go/src go1.21.0 strings/Count().(value, ".") |
| 588 | if dotCount > 1 { |
| 589 | return nil, nil |
| 590 | } |
| 591 | |
| 592 | isNegative := stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.HasPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/HasPrefix().(value, "-") |
| 593 | normalized := stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.ReplaceAllscip-go gomod github.com/golang/go/src go1.21.0 strings/ReplaceAll().(stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.TrimPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/TrimPrefix().(stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.TrimPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/TrimPrefix().(value, "+"), "-"), "_", "") |
| 594 | |
| 595 | var ( |
| 596 | typ NumberTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberType# |
| 597 | base int |
| 598 | ) |
| 599 | switch { |
| 600 | case stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.HasPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/HasPrefix().(normalized, "0x"): |
| 601 | normalized = stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.TrimPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/TrimPrefix().(normalized, "0x") |
| 602 | base = 16 |
| 603 | typ = NumberTypeHexscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeHex. |
| 604 | case stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.HasPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/HasPrefix().(normalized, "0o"): |
| 605 | normalized = stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.TrimPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/TrimPrefix().(normalized, "0o") |
| 606 | base = 8 |
| 607 | typ = NumberTypeOctetscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeOctet. |
| 608 | case stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.HasPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/HasPrefix().(normalized, "0b"): |
| 609 | normalized = stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.TrimPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/TrimPrefix().(normalized, "0b") |
| 610 | base = 2 |
| 611 | typ = NumberTypeBinaryscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeBinary. |
| 612 | case stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.HasPrefixscip-go gomod github.com/golang/go/src go1.21.0 strings/HasPrefix().(normalized, "0") && len(normalized) > 1 && dotCount == 0: |
| 613 | base = 8 |
| 614 | typ = NumberTypeOctetscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeOctet. |
| 615 | case dotCount == 1: |
| 616 | typ = NumberTypeFloatscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeFloat. |
| 617 | default: |
| 618 | typ = NumberTypeDecimalscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeDecimal. |
| 619 | base = 10 |
| 620 | } |
| 621 | |
| 622 | text := normalized |
| 623 | if isNegative { |
| 624 | text = "-" + text |
| 625 | } |
| 626 | |
| 627 | var v any |
| 628 | if typ == NumberTypeFloatscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeFloat. { |
| 629 | f, err := strconvscip-go gomod github.com/golang/go/src go1.21.0 strconv/.ParseFloatscip-go gomod github.com/golang/go/src go1.21.0 strconv/ParseFloat().(text, 64) |
| 630 | if err != nil { |
| 631 | return nil, err |
| 632 | } |
| 633 | v = f |
| 634 | } else if isNegative { |
| 635 | i, err := strconvscip-go gomod github.com/golang/go/src go1.21.0 strconv/.ParseIntscip-go gomod github.com/golang/go/src go1.21.0 strconv/ParseInt().(text, base, 64) |
| 636 | if err != nil { |
| 637 | return nil, err |
| 638 | } |
| 639 | v = i |
| 640 | } else { |
| 641 | u, err := strconvscip-go gomod github.com/golang/go/src go1.21.0 strconv/.ParseUintscip-go gomod github.com/golang/go/src go1.21.0 strconv/ParseUint().(text, base, 64) |
| 642 | if err != nil { |
| 643 | return nil, err |
| 644 | } |
| 645 | v = u |
| 646 | } |
| 647 | |
| 648 | return &NumberValuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue#{ |
| 649 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue#Type.: typ, |
| 650 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue#Value.: v, |
| 651 | Textscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue#Text.: text, |
| 652 | }, nil |
| 653 | } |
| 654 | |
| 655 | // This is a subset of the formats permitted by the regular expression |
| 656 | // defined at http://yaml.org/type/timestamp.html. Note that time.Parse |
| 657 | // cannot handle: "2001-12-14 21:59:43.10 -5" from the examples. |
| 658 | var timestampFormatsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/timestampFormats. = []string{ |
| 659 | timescip-go gomod github.com/golang/go/src go1.21.0 time/.RFC3339Nanoscip-go gomod github.com/golang/go/src go1.21.0 time/RFC3339Nano., |
| 660 | "2006-01-02t15:04:05.999999999Z07:00", // RFC3339Nano with lower-case "t". |
| 661 | timescip-go gomod github.com/golang/go/src go1.21.0 time/.DateTimescip-go gomod github.com/golang/go/src go1.21.0 time/DateTime., |
| 662 | timescip-go gomod github.com/golang/go/src go1.21.0 time/.DateOnlyscip-go gomod github.com/golang/go/src go1.21.0 time/DateOnly., |
| 663 | |
| 664 | // Not in examples, but to preserve backward compatibility by quoting time values. |
| 665 | "15:4", |
| 666 | } |
| 667 | |
| 668 | func isTimestampscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/isTimestamp().(value string) bool { |
| 669 | for _, format := range timestampFormatsscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/timestampFormats. { |
| 670 | if _, err := timescip-go gomod github.com/golang/go/src go1.21.0 time/.Parsescip-go gomod github.com/golang/go/src go1.21.0 time/Parse().(format, value); err == nil { |
| 671 | return true |
| 672 | } |
| 673 | } |
| 674 | return false |
| 675 | } |
| 676 | |
| 677 | // IsNeedQuoted checks whether the value needs quote for passed string or not |
| 678 | func IsNeedQuotedscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/IsNeedQuoted().(value string) bool { |
| 679 | if value == "" { |
| 680 | return true |
| 681 | } |
| 682 | if _, exists := reservedEncKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedEncKeywordMap.[value]; exists { |
| 683 | return true |
| 684 | } |
| 685 | if isNumberscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/isNumber().(value) { |
| 686 | return true |
| 687 | } |
| 688 | if value == "-" { |
| 689 | return true |
| 690 | } |
| 691 | first := value[0] |
| 692 | switch first { |
| 693 | case '*', '&', '[', '{', '}', ']', ',', '!', '|', '>', '%', '\'', '"', '@', ' ', '`': |
| 694 | return true |
| 695 | } |
| 696 | last := value[len(value)-1] |
| 697 | switch last { |
| 698 | case ':', ' ': |
| 699 | return true |
| 700 | } |
| 701 | if isTimestampscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/isTimestamp().(value) { |
| 702 | return true |
| 703 | } |
| 704 | for i, c := range value { |
| 705 | switch c { |
| 706 | case '#', '\\': |
| 707 | return true |
| 708 | case ':', '-': |
| 709 | if i+1 < len(value) && value[i+1] == ' ' { |
| 710 | return true |
| 711 | } |
| 712 | } |
| 713 | } |
| 714 | return false |
| 715 | } |
| 716 | |
| 717 | // LiteralBlockHeader detect literal block scalar header |
| 718 | func LiteralBlockHeaderscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/LiteralBlockHeader().(value string) string { |
| 719 | lbc := DetectLineBreakCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DetectLineBreakCharacter().(value) |
| 720 | |
| 721 | switch { |
| 722 | case !stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.Containsscip-go gomod github.com/golang/go/src go1.21.0 strings/Contains().(value, lbc): |
| 723 | return "" |
| 724 | case stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.HasSuffixscip-go gomod github.com/golang/go/src go1.21.0 strings/HasSuffix().(value, fmtscip-go gomod github.com/golang/go/src go1.21.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.21.0 fmt/Sprintf().("%s%s", lbc, lbc)): |
| 725 | return "|+" |
| 726 | case stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.HasSuffixscip-go gomod github.com/golang/go/src go1.21.0 strings/HasSuffix().(value, lbc): |
| 727 | return "|" |
| 728 | default: |
| 729 | return "|-" |
| 730 | } |
| 731 | } |
| 732 | |
| 733 | // New create reserved keyword token or number token and other string token. |
| 734 | func Newscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/New().(value string, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 735 | fn := reservedKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/reservedKeywordMap.[value] |
| 736 | if fn != nil { |
| 737 | return fn(value, org, pos) |
| 738 | } |
| 739 | if num := ToNumberscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ToNumber().(value); num != nil { |
| 740 | tk := &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 741 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: IntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/IntegerType., |
| 742 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeMiscellaneousscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeMiscellaneous., |
| 743 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NotIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NotIndicator., |
| 744 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: value, |
| 745 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 746 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 747 | } |
| 748 | switch num.Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberValue#Type. { |
| 749 | case NumberTypeFloatscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeFloat.: |
| 750 | tk.Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type. = FloatTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FloatType. |
| 751 | case NumberTypeBinaryscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeBinary.: |
| 752 | tk.Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type. = BinaryIntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BinaryIntegerType. |
| 753 | case NumberTypeOctetscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeOctet.: |
| 754 | tk.Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type. = OctetIntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/OctetIntegerType. |
| 755 | case NumberTypeHexscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NumberTypeHex.: |
| 756 | tk.Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type. = HexIntegerTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/HexIntegerType. |
| 757 | } |
| 758 | return tk |
| 759 | } |
| 760 | return Stringscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/String().(value, org, pos) |
| 761 | } |
| 762 | |
| 763 | // Position type for position in YAML document |
| 764 | type Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position# struct { |
| 765 | Linescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#Line. int |
| 766 | Columnscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#Column. int |
| 767 | Offsetscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#Offset. int |
| 768 | IndentNumscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#IndentNum. int |
| 769 | IndentLevelscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#IndentLevel. int |
| 770 | } |
| 771 | |
| 772 | // String position to text |
| 773 | func (p *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) Stringscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#String().() string { |
| 774 | return fmtscip-go gomod github.com/golang/go/src go1.21.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.21.0 fmt/Sprintf().("[level:%d,line:%d,column:%d,offset:%d]", p.IndentLevelscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#IndentLevel., p.Linescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#Line., p.Columnscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#Column., p.Offsetscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#Offset.) |
| 775 | } |
| 776 | |
| 777 | // Token type for token |
| 778 | type Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# struct { |
| 779 | // Type is a token type. |
| 780 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type. Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Type# |
| 781 | // CharacterType is a character type. |
| 782 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType. CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterType# |
| 783 | // Indicator is a indicator type. |
| 784 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator. Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Indicator# |
| 785 | // Value is a string extracted with only meaningful characters, with spaces and such removed. |
| 786 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value. string |
| 787 | // Origin is a string that stores the original text as-is. |
| 788 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin. string |
| 789 | // Error keeps error message for InvalidToken. |
| 790 | Errorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Error. string |
| 791 | // Position is a token position. |
| 792 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position. *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position# |
| 793 | // Next is a next token reference. |
| 794 | Nextscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Next. *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# |
| 795 | // Prev is a previous token reference. |
| 796 | Prevscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Prev. *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# |
| 797 | } |
| 798 | |
| 799 | // PreviousType previous token type |
| 800 | func (t *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#) PreviousTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#PreviousType().() Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Type# { |
| 801 | if t.Prevscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Prev. != nil { |
| 802 | return t.Prevscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Prev..Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type. |
| 803 | } |
| 804 | return UnknownTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/UnknownType. |
| 805 | } |
| 806 | |
| 807 | // NextType next token type |
| 808 | func (t *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#) NextTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#NextType().() Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Type# { |
| 809 | if t.Nextscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Next. != nil { |
| 810 | return t.Nextscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Next..Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type. |
| 811 | } |
| 812 | return UnknownTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/UnknownType. |
| 813 | } |
| 814 | |
| 815 | // AddColumn append column number to current position of column |
| 816 | func (t *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#) AddColumnscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#AddColumn().(col int) { |
| 817 | if t == nil { |
| 818 | return |
| 819 | } |
| 820 | t.Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position..Columnscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#Column. += col |
| 821 | } |
| 822 | |
| 823 | // Clone copy token ( preserve Prev/Next reference ) |
| 824 | func (t *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#) Clonescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Clone().() *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 825 | if t == nil { |
| 826 | return nil |
| 827 | } |
| 828 | copied := *t |
| 829 | if t.Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position. != nil { |
| 830 | pos := *(t.Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.) |
| 831 | copied.Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position. = &pos |
| 832 | } |
| 833 | return &copied |
| 834 | } |
| 835 | |
| 836 | // Dump outputs token information to stdout for debugging. |
| 837 | func (t *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#) Dumpscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Dump().() { |
| 838 | fmtscip-go gomod github.com/golang/go/src go1.21.0 fmt/.Printfscip-go gomod github.com/golang/go/src go1.21.0 fmt/Printf().( |
| 839 | "[TYPE]:%q [CHARTYPE]:%q [INDICATOR]:%q [VALUE]:%q [ORG]:%q [POS(line:column:level:offset)]: %d:%d:%d:%d\n", |
| 840 | t.Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type., t.CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType., t.Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator., t.Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value., t.Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin., t.Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position..Linescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#Line., t.Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position..Columnscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#Column., t.Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position..IndentLevelscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#IndentLevel., t.Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position..Offsetscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#Offset., |
| 841 | ) |
| 842 | } |
| 843 | |
| 844 | // Tokens type of token collection |
| 845 | type Tokensscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tokens# []*Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# |
| 846 | |
| 847 | func (t Tokensscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tokens#) InvalidTokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tokens#InvalidToken().() *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 848 | for _, tt := range t { |
| 849 | if tt.Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type. == InvalidTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/InvalidType. { |
| 850 | return tt |
| 851 | } |
| 852 | } |
| 853 | return nil |
| 854 | } |
| 855 | |
| 856 | func (t *Tokensscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tokens#) addscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tokens#add().(tk *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#) { |
| 857 | tokens := *t |
| 858 | if len(tokens) == 0 { |
| 859 | tokens = append(tokens, tk) |
| 860 | } else { |
| 861 | last := tokens[len(tokens)-1] |
| 862 | last.Nextscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Next. = tk |
| 863 | tk.Prevscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Prev. = last |
| 864 | tokens = append(tokens, tk) |
| 865 | } |
| 866 | *t = tokens |
| 867 | } |
| 868 | |
| 869 | // Add append new some tokens |
| 870 | func (t *Tokensscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tokens#) Addscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tokens#Add().(tks ...*Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#) { |
| 871 | for _, tk := range tks { |
| 872 | t.addscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tokens#add().(tk) |
| 873 | } |
| 874 | } |
| 875 | |
| 876 | // Dump dump all token structures for debugging |
| 877 | func (t Tokensscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tokens#) Dumpscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tokens#Dump().() { |
| 878 | for _, tk := range t { |
| 879 | fmtscip-go gomod github.com/golang/go/src go1.21.0 fmt/.Printscip-go gomod github.com/golang/go/src go1.21.0 fmt/Print().("- ") |
| 880 | tk.Dumpscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Dump().() |
| 881 | } |
| 882 | } |
| 883 | |
| 884 | // String create token for String |
| 885 | func Stringscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/String().(value string, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 886 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 887 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: StringTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/StringType., |
| 888 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeMiscellaneousscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeMiscellaneous., |
| 889 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NotIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NotIndicator., |
| 890 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: value, |
| 891 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 892 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 893 | } |
| 894 | } |
| 895 | |
| 896 | // SequenceEntry create token for SequenceEntry |
| 897 | func SequenceEntryscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEntry().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 898 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 899 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: SequenceEntryTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEntryType., |
| 900 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 901 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: BlockStructureIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BlockStructureIndicator., |
| 902 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(SequenceEntryCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEntryCharacter.), |
| 903 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 904 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 905 | } |
| 906 | } |
| 907 | |
| 908 | // MappingKey create token for MappingKey |
| 909 | func MappingKeyscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingKey().(pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 910 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 911 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: MappingKeyTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingKeyType., |
| 912 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 913 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: BlockStructureIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BlockStructureIndicator., |
| 914 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(MappingKeyCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingKeyCharacter.), |
| 915 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: string(MappingKeyCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingKeyCharacter.), |
| 916 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 917 | } |
| 918 | } |
| 919 | |
| 920 | // MappingValue create token for MappingValue |
| 921 | func MappingValuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingValue().(pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 922 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 923 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: MappingValueTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingValueType., |
| 924 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 925 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: BlockStructureIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BlockStructureIndicator., |
| 926 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(MappingValueCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingValueCharacter.), |
| 927 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: string(MappingValueCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingValueCharacter.), |
| 928 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 929 | } |
| 930 | } |
| 931 | |
| 932 | // CollectEntry create token for CollectEntry |
| 933 | func CollectEntryscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CollectEntry().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 934 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 935 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: CollectEntryTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CollectEntryType., |
| 936 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 937 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: FlowCollectionIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FlowCollectionIndicator., |
| 938 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(CollectEntryCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CollectEntryCharacter.), |
| 939 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 940 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 941 | } |
| 942 | } |
| 943 | |
| 944 | // SequenceStart create token for SequenceStart |
| 945 | func SequenceStartscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceStart().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 946 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 947 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: SequenceStartTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceStartType., |
| 948 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 949 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: FlowCollectionIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FlowCollectionIndicator., |
| 950 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(SequenceStartCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceStartCharacter.), |
| 951 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 952 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 953 | } |
| 954 | } |
| 955 | |
| 956 | // SequenceEnd create token for SequenceEnd |
| 957 | func SequenceEndscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEnd().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 958 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 959 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: SequenceEndTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEndType., |
| 960 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 961 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: FlowCollectionIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FlowCollectionIndicator., |
| 962 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(SequenceEndCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SequenceEndCharacter.), |
| 963 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 964 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 965 | } |
| 966 | } |
| 967 | |
| 968 | // MappingStart create token for MappingStart |
| 969 | func MappingStartscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingStart().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 970 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 971 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: MappingStartTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingStartType., |
| 972 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 973 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: FlowCollectionIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FlowCollectionIndicator., |
| 974 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(MappingStartCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingStartCharacter.), |
| 975 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 976 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 977 | } |
| 978 | } |
| 979 | |
| 980 | // MappingEnd create token for MappingEnd |
| 981 | func MappingEndscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingEnd().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 982 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 983 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: MappingEndTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingEndType., |
| 984 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 985 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: FlowCollectionIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FlowCollectionIndicator., |
| 986 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(MappingEndCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MappingEndCharacter.), |
| 987 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 988 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 989 | } |
| 990 | } |
| 991 | |
| 992 | // Comment create token for Comment |
| 993 | func Commentscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Comment().(value string, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 994 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 995 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: CommentTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CommentType., |
| 996 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 997 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: CommentIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CommentIndicator., |
| 998 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: value, |
| 999 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1000 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1001 | } |
| 1002 | } |
| 1003 | |
| 1004 | // Anchor create token for Anchor |
| 1005 | func Anchorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Anchor().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1006 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1007 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: AnchorTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/AnchorType., |
| 1008 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 1009 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 1010 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(AnchorCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/AnchorCharacter.), |
| 1011 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1012 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1013 | } |
| 1014 | } |
| 1015 | |
| 1016 | // Alias create token for Alias |
| 1017 | func Aliasscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Alias().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1018 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1019 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: AliasTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/AliasType., |
| 1020 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 1021 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 1022 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(AliasCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/AliasCharacter.), |
| 1023 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1024 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1025 | } |
| 1026 | } |
| 1027 | |
| 1028 | // Tag create token for Tag |
| 1029 | func Tagscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Tag().(value string, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1030 | fn := ReservedTagKeywordMapscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeywordMap.[ReservedTagKeywordscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/ReservedTagKeyword#(value)] |
| 1031 | if fn != nil { |
| 1032 | return fn(value, org, pos) |
| 1033 | } |
| 1034 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1035 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: TagTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/TagType., |
| 1036 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 1037 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NodePropertyIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NodePropertyIndicator., |
| 1038 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: value, |
| 1039 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1040 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1041 | } |
| 1042 | } |
| 1043 | |
| 1044 | // Literal create token for Literal |
| 1045 | func Literalscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Literal().(value string, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1046 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1047 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: LiteralTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/LiteralType., |
| 1048 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 1049 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: BlockScalarIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BlockScalarIndicator., |
| 1050 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: value, |
| 1051 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1052 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1053 | } |
| 1054 | } |
| 1055 | |
| 1056 | // Folded create token for Folded |
| 1057 | func Foldedscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Folded().(value string, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1058 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1059 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: FoldedTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/FoldedType., |
| 1060 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 1061 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: BlockScalarIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/BlockScalarIndicator., |
| 1062 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: value, |
| 1063 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1064 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1065 | } |
| 1066 | } |
| 1067 | |
| 1068 | // SingleQuote create token for SingleQuote |
| 1069 | func SingleQuotescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SingleQuote().(value string, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1070 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1071 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: SingleQuoteTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SingleQuoteType., |
| 1072 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 1073 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: QuotedScalarIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/QuotedScalarIndicator., |
| 1074 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: value, |
| 1075 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1076 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1077 | } |
| 1078 | } |
| 1079 | |
| 1080 | // DoubleQuote create token for DoubleQuote |
| 1081 | func DoubleQuotescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DoubleQuote().(value string, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1082 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1083 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: DoubleQuoteTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DoubleQuoteType., |
| 1084 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 1085 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: QuotedScalarIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/QuotedScalarIndicator., |
| 1086 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: value, |
| 1087 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1088 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1089 | } |
| 1090 | } |
| 1091 | |
| 1092 | // Directive create token for Directive |
| 1093 | func Directivescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Directive().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1094 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1095 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: DirectiveTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DirectiveType., |
| 1096 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeIndicator., |
| 1097 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: DirectiveIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DirectiveIndicator., |
| 1098 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(DirectiveCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DirectiveCharacter.), |
| 1099 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1100 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1101 | } |
| 1102 | } |
| 1103 | |
| 1104 | // Space create token for Space |
| 1105 | func Spacescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Space().(pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1106 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1107 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: SpaceTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SpaceType., |
| 1108 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeWhiteSpacescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeWhiteSpace., |
| 1109 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NotIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NotIndicator., |
| 1110 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: string(SpaceCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SpaceCharacter.), |
| 1111 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: string(SpaceCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/SpaceCharacter.), |
| 1112 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1113 | } |
| 1114 | } |
| 1115 | |
| 1116 | // MergeKey create token for MergeKey |
| 1117 | func MergeKeyscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MergeKey().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1118 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1119 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: MergeKeyTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/MergeKeyType., |
| 1120 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeMiscellaneousscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeMiscellaneous., |
| 1121 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NotIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NotIndicator., |
| 1122 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: "<<", |
| 1123 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1124 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1125 | } |
| 1126 | } |
| 1127 | |
| 1128 | // DocumentHeader create token for DocumentHeader |
| 1129 | func DocumentHeaderscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DocumentHeader().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1130 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1131 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: DocumentHeaderTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DocumentHeaderType., |
| 1132 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeMiscellaneousscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeMiscellaneous., |
| 1133 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NotIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NotIndicator., |
| 1134 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: "---", |
| 1135 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1136 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1137 | } |
| 1138 | } |
| 1139 | |
| 1140 | // DocumentEnd create token for DocumentEnd |
| 1141 | func DocumentEndscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DocumentEnd().(org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1142 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1143 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: DocumentEndTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DocumentEndType., |
| 1144 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeMiscellaneousscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeMiscellaneous., |
| 1145 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NotIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NotIndicator., |
| 1146 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: "...", |
| 1147 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1148 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1149 | } |
| 1150 | } |
| 1151 | |
| 1152 | func Invalidscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Invalid().(err string, org string, pos *Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Position#) *Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token# { |
| 1153 | return &Tokenscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#{ |
| 1154 | Typescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Type.: InvalidTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/InvalidType., |
| 1155 | CharacterTypescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#CharacterType.: CharacterTypeInvalidscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/CharacterTypeInvalid., |
| 1156 | Indicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Indicator.: NotIndicatorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/NotIndicator., |
| 1157 | Valuescip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Value.: org, |
| 1158 | Originscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Origin.: org, |
| 1159 | Errorscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Error.: err, |
| 1160 | Positionscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/Token#Position.: pos, |
| 1161 | } |
| 1162 | } |
| 1163 | |
| 1164 | // DetectLineBreakCharacter detect line break character in only one inside scalar content scope. |
| 1165 | func DetectLineBreakCharacterscip-go gomod github.com/goccy/go-yaml . `github.com/goccy/go-yaml/token`/DetectLineBreakCharacter().(src string) string { |
| 1166 | nc := stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.Countscip-go gomod github.com/golang/go/src go1.21.0 strings/Count().(src, "\n") |
| 1167 | rc := stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.Countscip-go gomod github.com/golang/go/src go1.21.0 strings/Count().(src, "\r") |
| 1168 | rnc := stringsscip-go gomod github.com/golang/go/src go1.21.0 strings/.Countscip-go gomod github.com/golang/go/src go1.21.0 strings/Count().(src, "\r\n") |
| 1169 | switch { |
| 1170 | case nc == rnc && rc == rnc: |
| 1171 | return "\r\n" |
| 1172 | case rc > nc: |
| 1173 | return "\r" |
| 1174 | default: |
| 1175 | return "\n" |
| 1176 | } |
| 1177 | } |