class Ameba::AST::Reference

Overview

Represents a reference to the variable. It behaves like a variable is used to distinguish a the variable from its reference.

Defined in:

ameba/ast/variabling/reference.cr

Instance Method Summary

Instance methods inherited from class Ameba::AST::Variable

assign(node, scope) assign, assign_before_reference : Crystal::ASTNode | Nil assign_before_reference, assignments : Array(Ameba::AST::Assignment) assignments, captured_by_block?(scope = @scope) captured_by_block?, declared_before?(node) declared_before?, end_location(*args, **options)
end_location(*args, **options, &)
end_location
, eql?(node) eql?, ignored? ignored?, location(*args, **options)
location(*args, **options, &)
location
, name(*args, **options)
name(*args, **options, &)
name
, node : Crystal::Var node, reference(node : Crystal::Var, scope : Scope)
reference(scope : Scope)
reference
, reference_assignments! reference_assignments!, referenced? referenced?, references : Array(Ameba::AST::Reference) references, scope : Scope scope, special? special?, target_of?(assign) target_of?, to_s(*args, **options)
to_s(*args, **options, &)
to_s
, used_in_macro?(scope = @scope) used_in_macro?

Constructor methods inherited from class Ameba::AST::Variable

new(node : Crystal::Var, scope : Ameba::AST::Scope) new

Instance Method Detail

def explicit=(explicit : Bool) #

[View source]
def explicit? : Bool #

[View source]