diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-23 11:25:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-23 11:25:51 -0700 |
| commit | c9df734b836a503dbc09c48bfd54b35facd0f105 (patch) | |
| tree | 165ecf9668e2f25d71e4327dd24c5de7dfd698dc /source/slang/slang-check-impl.h | |
| parent | a23adc221b1ea26db3f3313226b629eb9e308b0f (diff) | |
Allow anonymous struct. (#3822)
Diffstat (limited to 'source/slang/slang-check-impl.h')
| -rw-r--r-- | source/slang/slang-check-impl.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/slang/slang-check-impl.h b/source/slang/slang-check-impl.h index b928a39f0..392d78c5a 100644 --- a/source/slang/slang-check-impl.h +++ b/source/slang/slang-check-impl.h @@ -1208,6 +1208,10 @@ namespace Slang ensureDecl(declRef->getDecl(), state); } + void ensureAllDeclsRec( + Decl* decl, + DeclCheckState state); + /// Helper routine allowing `ensureDecl` to be used on a `DeclBase` /// /// `DeclBase` is the base clas of `Decl` and `DeclGroup`. When @@ -1516,7 +1520,8 @@ namespace Slang Modifier* checkModifier( Modifier* m, - ModifiableSyntaxNode* syntaxNode); + ModifiableSyntaxNode* syntaxNode, + bool ignoreUnallowedModifier); void checkModifiers(ModifiableSyntaxNode* syntaxNode); void checkVisibility(Decl* decl); @@ -2735,4 +2740,9 @@ namespace Slang DeclVisibility getDeclVisibility(Decl* decl); void diagnoseCapabilityProvenance(DiagnosticSink* sink, Decl* decl, CapabilityAtom missingAtom); + + void _ensureAllDeclsRec( + SemanticsDeclVisitorBase* visitor, + Decl* decl, + DeclCheckState state); } |
