• If token is a CST flow or block scalar, determine its string value and a few other attributes. Otherwise, return null.

    Parameters

    • token: FlowScalar | BlockScalar
    • Optionalstrict: boolean
    • OptionalonError: ((offset: number, code: ErrorCode, message: string) => void)
        • (offset, code, message): void
        • Parameters

          Returns void

    Returns {
        comment: string;
        range: Range;
        type: Type | null;
        value: string;
    }

    • comment: string
    • range: Range
    • type: Type | null
    • value: string
  • Parameters

    • token: undefined | null | yaml.CST.Token
    • Optionalstrict: boolean
    • OptionalonError: ((offset: number, code: ErrorCode, message: string) => void)
        • (offset, code, message): void
        • Parameters

          Returns void

    Returns {
        comment: string;
        range: Range;
        type: Type | null;
        value: string;
    } | null