Exemple #1
0
        public override void GenerateStartParentChunk(Block target, ChunkGeneratorContext context)
        {
            //var chunk = context.ChunkTreeBuilder.StartParentChunk<CodeAttributeChunk>(target);

            //chunk.Attribute = Name;
            //chunk.Prefix = Prefix;
            //chunk.Suffix = Suffix;
        }
        public override void GenerateChunk(Span target, ChunkGeneratorContext context)
        {
            var ns = Namespace;

            if (!string.IsNullOrEmpty(ns) && char.IsWhiteSpace(ns[0]))
            {
                ns = ns.Substring(1);
            }

            //context.ChunkTreeBuilder.AddUsingChunk(ns, target);
        }
        public override void GenerateChunk(Span target, ChunkGeneratorContext context)
        {
            //var chunk = context.ChunkTreeBuilder.StartParentChunk<LiteralCodeAttributeChunk>(target);
            //chunk.Prefix = Prefix;
            //chunk.Value = Value;

            //if (ValueGenerator != null)
            //{
            //    chunk.ValueLocation = ValueGenerator.Location;

            //    ValueGenerator.Value.GenerateChunk(target, context);

            //    chunk.ValueLocation = ValueGenerator.Location;
            //}

            //context.ChunkTreeBuilder.EndParentChunk();
        }
 public void GenerateEndParentChunk(Block target, ChunkGeneratorContext context)
 {
     //context.ChunkTreeBuilder.EndParentChunk();
 }
 public void GenerateChunk(Span target, ChunkGeneratorContext context)
 {
     //context.ChunkTreeBuilder.AddExpressionChunk(target.Content, target);
 }
 public void GenerateStartParentChunk(Block target, ChunkGeneratorContext context)
 {
     //context.ChunkTreeBuilder.StartParentChunk<ExpressionBlockChunk>(target);
 }
Exemple #7
0
 public void GenerateChunk(Span target, ChunkGeneratorContext context)
 {
 }
 public override void GenerateStartParentChunk(Block target, ChunkGeneratorContext context)
 {
     //var chunk = context.ChunkTreeBuilder.StartParentChunk<DynamicCodeAttributeChunk>(target);
     //chunk.Start = ValueStart;
     //chunk.Prefix = Prefix;
 }