- resolveAsScalar(token, strict?, onError?): {
comment: string;
range: Range;
type: Type | null;
value: string;
} Parameters
- token: FlowScalar | BlockScalar
Optional
strict: booleanOptional
onError: ((offset: number, code: ErrorCode, message: string) => void)- (offset, code, message): void
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: booleanOptional
onError: ((offset: number, code: ErrorCode, message: string) => void)- (offset, code, message): void
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
.