Module: ANTLR3::Test::CollectErrors

Defined in:
lib/antlr3/test/functional.rb

Instance Method Summary collapse

Instance Method Details

#emit_error_message(msg) ⇒ Object



226
227
228
# File 'lib/antlr3/test/functional.rb', line 226

def emit_error_message( msg )
  reported_errors << msg
end

#reported_errorsObject



221
222
223
224
# File 'lib/antlr3/test/functional.rb', line 221

def reported_errors
  defined?( @reported_errors ) or @reported_errors = []
  return @reported_errors
end