slang/ast/Lookup.h file

Symbol lookup logic.

Namespaces

namespace slang
Root namespace.
namespace slang::ast
The SystemVerilog AST.

Classes

class slang::ast::LookupLocation
This type denotes the ordering of symbols within a particular scope, for the purposes of determining whether a found symbol is visible compared to the given location.
struct slang::ast::LookupResult
A structure that contains the results of a name lookup operation.
struct slang::ast::LookupResult::MemberSelector
A structure that represents a selection of a single member from the resulting symbol found during a lookup operation.
class slang::ast::Lookup
Centralized functionality for looking up symbols by name in the AST.

Enums

enum class LookupFlags { None = 0, Type = 1 << 0, AllowDeclaredAfter = 1 << 1, DisallowWildcardImport = 1 << 2, NoUndeclaredError = 1 << 3, NoUndeclaredErrorIfUninstantiated = 1 << 4, AllowIncompleteForwardTypedefs = 1 << 5, NoParentScope = 1 << 6, NoSelectors = 1 << 7, AllowRoot = 1 << 8, IfacePortConn = 1 << 9, StaticInitializer = 1 << 10, TypeReference = 1 << 11, AlwaysAllowUpward = 1 << 12, ForceHierarchical = AllowDeclaredAfter | NoUndeclaredErrorIfUninstantiated }
Additional modifiers for a lookup operation.
enum class LookupResultFlags: uint8_t { None = 0, WasImported = 1 << 0, IsHierarchical = 1 << 1, SuppressUndeclared = 1 << 2, FromTypeParam = 1 << 3, FromForwardTypedef = 1 << 4 }
Flags that indicate additional details about the result of a lookup operation.