class Drizzle::AST::TypedIdentifier

Overview

Node class representing an Identifier with a data type. name: type

Defined in:

drizzle/ast/typed_identifier.cr

Constructors

Instance Method Summary

Instance methods inherited from class Drizzle::AST::Identifier

literal : String literal, to_s : String to_s, token : Drizzle::Token token, value : String value

Constructor methods inherited from class Drizzle::AST::Identifier

new(token, value) new

Instance methods inherited from class Drizzle::AST::Node

literal : String literal, to_s : String to_s

Constructor Detail

def self.new(token : Token, value : String, datatype : Identifier) #

[View source]

Instance Method Detail

def datatype : Drizzle::AST::Identifier #

The type that has been given to this identifier. Currently only one typed variables are being handled, no union type handling yet.


[View source]
def to_s : String #

[View source]