Skip to content
Snippets Groups Projects
Commit 987005d4 authored by Henning Glawe's avatar Henning Glawe
Browse files

matchTelemetry: rename name -> matcherName, match_flags -> matchFlags

parent de8001bc
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ class Annotator(object): ...@@ -64,7 +64,7 @@ class Annotator(object):
else: else:
highlighted = minfo['line'] highlighted = minfo['line']
# shorted matcher- and source file names # shorted matcher- and source file names
name = minfo['name'][-self._formatNameWidth:] if minfo['name'] else 'UNNAMED' name = minfo['matcherName'][-self._formatNameWidth:] if minfo['matcherName'] else 'UNNAMED'
defFile = minfo['defFile'][-self._formatSourceWidth:] defFile = minfo['defFile'][-self._formatSourceWidth:]
self.annotateFile.write(self._annotate_format % ( self.annotateFile.write(self._annotate_format % (
defFile, minfo['defLine'], name, defFile, minfo['defLine'], name,
......
...@@ -694,13 +694,13 @@ class CompiledMatcher(object): ...@@ -694,13 +694,13 @@ class CompiledMatcher(object):
'line': line, 'line': line,
'lineNr': parser.fIn.lineNr, 'lineNr': parser.fIn.lineNr,
# information about SimpleMatcher # information about SimpleMatcher
'name': self.matcher.name, 'matcherName': self.matcher.name,
'defFile': self.matcher.defFile, 'defFile': self.matcher.defFile,
'defLine': self.matcher.defLine, 'defLine': self.matcher.defLine,
'matcher_does_nothing': self.matcher.does_nothing, # matcher without effect 'matcher_does_nothing': self.matcher.does_nothing, # matcher without effect
'which_re': 'end' if targetStartEnd else 'start', 'which_re': 'end' if targetStartEnd else 'start',
'match_flags': 0,
# classification of match # classification of match
'matchFlags': 0,
'match': 0, # 0 - no, 1 - partial, 3 - full 'match': 0, # 0 - no, 1 - partial, 3 - full
'coverageIgnore': 0, # 0 - no, 1 - local, 3 - global 'coverageIgnore': 0, # 0 - no, 1 - local, 3 - global
# overall span of match, and spans of group captures # overall span of match, and spans of group captures
...@@ -736,8 +736,8 @@ class CompiledMatcher(object): ...@@ -736,8 +736,8 @@ class CompiledMatcher(object):
else: else:
result['match'] = 1 # partial match result['match'] = 1 # partial match
result['matcher_does_nothing'] = True result['matcher_does_nothing'] = True
result['name'] = 'coverageIgnore' result['matcherName'] = 'coverageIgnore'
result['match_flags'] = ( result['matchFlags'] = (
result['match'] | (result['coverageIgnore'] << 2) | result['match'] | (result['coverageIgnore'] << 2) |
targetStartEnd << 5 | int(result['matcher_does_nothing']) << 6) targetStartEnd << 5 | int(result['matcher_does_nothing']) << 6)
return result return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment