Beispiel #1
0
        protected override void EmitConversionExpression()
        {
            if (this.PrimitiveExpression.IsNull)
            {
                return;
            }

            var isTplRaw = this.Emitter.TemplateModifier == "raw";

            if (this.PrimitiveExpression.Value is RawValue || isTplRaw)
            {
                this.Write(AbstractEmitterBlock.UpdateIndentsInString(this.PrimitiveExpression.Value.ToString(), 0));
            }
            else
            {
                this.WriteScript(Bridge.Translator.Emitter.ConvertConstant(this.PrimitiveExpression.Value, this.PrimitiveExpression, this.Emitter));
            }
        }