class Crystal::SymbolLiteralType inherits Crystal::LiteralType ¶ Type for a symbol literal: it has the specific type of the symbol literal (SymbolType) but can also match enums if their members match the symbol's name. Class methods¶ .new(program, literal) ¶ View source Methods¶ #compatible_with?(type) ¶ View source #literal : SymbolLiteral ¶ The literal associated with this type View source #restrict(other, context) ¶ View source #to_s_with_options(io : IO, skip_union_parens : Bool = false, generic_args : Bool = true, codegen : Bool = false) : Nil ¶ View source