Esempio n. 1
0
class FooNode(ASTNode):
    v = UserField(type=T.LogicVar, public=False)
Esempio n. 2
0
class FooNodeStruct(Struct):
    node = UserField(T.FooNode.entity)
Esempio n. 3
0
class Metadata(Struct):
    node = UserField(T.FooNode)
Esempio n. 4
0
 class MyStruct(Struct):
     A = UserField(type=BoolType)
Esempio n. 5
0
class NodeResult(Struct):
    n = UserField(type=T.Example)
Esempio n. 6
0
class TestStruct(Struct):
    count = UserField(type=T.Int)
    nodes = UserField(type=T.Example.entity.array)
Esempio n. 7
0
class EnvStruct(Struct):
    env = UserField(type=T.LexicalEnv)
Esempio n. 8
0
class Metadata(Struct):
    is_first = UserField(Bool)
    is_second = UserField(Bool)
Esempio n. 9
0
 class Metadata(Struct):
     flag = UserField(type=T.Bool)
Esempio n. 10
0
class KV(Struct):
    key = UserField(type=T.String)
    value = UserField(type=T.Int, default_value=42)
    node = UserField(type=T.FooNode, default_value=No(T.FooNode))
Esempio n. 11
0
class Str(Struct):
    value = UserField(type=T.String)
Esempio n. 12
0
 class MyStruct(Struct):
     a = UserField(type=LongType)
     b = UserField(type=LongType)
Esempio n. 13
0
class MyStruct(Struct):
    children = UserField(type=T.MyStruct.array)
Esempio n. 14
0
class SomeStruct(Struct):
    examples = UserField(T.Example.entity.array)
Esempio n. 15
0
class KV(Struct):
    key = UserField(type=T.String)
    value = UserField(type=T.String)
Esempio n. 16
0
class Point(Struct):
    label = UserField(type=T.String)
    x = UserField(type=T.BigInt)
    y = UserField(type=T.BigInt)
Esempio n. 17
0
class SynthId(FooNode):
    sym = UserField(type=T.Symbol, public=False)

    @langkit_property(return_type=T.String, public=True)
    def get_sym():
        return Self.sym.image
Esempio n. 18
0
 class FooNode(ASTNode):
     ref_var = UserField(LogicVar, public=False)
     type_var = UserField(LogicVar, public=False)
Esempio n. 19
0
class Metadata(Struct):
    node = UserField(type=FooNode)
Esempio n. 20
0
 class Example(FooNode):
     f = UserField(FooNode)
Esempio n. 21
0
class Metadata(Struct):
    b = UserField(type=BoolType)
Esempio n. 22
0
 class StructB(StructA):
     b = UserField(type=Int)
Esempio n. 23
0
class MyStruct(Struct):
    entity_field = UserField(type=T.FooNode)
    array_field = UserField(type=T.FooNode.entity.array)
    bigint_field = UserField(type=T.BigInt)
Esempio n. 24
0
class StructA(Struct):
    a = UserField(type=Int)
Esempio n. 25
0
class PrivatePoint(Struct):
    x = UserField(type=T.BigInt)
    y = UserField(type=T.BigInt)
Esempio n. 26
0
 class KV(Struct):
     key = UserField(type=T.String)
     val = UserField(type=T.BigInt)