mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 21:34:32 +08:00
Make end_pos public for syntax issues
This commit is contained in:
@@ -119,7 +119,6 @@ class NormalizerConfig(object):
|
|||||||
|
|
||||||
class Issue(object):
|
class Issue(object):
|
||||||
def __init__(self, node, code, message):
|
def __init__(self, node, code, message):
|
||||||
self._node = node
|
|
||||||
self.code = code
|
self.code = code
|
||||||
"""
|
"""
|
||||||
An integer code that stands for the type of error.
|
An integer code that stands for the type of error.
|
||||||
@@ -133,6 +132,7 @@ class Issue(object):
|
|||||||
The start position position of the error as a tuple (line, column). As
|
The start position position of the error as a tuple (line, column). As
|
||||||
always in |parso| the first line is 1 and the first column 0.
|
always in |parso| the first line is 1 and the first column 0.
|
||||||
"""
|
"""
|
||||||
|
self.end_pos = node.end_pos
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return self.start_pos == other.start_pos and self.code == other.code
|
return self.start_pos == other.start_pos and self.code == other.code
|
||||||
|
|||||||
Reference in New Issue
Block a user