Skip to content

Disjunct

struct Athena::Serializer::ExclusionStrategies::Disjunct
inherits Struct

Wraps an Array(ASR::ExclusionStrategies::ExclusionStrategyInterface), excluding a property if any member skips it.

Used internally to allow multiple exclusion strategies to be used within a single instance variable for ASR::Context#add_exclusion_strategy.

Included modules

Athena::Serializer::ExclusionStrategies::ExclusionStrategyInterface

Class methods

Methods

#members : Array(ASR::ExclusionStrategies::ExclusionStrategyInterface)

The wrapped exclusion strategies.

#skip_property?(metadata : ASR::PropertyMetadataBase, context : ASR::Context) : Bool

Returns true if a property should NOT be (de)serialized.