chore: initial commit Dutra Store POS app
This commit is contained in:
23
check_parens_detail.py
Normal file
23
check_parens_detail.py
Normal file
@@ -0,0 +1,23 @@
|
||||
with open('D:\\app\\ai\\app-grosir\\lib\\screens\\produk_screen.dart', 'r') as f:
|
||||
lines = f.readlines()
|
||||
|
||||
for i in range(493, 644):
|
||||
line = lines[i]
|
||||
in_string = False
|
||||
escape = False
|
||||
for j, c in enumerate(line):
|
||||
if escape:
|
||||
escape = False
|
||||
continue
|
||||
if c == '\\':
|
||||
escape = True
|
||||
continue
|
||||
if c in "'\"":
|
||||
in_string = not in_string
|
||||
continue
|
||||
if in_string:
|
||||
continue
|
||||
if c == '(':
|
||||
print(f'{i+1}:{j+1} OPEN | {line.rstrip()}')
|
||||
elif c == ')':
|
||||
print(f'{i+1}:{j+1} CLOSE | {line.rstrip()}')
|
||||
Reference in New Issue
Block a user