Skip to content

Commit 4f4cbd7

Browse files
committed
2 parents 2b183cb + 48d1b20 commit 4f4cbd7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Rubberduck.Parsing/VBA/ParseCoordinator.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,14 @@ private void ResolveDeclarations(IVBComponent component, IParseTree tree)
771771
}
772772
Logger.Debug("Creating declarations for module {0}.", qualifiedModuleName.Name);
773773

774-
var declarationsListener = new DeclarationSymbolsListener(State, qualifiedModuleName, component.Type, State.GetModuleAnnotations(component), State.GetModuleAttributes(component), projectDeclaration);
774+
var emitter = new Emitter(_state);
775+
string typeName = null;
776+
if (component.Type == ComponentType.Document)
777+
{
778+
//typeName = emitter.ExecuteWithResult<string>(project, emitter.GetTypeNameFunctionBody(component.Name), "GetTypeName");
779+
}
780+
781+
var declarationsListener = new DeclarationSymbolsListener(State, qualifiedModuleName, component.Type, State.GetModuleAnnotations(component), State.GetModuleAttributes(component), projectDeclaration, typeName);
775782
ParseTreeWalker.Default.Walk(declarationsListener, tree);
776783
foreach (var createdDeclaration in declarationsListener.CreatedDeclarations)
777784
{

0 commit comments

Comments
 (0)