Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 53de3cd

Browse files
author
Mikhail Arkhipov
authored
Handle library analysis better (#1246)
1 parent a3c675c commit 53de3cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analysis/Ast/Impl/Values/Scope.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Scope(ScopeStatement node, IScope outerScope, IPythonModule module) {
4242

4343
#region IScope
4444
public string Name => Node?.Name ?? "<global>";
45-
public virtual ScopeStatement Node => Module.GetAstNode<ScopeStatement>(this);
45+
public virtual ScopeStatement Node => Module.GetAstNode<ScopeStatement>(this) ?? Module.GetAst();
4646
public IScope OuterScope { get; }
4747
public IPythonModule Module { get; }
4848

0 commit comments

Comments
 (0)