Skip to content

Improve analysis capability for partial methods (C#) #48

@mkrueger

Description

@mkrueger
using System.Diagnostics;

partial class Test
{
    partial void FooBar();
}

partial class Test
{
    public void Foo()
    {
        FooBar();
    }
}

When analyzing the FooBar(); invocation there is no way to find out that FooBar(); has no body.

method.PartialDefinitionPart == null and method.PartialImplementationPart == null

ATM I would expect that PartialDefinitionPart != null and PartialImplementationPart == null in the case above. It would be nice if there would be a flag to flag partial methods.

If that's all too c# specific a ICSharpSourceMethod interface would solve that issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-AnalyzersArea-CompilersConcept-APIThis issue involves adding, removing, clarification, or modification of an API.Feature RequestResolution-AnsweredThe question has been answeredVerifiedhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions