• 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
    • Optional strict: boolean
    • Optional onError: ((offset, code, message) => 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
    • Optional strict: boolean
    • Optional onError: ((offset, code, message) => void)
        • (offset, code, message): void
        • Parameters

          Returns void

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

Generated using TypeDoc