Example #1
0
        public override bool MakeHeap(Sink sink, out Heap heap, out Bpl.Program /*?*/ program)
        {
            heap      = this;
            program   = null;
            this.sink = sink;
            string prelude = this.InitialPreludeText + this.CommonText;
            var    b       = RepresentationFor.ParsePrelude(prelude, this, out program);

            if (b)
            {
                this.FieldType = new Bpl.CtorType(this.FieldTypeDecl.tok, this.FieldTypeDecl, new List <Bpl.Type>());
                this.RefType   = new Bpl.CtorType(this.RefTypeDecl.tok, this.RefTypeDecl, new List <Bpl.Type>());
                this.RealType  = new Bpl.CtorType(this.RealTypeDecl.tok, this.RealTypeDecl, new List <Bpl.Type>());
            }
            return(b);
        }