Esempio n. 1
0
def read_source_code(ctx, trace, fileobj):
    filename = read_string(fileobj, True)
    count = read_le_u16(fileobj)
    for i in range(count):
        lineno = read_le_u16(fileobj)
        indent = read_byte(fileobj)
        text = read_string(fileobj, True)
        ctx.forest.add_source_code_line(filename, lineno, indent, text)
Esempio n. 2
0
def read_source_code(ctx, trace, fileobj):
    filename = read_string(fileobj, True)
    count = read_le_u16(fileobj)
    for i in range(count):
        lineno = read_le_u16(fileobj)
        indent = read_byte(fileobj)
        text = read_string(fileobj, True)
        ctx.forest.add_source_code_line(filename, lineno, indent, text)
Esempio n. 3
0
def read_init_merge_point(ctx, trace, fileobj):
    count = read_le_u16(fileobj)
    types = []
    for i in range(count):
        sem_type = read_byte(fileobj)
        gen_type = read_char(fileobj)
        d = merge_point.get_decoder(sem_type, gen_type, ctx.forest.version)
        types.append(d)
    stage = trace.get_last_stage()
    assert stage is not None, "last stage is none, but it must not be none!"
    stage.merge_point_types = types
Esempio n. 4
0
def read_init_merge_point(ctx, trace, fileobj):
    count = read_le_u16(fileobj)
    types = []
    for i in range(count):
        sem_type = read_byte(fileobj)
        gen_type = read_char(fileobj)
        d = merge_point.get_decoder(sem_type, gen_type, ctx.forest.version)
        types.append(d)
    stage = trace.get_last_stage()
    assert stage is not None, "last stage is none, but it must not be none!"
    stage.merge_point_types = types