Module: Opal::Parser::DefaultConfig::ClassMethods
- Defined in:
- lib/opal/parser/default_config.rb
Instance Attribute Summary collapse
-
#diagnostics_consumer ⇒ Object
Returns the value of attribute diagnostics_consumer.
Instance Method Summary collapse
Instance Attribute Details
#diagnostics_consumer ⇒ Object
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_parser ⇒ Object
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 |