コード例 #1
0
 protected override void VisitProcessingInstructionFragment(HxlProcessingInstruction fragment)
 {
     // TODO This shouldn't be here (HxlDocument.CreatePI should init this)
     Activation.Initialize(fragment, HxlDirective.Parse(fragment.Data).Select(t => new KeyValuePair <string, object>(t.Key, t.Value)));
     fragment.GetInitCode("m", this, this.CurrentOutput);
     DoChildVisit(fragment, fragment.Target);
 }
コード例 #2
0
            protected override DomNode Convert(DomDocument document, DomProcessingInstruction instruction)
            {
                HxlProcessingInstruction pf = (HxlProcessingInstruction)instruction;

                if (pf.NeedsEmit)
                {
                    return(pf);
                }
                else
                {
                    return(null);
                }
            }