| 1 | /* |
| 2 | Copyright 2023 The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package yamlscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/ |
| 18 | |
| 19 | // yaml_emitter_increase_indent preserves the original signature and delegates to |
| 20 | // yaml_emitter_increase_indent_compact without compact-sequence indentation |
| 21 | func yaml_emitter_increase_indentscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/yaml_emitter_increase_indent().(emitter *yaml_emitter_tscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/yaml_emitter_t#, flow, indentless bool) bool { |
| 22 | return yaml_emitter_increase_indent_compactscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/yaml_emitter_increase_indent_compact().(emitter, flow, indentless, false) |
| 23 | } |
| 24 | |
| 25 | // CompactSeqIndent makes it so that '- ' is considered part of the indentation. |
| 26 | func (e *Encoderscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/Encoder#) CompactSeqIndentscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/Encoder#CompactSeqIndent().() { |
| 27 | e.encoderscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/Encoder#encoder..emitterscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/encoder#emitter..compact_sequence_indentscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/yaml_emitter_t#compact_sequence_indent. = true |
| 28 | } |
| 29 | |
| 30 | // DefaultSeqIndent makes it so that '- ' is not considered part of the indentation. |
| 31 | func (e *Encoderscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/Encoder#) DefaultSeqIndentscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/Encoder#DefaultSeqIndent().() { |
| 32 | e.encoderscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/Encoder#encoder..emitterscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/encoder#emitter..compact_sequence_indentscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/yaml_emitter_t#compact_sequence_indent. = false |
| 33 | } |
| 34 | |
| 35 | // yaml_emitter_process_line_comment preserves the original signature and delegates to |
| 36 | // yaml_emitter_process_line_comment_linebreak passing false for linebreak |
| 37 | func yaml_emitter_process_line_commentscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/yaml_emitter_process_line_comment().(emitter *yaml_emitter_tscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/yaml_emitter_t#) bool { |
| 38 | return yaml_emitter_process_line_comment_linebreakscip-go gomod sigs.k8s.io/yaml . `sigs.k8s.io/yaml/goyaml.v3`/yaml_emitter_process_line_comment_linebreak().(emitter, false) |
| 39 | } |