Microsoft.Zing.Splicer.SourceContextConstructor C# (CSharp) Méthode

SourceContextConstructor() private méthode

private SourceContextConstructor ( SourceContext ctx ) : Expression
ctx SourceContext
Résultat Expression
        internal Expression SourceContextConstructor(SourceContext ctx)
        {
            return new Construct(
                new MemberBinding(null, new TypeExpression(Identifier.For("ZingSourceContext"))),
                new ExpressionList(
                    (ctx.Document != null && this.sourceDocuments.Contains(ctx.Document))
                        ? new Literal((int)this.sourceDocuments[ctx.Document], SystemTypes.Int32)
                        : new Literal(0, SystemTypes.Int32),
                    new Literal(ctx.StartPos, SystemTypes.Int32),
                    new Literal(ctx.EndPos, SystemTypes.Int32)));
        }