Skip to content

Collect UnvalidatedDeclsWithOpaqueReturnTypes in ASTGen #76528

Open
@rintaro

Description

@rintaro

Motivation

The current C++ parser collects UnvalidatedDeclsWithOpaqueReturnTypes, ASTGen also needs to collect these in order to adopt SwiftParser as the main parser.

Proposed solution

Collect UnvalidatedDeclsWithOpaqueReturnTypes as needed in ASTGen by calling SourceFile::addUnvalidatedDeclWithOpaqueResultType(ValueDecl *) as the current C++ parser does.

Alternatives considered

Implement this as a separate RequestEvaluator request on SourceFile, but UnvalidatedDeclsWithOpaqueReturnTypes is mutable at this point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ASTGenArea → compiler: The ASTGen module, which translates SwiftSyntax trees to the C++ ASTfeatureA feature request or implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions