Skip to content

Ensure AbstractFlowPass<,> is always constructed with a non-null CSharpCompilation instance #59111

@cston

Description

@cston

There are code paths in AbstractFlowPass<,> and derived classes that assume (or should be able to assume) AbstractFlowPass<,>.compilation is non-null, although that is not always the case.

See #59093.

See also DefiniteAssignment.GetSourceAssembly() which could be simplified to => compilation.SourceAssembly (see #59069 (comment)).

Update callers to ensure AbstractFlowPass<,> is always constructed with a non-null CSharpCompilation instance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions