Class: MilkTea::Types::Base
- Inherits:
-
Object
- Object
- MilkTea::Types::Base
show all
- Defined in:
- lib/milk_tea/core/types/types.rb
Direct Known Subclasses
AttributeHandle, CallableHandle, Dyn, DynVtable, EnumBase, Error, Event, FieldHandle, Function, GenericInstance, GenericStructDefinition, GenericVariantDefinition, Handle, LifetimeRef, Matrix, MemberHandle, Null, Nullable, Opaque, Primitive, Proc, Quaternion, ReflectionHandleType, Simd, SoA, Span, StringView, Struct, StructHandle, Subscription, Task, Tuple, TypeType, TypeVar, Variant, Vector
Instance Method Summary
collapse
Instance Method Details
#accept(visitor) ⇒ Object
56
57
58
|
# File 'lib/milk_tea/core/types/types.rb', line 56
def accept(visitor)
visitor.visit(self)
end
|
#bitwise? ⇒ Boolean
20
21
22
|
# File 'lib/milk_tea/core/types/types.rb', line 20
def bitwise?
false
end
|
#boolean? ⇒ Boolean
36
37
38
|
# File 'lib/milk_tea/core/types/types.rb', line 36
def boolean?
false
end
|
#children ⇒ Object
52
53
54
|
# File 'lib/milk_tea/core/types/types.rb', line 52
def children
[]
end
|
#field_c_name(name) ⇒ Object
48
49
50
|
# File 'lib/milk_tea/core/types/types.rb', line 48
def field_c_name(name)
name
end
|
#float? ⇒ Boolean
32
33
34
|
# File 'lib/milk_tea/core/types/types.rb', line 32
def float?
false
end
|
#integer? ⇒ Boolean
28
29
30
|
# File 'lib/milk_tea/core/types/types.rb', line 28
def integer?
false
end
|
#numeric? ⇒ Boolean
24
25
26
|
# File 'lib/milk_tea/core/types/types.rb', line 24
def numeric?
false
end
|
#sendable? ⇒ Boolean
44
45
46
|
# File 'lib/milk_tea/core/types/types.rb', line 44
def sendable?
SendableCheckVisitor.new.tap { |v| v.visit(self) }.sendable?
end
|
#void? ⇒ Boolean
40
41
42
|
# File 'lib/milk_tea/core/types/types.rb', line 40
def void?
false
end
|