Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tom Niget
typon
Commits
175ae7bf
Commit
175ae7bf
authored
Aug 11, 2023
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add traceback info for visit_block
parent
5e09cc38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
trans/transpiler/phases/typing/common.py
trans/transpiler/phases/typing/common.py
+4
-0
No files found.
trans/transpiler/phases/typing/common.py
View file @
175ae7bf
...
...
@@ -2,6 +2,7 @@ import ast
from
dataclasses
import
dataclass
,
field
from
typing
import
Dict
,
Optional
from
transpiler.utils
import
highlight
from
transpiler.phases.typing.annotations
import
TypeAnnotationVisitor
from
transpiler.phases.typing.scope
import
Scope
,
ScopeKind
,
VarDecl
from
transpiler.phases.typing.types
import
BaseType
,
TypeVariable
,
TY_NONE
,
TypeType
...
...
@@ -24,6 +25,9 @@ class ScoperVisitor(NodeVisitorSeq):
return
res
def
visit_block
(
self
,
block
:
list
[
ast
.
AST
]):
if
not
block
:
return
TB
=
f"running type analysis on block starting with
{
highlight
(
block
[
0
])
}
"
from
transpiler.phases.typing.block
import
ScoperBlockVisitor
self
.
fdecls
=
[]
for
b
in
block
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment