hack for issue_435

pull/1/head
Rich Piazza 2020-07-25 14:22:03 -04:00
parent bcd3eb3e4b
commit 0fc2befd6a
1 changed files with 3 additions and 0 deletions

View File

@ -259,6 +259,9 @@ class STIXPatternVisitorForSTIX2():
if isinstance(next, TerminalNode): if isinstance(next, TerminalNode):
property_path.append(self.instantiate("ListObjectPathComponent", current.property_name, next.getText())) property_path.append(self.instantiate("ListObjectPathComponent", current.property_name, next.getText()))
i += 2 i += 2
if isinstance(next, IntegerConstant):
property_path.append(self.instantiate("ListObjectPathComponent", current.property_name, next.value))
i += 2
else: else:
property_path.append(current) property_path.append(current)
i += 1 i += 1