Example #1
0
        public override void Emit(ByteCodeBuilder code, BoundFunction parent)
        {
            EmitArrayLengthInitializers(Var.Type, parent.GetLocalLocation(Var) !.Value, code);
            var initializer = Var.Initializer;

            if (initializer != null)
            {
                if (Var.Type is RefType ||
                    (Var.Type is BasicType {
                    TypeCode : BasicTypeCode.String
                } && initializer.Type?.UnderlyingType is TextLabelType))
Example #2
0
 public override void Emit(ByteCodeBuilder code, BoundFunction parent) => throw new NotSupportedException();
Example #3
0
 public abstract void Emit(ByteCodeBuilder code, BoundFunction parent);