You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
rintaro
added
feature
A feature request or implementation
triage needed
This issue needs more specific labels
ASTGen
Area → compiler: The ASTGen module, which translates SwiftSyntax trees to the C++ AST
labels
Sep 17, 2024
Motivation
The current C++ parser collects
UnvalidatedDeclsWithOpaqueReturnTypes
,ASTGen
also needs to collect these in order to adoptSwiftParser
as the main parser.Proposed solution
Collect
UnvalidatedDeclsWithOpaqueReturnTypes
as needed in ASTGen by callingSourceFile::addUnvalidatedDeclWithOpaqueResultType(ValueDecl *)
as the current C++ parser does.Alternatives considered
Implement this as a separate
RequestEvaluator
request on SourceFile, butUnvalidatedDeclsWithOpaqueReturnTypes
is mutable at this point.The text was updated successfully, but these errors were encountered: