public T4InfoCollectorStateSeenFeatureAndText( [NotNull] StringBuilder builder, [NotNull] IT4CodeGenerationInterrupter interrupter, [NotNull] IT4TreeNode firstElement ) : base(interrupter) { Builder = builder; FirstElement = firstElement; }
public T4CSharpCodeGenerationIntermediateResult( [NotNull] IT4File file, [NotNull] IT4CodeGenerationInterrupter interrupter ) { CollectedBaseClass = new T4CSharpCodeGenerationResult(file); MyTransformationDescriptions = new List <IT4AppendableElementDescription>(); MyFeatureDescriptions = new List <IT4AppendableElementDescription>(); MyParameterDescriptions = new List <T4ParameterDescription>(); MyImportDescriptions = new List <T4ImportDescription>(); State = new T4InfoCollectorStateInitial(interrupter); HasHost = false; }
public string FindEncoding([NotNull] IT4OutputDirective directive, [NotNull] IT4CodeGenerationInterrupter interrupter) { var attribute = directive.GetFirstAttribute(T4DirectiveInfoManager.Output.EncodingAttribute); var value = attribute?.Value; if (value == null) { return(null); } string rawEncoding = value.GetText(); if (IsCodePage(rawEncoding)) { return(rawEncoding); // Insert unquoted } if (IsEncodingName(rawEncoding)) { return($"\"{rawEncoding}\""); } interrupter.InterruptAfterProblem(T4FailureRawData.FromElement(value, "Unknown encoding")); return(null); }
public T4InfoCollectorSateSeenSpecialBlock([NotNull] IT4CodeGenerationInterrupter interrupter) : base(interrupter) => Builder = new StringBuilder();
public T4InfoCollectorStateSeenFeature([NotNull] IT4CodeGenerationInterrupter interrupter) : base(interrupter) { }
public T4InfoCollectorStateSeenFeatureAndNewLine([NotNull] IT4CodeGenerationInterrupter interrupter) : base(interrupter) => Builder = new StringBuilder();
// This property is only required for ensuring correctness of state management code protected T4InfoCollectorStateBase([NotNull] IT4CodeGenerationInterrupter interrupter) =>
public T4InfoCollectorStateInitial( [NotNull] StringBuilder builder, [NotNull] IT4CodeGenerationInterrupter interrupter ) : base(interrupter) => Builder = builder;
public T4InfoCollectorStateInitial([NotNull] IT4CodeGenerationInterrupter interrupter) : this(new StringBuilder(), interrupter) { }