public void Resolve(VBAParser.RaiseEventStmtContext context) { var eventDeclaration = _bindingService.ResolveEvent(_moduleDeclaration, context.identifier().GetText()); if (eventDeclaration != null) { var callSiteContext = context.identifier(); var identifier = Identifier.GetName(context.identifier()); var callee = eventDeclaration; callee.AddReference( _qualifiedModuleName, _currentScope, _currentParent, callSiteContext, identifier, callee, callSiteContext.GetSelection(), _annotationService.FindAnnotations(_qualifiedModuleName, callSiteContext.GetSelection().StartLine)); } if (context.eventArgumentList() == null) { return; } foreach (var eventArgument in context.eventArgumentList().eventArgument()) { ResolveDefault(eventArgument.expression()); } }