示例#1
0
    private void AddMethodCall(SyntaxNode node, Method clientMethod, Method referencedEntity)
    {
        Invocation invocation = importer.CreateNewAssociation <Invocation>("FAMIX.Invocation");

        invocation.sender = clientMethod;
        invocation.AddCandidate(referencedEntity);
        invocation.signature = node.Span.ToString();
        //invocation.receiver = referencedEntity;
        clientMethod.AddOutgoingInvocation(invocation);
        referencedEntity.AddIncomingInvocation(invocation);
        importer.CreateSourceAnchor(invocation, node);
    }