Skip to content

Expression not compileable #92

@jogibear9988

Description

@jogibear9988

Todo's to fix:

  • AddAssign needs to be supported
  • "null" not needs to be of compared type for Codegen in (TryEmitComparison line 2845)

I've the following Expression (Debug view)

.Block(
	System.Int32 $offset,
	System.Int32 $length,
	System.Byte[] $data) {
	$offset = 0;
	$length = 0;
	$length += .If (((Machine.JTP.Jobs.System.SystemEchoJob)$job).Message == null) {
		0
	} .Else {
		(((Machine.JTP.Jobs.System.SystemEchoJob)$job).Message).Length
	};
	$length += 1;
	$data = .New System.Byte[]($length);
	.Call Machine.Core.Foundation.Base.ValueSerializer.SerializeToArray(
		((Machine.JTP.Jobs.System.SystemEchoJob)$job).Message,
		128,
		$data,
		$offset,
		.Constant<Machine.Core.Foundation.Base.ByteOrder>(Network));
	$offset = $offset + .If (((Machine.JTP.Jobs.System.SystemEchoJob)$job).Message == null) {
		0
	} .Else {
		(((Machine.JTP.Jobs.System.SystemEchoJob)$job).Message).Length
	} + 1;
	$data
}

wich could not be compiled.

Do I need to create trac down whats not yet supported? Or could you see it from the output?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions