Beispiel #1
0
        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());
            }
        }
 public override void EnterRaiseEventStmt(VBAParser.RaiseEventStmtContext context)
 {
     _resolver.Resolve(context);
 }
 public void Resolve(VBAParser.RaiseEventStmtContext context)
 {
     ResolveInternal(context.ambiguousIdentifier(), _currentScope);
 }