Module: Opal::Parser::DefaultConfig::ClassMethods

Defined in:
lib/opal/parser/default_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#diagnostics_consumerObject

Returns the value of attribute diagnostics_consumer.



7
8
9
# File 'lib/opal/parser/default_config.rb', line 7

def diagnostics_consumer
  @diagnostics_consumer
end

Instance Method Details

#default_parserObject



9
10
11
12
13
14
15
# File 'lib/opal/parser/default_config.rb', line 9

def default_parser
  parser = super
  parser.diagnostics.all_errors_are_fatal = true
  parser.diagnostics.ignore_warnings      = false
  parser.diagnostics.consumer             = diagnostics_consumer
  parser
end