ScalarAnalysis

class ScalarAnalysis(val scalar: String, val empty: Boolean, val multiline: Boolean, val allowFlowPlain: Boolean, val allowBlockPlain: Boolean, val allowSingleQuoted: Boolean, val allowBlock: Boolean)

Accumulate information to choose the scalar style

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

Constructors

Link copied to clipboard
constructor(scalar: String, empty: Boolean, multiline: Boolean, allowFlowPlain: Boolean, allowBlockPlain: Boolean, allowSingleQuoted: Boolean, allowBlock: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard