Skip to content

class Crystal::Path
inherits Crystal::ASTNode

A qualified identifier.

const [ '::' const ]*

Class methods

.global(names)

View source

.new(names : Array, global = false)

View source

.new(name : String, global = false)

View source

Methods

#==(other : self)

Returns true if this reference is the same as other. Invokes same?.

#clone_without_location

View source

#global=(global : Bool)

View source

#global? : Bool

View source

#hash(hasher)

#interpret(method : String, args : Array(ASTNode), named_args : Hash(String, ASTNode)?, block : Crystal::Block?, interpreter : Crystal::MacroInterpreter, name_loc : Location?)

View source

#name_size

View source

#names=(names : Array(String))

View source

#raise_undefined_constant(type)

View source

#restriction_of?(other, owner, strict = false)

View source

#restriction_of?(other : Generic, owner, strict = false)

View source

#restriction_of?(other : Union, owner, strict = false)

View source

#restriction_of?(other : Path, owner, strict = false)

View source

#single?(name)

Returns true if this path has a single component with the given name

View source

#syntax_replacement : ASTNode?

View source

#syntax_replacement=(syntax_replacement : ASTNode?)

View source

#target_const : Const?

View source

#target_const=(target_const : Const?)

View source

#target_type : Type?

View source

#target_type=(target_type : Type?)

View source

#to_macro_id

View source

#visibility=(visibility)

View source