Identifier

class Identifier(val path: Array<String>, val namespace: String?)

Represents an identifier for an object.

When used in declarations such as NssFunction, VariableDeclaration, Struct, namespace should be null, and path should be of size 1.

Constructors

Link copied to clipboard
fun Identifier(path: Array<String>, namespace: String?)

Properties

Link copied to clipboard
val hasNamespace: Boolean

whether a namespace exists for this identifier. If it does not, then the current namespace should be used.

Link copied to clipboard
val isStructMember: Boolean

whether the identifier refers to a member of a struct instance or a top-level object.

Link copied to clipboard
val namespace: String?

the namespace in which to look for the object represented by this identifier.

Link copied to clipboard
val path: Array<String>

the nested path that this identifier refers to, where each element is a member of the object identified by the preceding strings.