class

Crystal::Macros::ProcNotation

Inherits Crystal::Macros::ASTNode

The type of a proc or block argument, like String -> Int32.

Instance methods

inputs

Returns the argument types, or an empty list if no arguments.

Source
output

Returns the output type, or nil if there is no return type.

Source
resolve

Resolves this proc notation to a TypeNode if it denotes a type, or otherwise gives a compile-time error.

Source
resolve?

Resolves this proc notation to a TypeNode if it denotes a type, or otherwise returns a NilLiteral.

Source