A scoped name: sequence of identifiers.
More...
#include <ScopedName.h>
|
bool | from_root |
| true if it is a root-scoped name, i.e. started from "::".
|
|
A scoped name: sequence of identifiers.
Definition at line 39 of file ScopedName.h.
◆ ScopedName() [1/4]
AST::ScopedName::ScopedName |
( |
const Location & |
loc | ) |
|
|
inline |
Create empty name with location.
- Parameters
-
Definition at line 57 of file ScopedName.h.
◆ ScopedName() [2/4]
Create single-element name.
- Parameters
-
loc | Location. |
root | true if it is a root-scoped name, i.e. started from "::". |
name | The name. |
◆ ScopedName() [3/4]
Create single-element name.
- Parameters
-
loc | Location. |
root | true if it is a root-scoped name, i.e. started from "::". |
name | The name. |
◆ ScopedName() [4/4]
AST::ScopedName::ScopedName |
( |
const Location & |
loc, |
|
|
bool |
root, |
|
|
std::initializer_list< const char * > |
names |
|
) |
| |
|
inline |
Create multi-element name.
- Parameters
-
loc | Location. |
root | true if it is a root-scoped name, i.e. started from "::". |
names | Name components. |
Definition at line 81 of file ScopedName.h.
◆ stringize()
std::string AST::ScopedName::stringize |
( |
| ) |
const |
- Returns
- The name converted to string.
◆ operator==()
bool AST::ScopedName::operator== |
( |
const ScopedName & |
rhs | ) |
const |
|
inlinenoexcept |
Test for equality.
- Parameters
-
- Returns
true
if the names are equal.
Definition at line 107 of file ScopedName.h.
The documentation for this struct was generated from the following file: