diff options
| author | Yong He <yonghe@outlook.com> | 2025-05-16 10:42:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-16 10:42:11 -0700 |
| commit | 9dfd5244ad2953753535e82acd05e72e5ab2bc5f (patch) | |
| tree | 0f7c8a0bf4ea3dd25348e1d1ac8e5bfcfd8c9724 /source/slang/slang-ast-modifier.h | |
| parent | 1fd7b2296d8360c245a0c732e7f842876533f92a (diff) | |
Allow lambda exprs without captures to coerce to `functype`. (#7129)
Diffstat (limited to 'source/slang/slang-ast-modifier.h')
| -rw-r--r-- | source/slang/slang-ast-modifier.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-ast-modifier.h b/source/slang/slang-ast-modifier.h index e566eca9e..ac1960685 100644 --- a/source/slang/slang-ast-modifier.h +++ b/source/slang/slang-ast-modifier.h @@ -158,6 +158,14 @@ class SynthesizedModifier : public Modifier FIDDLE(...) }; +// Marks that the definition of a func decl is synthesized static invoke func for +// a lambda that doesn't capture anything. +FIDDLE() +class SynthesizedStaticLambdaFuncModifier : public Modifier +{ + FIDDLE(...) +}; + // Marks a synthesized variable as local temporary variable. FIDDLE() class LocalTempVarModifier : public Modifier |
