Class Pattern

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class seq::Pattern : public seq::SrcObject

Pattern class representing patterns used in match statements.

Subclassed by seq::ArrayPattern, seq::BoolPattern, seq::BoundPattern, seq::GuardedPattern, seq::IntPattern, seq::OptPattern, seq::OrPattern, seq::RangePattern, seq::RecordPattern, seq::SeqPattern, seq::StarPattern, seq::StrPattern, seq::Wildcard

Public Functions

Pattern(types::Type *type)
void setTryCatch(TryCatch *tc)
TryCatch *getTryCatch()
void resolveTypes(types::Type *type)
llvm::Value *codegen(BaseFunc *base, types::Type *type, llvm::Value *val, llvm::BasicBlock *&block) = 0
bool isCatchAll()
Pattern *clone(Generic *ref)