- resolveAsScalar(token, strict?, onError?): {
comment: string;
range: Range;
type: Type | null;
value: string;
} Parameters
Optional
strict: boolean
Optional
onError: ((offset, code, message) => void)
- (offset, code, message): void
Parameters
offset: number
message: string
Returns void
Returns {
comment: string;
range: Range;
type: Type | null;
value: string;
}
comment: string
type: Type | null
value: string
- resolveAsScalar(token, strict?, onError?): {
comment: string;
range: Range;
type: Type | null;
value: string;
} | null Parameters
token: undefined | null | yaml.CST.Token
Optional
strict: boolean
Optional
onError: ((offset, code, message) => void)
- (offset, code, message): void
Parameters
offset: number
message: string
Returns void
Returns {
comment: string;
range: Range;
type: Type | null;
value: string;
} | null
If
token
is a CST flow or block scalar, determine its string value and a few other attributes. Otherwise, returnnull
.