Skip to content

Commit d2c76a1

Browse files
committed
fix #308
1 parent 6258e77 commit d2c76a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FromCode/CodeToView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public CodeToView(SourceCodeFile sourceFile)
3737
var syntaxTree = CSharpSyntaxTree.ParseText(File.ReadAllText(sourceFile.CsFile.FullName));
3838
var root = syntaxTree.GetRoot();
3939

40-
var namespaces = root.DescendantNodes().OfType<NamespaceDeclarationSyntax>().ToArray();
40+
var namespaces = root.DescendantNodes().OfType<BaseNamespaceDeclarationSyntax>().ToArray();
4141

4242
if (namespaces.Length != 1)
4343
{

0 commit comments

Comments
 (0)