class

Syntax::Generic

Inherits Syntax::ASTNode < Reference < Object

Constructors

new(name : Syntax::ASTNode, type_vars : Array, named_args : Nil | Array(Syntax::NamedArgument) = nil, suffix : Syntax::Generic::Suffix = Suffix::None)
Source
new(name, type_var : ASTNode)
Source

Instance methods

==(other : self)

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

accept_children(visitor)
Source
clone_without_location
Source
hash(hasher)

See Object#hash(hasher)

name

Usually a Path, but can also be a TypeNode in the case of a custom array/hash-like literal.

Source
name=(name : ASTNode)

Usually a Path, but can also be a TypeNode in the case of a custom array/hash-like literal.

Source
named_args
Source
named_args=(named_args : Array(NamedArgument) | Nil)
Source
suffix
Source
suffix=(suffix : Suffix)
Source
type_vars
Source
type_vars=(type_vars : Array(ASTNode))
Source

Nested types