class Crystal::Macros::OffsetOf

Overview

An offsetof expression.

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

  • #offset : ASTNode

    Returns the offset argument used in this offsetof expression.

  • #type : ASTNode

    Returns the type that has been used in this offsetof expression.

Instance Method Detail

def offset : ASTNodeSource

Returns the offset argument used in this offsetof expression.

def type : ASTNodeSource

Returns the type that has been used in this offsetof expression.

© 2012–2021 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.2.1/Crystal/Macros/OffsetOf.html