summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-language-server-inlay-hints.h
blob: 73e6d666319dbc7d5fa4800430b5327c6e57a973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include "../core/slang-basic.h"
#include "slang-ast-all.h"
#include "slang-compiler.h"
#include "slang-syntax.h"
#include "slang-workspace-version.h"
#include "slang.h"

namespace Slang
{

struct InlayHintOptions
{
    bool showDeducedType = false;
    bool showParameterNames = false;
};

List<LanguageServerProtocol::InlayHint> getInlayHints(
    Linkage* linkage,
    Module* module,
    UnownedStringSlice fileName,
    DocumentVersion* doc,
    LanguageServerProtocol::Range range,
    const InlayHintOptions& options);
} // namespace Slang