RubyExternalScannerState constructor

RubyExternalScannerState({
  1. bool hasLeadingWhitespace = false,
  2. List<RubyLiteral>? literalStack,
  3. List<RubyHeredoc>? openHeredocs,
})

Implementation

RubyExternalScannerState({
  this.hasLeadingWhitespace = false,
  List<RubyLiteral>? literalStack,
  List<RubyHeredoc>? openHeredocs,
}) : literalStack = literalStack ?? <RubyLiteral>[],
     openHeredocs = openHeredocs ?? <RubyHeredoc>[];