Skip to content

Commit

Permalink
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/compiler/crystal/macros.cr
Original file line number Diff line number Diff line change
@@ -610,6 +610,18 @@ module Crystal::Macros
def []=(index : NumberLiteral, value : ASTNode)
end

# Similar to `Array#unshift`.
def unshift : ArrayLiteral
end

# Similar to `Array#push`.
def push(value : ASTNode) : ArrayLiteral
end

# Similar to `Array#<<`.
def <<(value : ASTNode) : ArrayLiteral
end

# Similar to `Array#+`.
def +(other : ArrayLiteral) : ArrayLiteral
end

0 comments on commit fd628c9

Please sign in to comment.