https://github.com/shader-slang/slang
Raw File
Tip revision: 5902acdabc4445a65741a7a6a3a95f223e301059 authored by Yong He on 23 January 2024, 07:19:40 UTC
[LSP] Fetch configs directly from didConfigurationChanged message. (#3478)
Tip revision: 5902acd
slang-ast-dump.h
// slang-ast-dump.h
#ifndef SLANG_AST_DUMP_H
#define SLANG_AST_DUMP_H

#include "slang-syntax.h"

#include "slang-emit-source-writer.h"

namespace Slang
{

struct ASTDumpAccess;

struct ASTDumpUtil
{
    enum class Style
    {
        Hierachical,
        Flat,
    };

    typedef uint32_t Flags;
    struct Flag
    {
        enum Enum : Flags
        {
            HideSourceLoc = 0x1,
            HideScope     = 0x2,
        };
    };

    static void dump(NodeBase* node, Style style, Flags flags, SourceWriter* writer);
};

} // namespace Slang

#endif
back to top