diff options
| author | Yong He <yonghe@outlook.com> | 2025-06-17 21:36:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-17 21:36:10 -0700 |
| commit | 4d517794eaac7dfe6196e9a36d709d66c5720492 (patch) | |
| tree | a7e65d8307b4e25f2a7bafcc9a2de1666c8b689e /source/slang/slang-ast-print.cpp | |
| parent | b9799e6137fb1d173cefd823521bb70b09ac435a (diff) | |
LanguageServer: Enhance auto completion for override. (#7465)
* Add additional completion keywords.
* LanguageServer: Enhance auto completion for `override`.
Diffstat (limited to 'source/slang/slang-ast-print.cpp')
| -rw-r--r-- | source/slang/slang-ast-print.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source/slang/slang-ast-print.cpp b/source/slang/slang-ast-print.cpp index 7b239c88c..94864b815 100644 --- a/source/slang/slang-ast-print.cpp +++ b/source/slang/slang-ast-print.cpp @@ -1314,16 +1314,14 @@ void ASTPrinter::addGenericParams(const DeclRef<GenericDecl>& genericDeclRef) first = false; { - ScopePart scopePart(this, Part::Type::GenericParamValue); - sb << getText(genericValParam.getName()); - } - - sb << ":"; - - { ScopePart scopePart(this, Part::Type::GenericParamValueType); addType(getType(m_astBuilder, genericValParam)); } + sb << " "; + { + ScopePart scopePart(this, Part::Type::GenericParamValue); + sb << getText(genericValParam.getName()); + } } else if (auto genericTypePackParam = paramDeclRef.as<GenericTypePackParamDecl>()) { |
