Skip to content

class Crystal::VisibilityModifier
inherits Crystal::ASTNode

Class methods

.new(modifier : Visibility, exp)

View source

Methods

#==(other : self)

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

#accept_children(visitor)

View source

#clone_without_location

View source

#doc : String?

Returns the doc comment attached to this node. Not every node supports having doc comments, so by default this returns nil.

View source

#doc=(doc : String?)

View source

#exp=(exp : ASTNode)

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

#modifier : Visibility

View source

#modifier=(modifier : Visibility)

View source