예제 #1
0
class FooNode(ASTNode):
    v = UserField(type=T.LogicVar, public=False)
예제 #2
0
파일: test.py 프로젝트: pmderodat/langkit
class FooNodeStruct(Struct):
    node = UserField(T.FooNode.entity)
예제 #3
0
class Metadata(Struct):
    node = UserField(T.FooNode)
예제 #4
0
 class MyStruct(Struct):
     A = UserField(type=BoolType)
예제 #5
0
파일: test.py 프로젝트: pmderodat/langkit
class NodeResult(Struct):
    n = UserField(type=T.Example)
예제 #6
0
class TestStruct(Struct):
    count = UserField(type=T.Int)
    nodes = UserField(type=T.Example.entity.array)
예제 #7
0
class EnvStruct(Struct):
    env = UserField(type=T.LexicalEnv)
예제 #8
0
class Metadata(Struct):
    is_first = UserField(Bool)
    is_second = UserField(Bool)
예제 #9
0
 class Metadata(Struct):
     flag = UserField(type=T.Bool)
예제 #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))
예제 #11
0
파일: test.py 프로젝트: pmderodat/langkit
class Str(Struct):
    value = UserField(type=T.String)
예제 #12
0
파일: test.py 프로젝트: briot/langkit
 class MyStruct(Struct):
     a = UserField(type=LongType)
     b = UserField(type=LongType)
예제 #13
0
파일: test.py 프로젝트: shintakezou/langkit
class MyStruct(Struct):
    children = UserField(type=T.MyStruct.array)
예제 #14
0
파일: test.py 프로젝트: pmderodat/langkit
class SomeStruct(Struct):
    examples = UserField(T.Example.entity.array)
예제 #15
0
class KV(Struct):
    key = UserField(type=T.String)
    value = UserField(type=T.String)
예제 #16
0
class Point(Struct):
    label = UserField(type=T.String)
    x = UserField(type=T.BigInt)
    y = UserField(type=T.BigInt)
예제 #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
예제 #18
0
 class FooNode(ASTNode):
     ref_var = UserField(LogicVar, public=False)
     type_var = UserField(LogicVar, public=False)
예제 #19
0
class Metadata(Struct):
    node = UserField(type=FooNode)
예제 #20
0
파일: test.py 프로젝트: yakobowski/langkit
 class Example(FooNode):
     f = UserField(FooNode)
예제 #21
0
class Metadata(Struct):
    b = UserField(type=BoolType)
예제 #22
0
 class StructB(StructA):
     b = UserField(type=Int)
예제 #23
0
파일: test.py 프로젝트: shintakezou/langkit
class MyStruct(Struct):
    entity_field = UserField(type=T.FooNode)
    array_field = UserField(type=T.FooNode.entity.array)
    bigint_field = UserField(type=T.BigInt)
예제 #24
0
class StructA(Struct):
    a = UserField(type=Int)
예제 #25
0
파일: test.py 프로젝트: pmderodat/langkit
class PrivatePoint(Struct):
    x = UserField(type=T.BigInt)
    y = UserField(type=T.BigInt)
예제 #26
0
 class KV(Struct):
     key = UserField(type=T.String)
     val = UserField(type=T.BigInt)