Class: Bake::TaskingLinkerErrorParser
- Inherits:
-
ErrorParser
- Object
- ErrorParser
- Bake::TaskingLinkerErrorParser
- Defined in:
- lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
Constant Summary
Constants inherited from ErrorParser
ErrorParser::SEVERITY_ERROR, ErrorParser::SEVERITY_INFO, ErrorParser::SEVERITY_OK, ErrorParser::SEVERITY_WARNING
Instance Method Summary collapse
-
#initialize ⇒ TaskingLinkerErrorParser
constructor
A new instance of TaskingLinkerErrorParser.
- #scan_lines(consoleOutput, proj_dir) ⇒ Object
Methods inherited from ErrorParser
#get_severity, #get_tasking_severity, #inv_severity, #makeVsError, #scan
Constructor Details
#initialize ⇒ TaskingLinkerErrorParser
Returns a new instance of TaskingLinkerErrorParser.
6 7 8 |
# File 'lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb', line 6 def initialize() @error_expression = /.* (.+): (.*)/ end |
Instance Method Details
#scan_lines(consoleOutput, proj_dir) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb', line 10 def scan_lines(consoleOutput, proj_dir) res = [] consoleOutput[0].each_line do |l| l.rstrip! d = ErrorDesc.new scan_res = l.scan(@error_expression) if scan_res.length > 0 d.file_name = proj_dir d.line_number = 0 d. = scan_res[0][1] d.severity = get_tasking_severity(scan_res[0][0]) end res << d end [res, consoleOutput[0]] end |