This project is read-only.
1
Vote

Semantic model for VB Script document chokes on top-level method

description

In a VB Script-type editor, create a top-level function (not in any class).

The language services will choke on http://source.roslyn.codeplex.com/#Microsoft.CodeAnalysis.VisualBasic/Compilation/SyntaxTreeSemanticModel.vb,989 because GetMembers() returns an empty sequence.
The parent of such a MethodBlockSyntax is the CompilationUnit itself.

You can try this in VSEmbed; select Basic from the second dropdown list.

comments

SSL wrote Nov 23, 2014 at 8:23 PM

In different contexts (VSEmbed vs. projection buffers in VS), I've seen the exception when typing the method in the first place, and when showing quick info on mouseover.