parent
1e8916f450
commit
cd055efd7d
@ -3507,9 +3507,12 @@ def __get_max_string_length(self, line: Line, string_idx: int) -> int:
|
|||||||
# WMA4 a single space.
|
# WMA4 a single space.
|
||||||
offset += 1
|
offset += 1
|
||||||
|
|
||||||
# WMA4 the lengths of any leaves that came before that space.
|
# WMA4 the lengths of any leaves that came before that space,
|
||||||
for leaf in LL[: p_idx + 1]:
|
# but after any closing bracket before that space.
|
||||||
|
for leaf in reversed(LL[: p_idx + 1]):
|
||||||
offset += len(str(leaf))
|
offset += len(str(leaf))
|
||||||
|
if leaf.type in CLOSING_BRACKETS:
|
||||||
|
break
|
||||||
|
|
||||||
if is_valid_index(string_idx + 1):
|
if is_valid_index(string_idx + 1):
|
||||||
N = LL[string_idx + 1]
|
N = LL[string_idx + 1]
|
||||||
|
@ -349,6 +349,10 @@ def xxxxxxx_xxxxxx(xxxx):
|
|||||||
x.xxxxx.xxxxxx.xxxxx.xxxx,
|
x.xxxxx.xxxxxx.xxxxx.xxxx,
|
||||||
], ("xxxxxxxxxxx xxxxxxx xxxx (xxxxxx xxxx) %x xxx xxxxx" % xxxxxxx_xxxx)
|
], ("xxxxxxxxxxx xxxxxxx xxxx (xxxxxx xxxx) %x xxx xxxxx" % xxxxxxx_xxxx)
|
||||||
|
|
||||||
|
value.__dict__[
|
||||||
|
key
|
||||||
|
] = "test" # set some Thrift field to non-None in the struct aa bb cc dd ee
|
||||||
|
|
||||||
# output
|
# output
|
||||||
|
|
||||||
|
|
||||||
@ -784,3 +788,8 @@ def xxxxxxx_xxxxxx(xxxx):
|
|||||||
], (
|
], (
|
||||||
"xxxxxxxxxxx xxxxxxx xxxx (xxxxxx xxxx) %x xxx xxxxx" % xxxxxxx_xxxx
|
"xxxxxxxxxxx xxxxxxx xxxx (xxxxxx xxxx) %x xxx xxxxx" % xxxxxxx_xxxx
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
value.__dict__[
|
||||||
|
key
|
||||||
|
] = "test" # set some Thrift field to non-None in the struct aa bb cc dd ee
|
||||||
|
Loading…
Reference in New Issue
Block a user