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

Commit 9eecb28

Browse files
committed
fixed processing of @abc's decorators
1 parent 7832170 commit 9eecb28

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/Analysis/Engine/Impl/Analyzer/FunctionAnalysisUnit.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ private bool ProcessAbstractDecorators(IAnalysisSet decorator) {
101101

102102
// Only handle these if they are specialized
103103
foreach (var d in decorator.OfType<SpecializedCallable>()) {
104-
if (d.DeclaringModule?.ModuleName != "abc") {
104+
if (d.DeclaringModule != null
105+
&& d.DeclaringModule.ModuleName != "abc") {
105106
continue;
106107
}
107108

src/Analysis/Engine/Impl/Values/SpecializedNamespace.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,15 @@ public override IEnumerable<ILocationInfo> Locations {
217217
}
218218
}
219219

220+
public override string Name {
221+
get {
222+
if (_original == null)
223+
return base.Name;
224+
225+
return _original.Name;
226+
}
227+
}
228+
220229
public override IEnumerable<OverloadResult> Overloads {
221230
get {
222231
if (_original == null) {

0 commit comments

Comments
 (0)