Skip to content

Commit 784a729

Browse files
refactor: Add a docstring
1 parent ad2705e commit 784a729

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parser/typecheck/typecheck.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ class ParamInfo:
120120
class Scope:
121121
declared: dict[str, NameInfo] = field(default_factory=dict)
122122
used: dict[str, NameInfo] = field(default_factory=dict)
123-
# Add references to outer scopes' variables that we use
123+
"""Add references to outer scopes' variables that we use.
124+
(so type codegen/type-checker knows what each AstIdent refers to)"""
124125

125126

126127
class NameResolutionError(BaseLocatedError):

0 commit comments

Comments
 (0)