The string representation of the value, which will have its content properly indented.
Optional
end?: SourceToken[]Comments and whitespace after the end of the value, or after the block scalar header. If undefined, a newline will be added.
Optional
implicitBeing within an implicit key may affect the resolved type of the token's value.
Optional
inIs this scalar within a flow collection? This may affect the resolved type of the token's value.
The indent level of the token.
Optional
offset?: numberThe offset position of the token.
Optional
type?: TypeThe preferred type of the scalar token. If undefined, the previous type of the token
will be used, defaulting to 'PLAIN'
.
Create a new scalar token with
value
Values that represent an actual string but may be parsed as a different type should use a
type
other than'PLAIN'
, as this function does not support any schema operations and won't check for such conflicts.