ScalarAnalysis

constructor(scalar: String, empty: Boolean, multiline: Boolean, allowFlowPlain: Boolean, allowBlockPlain: Boolean, allowSingleQuoted: Boolean, allowBlock: Boolean)

Parameters

scalar
  • the scalar to be analysed

empty
  • true for empty scalar

multiline
  • true if it may take many lines

allowFlowPlain
  • true if can be plain in flow context

allowBlockPlain
  • true if can be plain in block context

allowSingleQuoted
  • true if single quotes are allowed

allowBlock
  • true when block style is allowed for this scalar