diff options
Diffstat (limited to 'source/slang/slang-ast-print.cpp')
| -rw-r--r-- | source/slang/slang-ast-print.cpp | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/source/slang/slang-ast-print.cpp b/source/slang/slang-ast-print.cpp index 8900706fa..8547fcda9 100644 --- a/source/slang/slang-ast-print.cpp +++ b/source/slang/slang-ast-print.cpp @@ -14,14 +14,22 @@ ASTPrinter::Part::Kind ASTPrinter::Part::getKind(ASTPrinter::Part::Type type) switch (type) { - case Type::ParamType: return Kind::Type; - case Type::ParamName: return Kind::Name; - case Type::ReturnType: return Kind::Type; - case Type::DeclPath: return Kind::Name; - case Type::GenericParamType: return Kind::Type; - case Type::GenericParamValue: return Kind::Value; - case Type::GenericParamValueType: return Kind::Type; - default: break; + case Type::ParamType: + return Kind::Type; + case Type::ParamName: + return Kind::Name; + case Type::ReturnType: + return Kind::Type; + case Type::DeclPath: + return Kind::Name; + case Type::GenericParamType: + return Kind::Type; + case Type::GenericParamValue: + return Kind::Value; + case Type::GenericParamValueType: + return Kind::Type; + default: + break; } return Kind::None; } |
