We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6258e77 commit d2c76a1Copy full SHA for d2c76a1
src/FromCode/CodeToView.cs
@@ -37,7 +37,7 @@ public CodeToView(SourceCodeFile sourceFile)
37
var syntaxTree = CSharpSyntaxTree.ParseText(File.ReadAllText(sourceFile.CsFile.FullName));
38
var root = syntaxTree.GetRoot();
39
40
- var namespaces = root.DescendantNodes().OfType<NamespaceDeclarationSyntax>().ToArray();
+ var namespaces = root.DescendantNodes().OfType<BaseNamespaceDeclarationSyntax>().ToArray();
41
42
if (namespaces.Length != 1)
43
{
0 commit comments