nw::script::Symbol

struct Symbol

Info regarding a particular symbol somewhere in a source file.

Public Members

AstNode *node = nullptr

AstNode if symbol is used in a variable expression.

const Declaration *decl = nullptr

Original declaration.

String comment

Comment on original declaration, in case of functions decl is preferred over definition.

String type

Type of the symbol.

SymbolKind kind

The kind of symbol.

const Nss *provider = nullptr

What script this symbol is from, i.e. “nwscript”.

StringView view

View of declaration.