/// <summary> /// Initializes a new instance of the <see cref="T4LanguageService"/> class. /// </summary> /// <param name="t4Language">The T4 language.</param> /// <param name="directiveInfoManager">An instance of <see cref="DirectiveInfoManager"/>.</param> /// <param name="constantValueService">The constant value service.</param> /// <param name="t4Environment">An object describing the environment for T4 files.</param> public T4LanguageService([NotNull] T4Language t4Language, [NotNull] DirectiveInfoManager directiveInfoManager, [NotNull] IConstantValueService constantValueService, [NotNull] T4Environment t4Environment) : base(t4Language, constantValueService) { _t4Environment = t4Environment; _directiveInfoManager = directiveInfoManager; }
internal T4Parser([NotNull] T4Environment t4Environment, [NotNull] DirectiveInfoManager directiveInfoManager, [NotNull] ILexer lexer, [CanBeNull] IPsiSourceFile sourceFile) { _t4Environment = t4Environment; _directiveInfoManager = directiveInfoManager; _lexer = lexer; _sourceFile = sourceFile; }
/// <summary> /// Initializes a new instance of the <see cref="T4FileData"/> class. /// </summary> /// <param name="t4File">The T4 file that will be scanned for data.</param> /// <param name="directiveInfoManager">An instance of <see cref="DirectiveInfoManager"/>.</param> internal T4FileData([NotNull] IT4File t4File, [NotNull] DirectiveInfoManager directiveInfoManager) { _directiveInfoManager = directiveInfoManager; HandleDirectives(t4File); foreach (IT4Include include in t4File.GetRecursiveIncludes()) HandleDirectives(include); }
/// <summary> /// Initializes a new instance of the <see cref="T4FileDataCache"/> class. /// </summary> /// <param name="lifetime">The lifetime of this class.</param> /// <param name="psiFiles">The PSI manager.</param> /// <param name="directiveInfoManager">An instance of <see cref="DirectiveInfoManager"/>.</param> public T4FileDataCache([NotNull] Lifetime lifetime, [NotNull] PsiFiles psiFiles, [NotNull] DirectiveInfoManager directiveInfoManager) { _directiveInfoManager = directiveInfoManager; _fileDataChanged = new Signal<Pair<IPsiSourceFile, T4FileDataDiff>>(lifetime, "T4FileDataCache.FileDataChanged"); lifetime.AddBracket( () => psiFiles.PsiFileCreated += OnPsiFileChanged, () => psiFiles.PsiFileCreated -= OnPsiFileChanged); RegisterPsiChanged(lifetime, psiFiles); lifetime.AddDispose(_fileDataBySourceFile); }
private T4TreeBuilder([NotNull] T4Environment t4Environment, [NotNull] DirectiveInfoManager directiveInfoManager, [NotNull] ILexer lexer, [CanBeNull] IPsiSourceFile sourceFile, [NotNull] HashSet<FileSystemPath> existingIncludePaths, [CanBeNull] ISolution solution, [CanBeNull] T4PsiModule macroResolveModule) { _t4Environment = t4Environment; _directiveInfoManager = directiveInfoManager; _builderLexer = new PsiBuilderLexer(lexer, tnt => tnt.IsWhitespace); _existingIncludePaths = existingIncludePaths; _sourceFile = sourceFile; _solution = solution; _macroResolveModule = macroResolveModule; }
/// <summary> /// Initializes a new instance of the <see cref="T4CSharpCodeGenerator"/> class. /// </summary> /// <param name="file">The associated T4 file whose C# code behind will be generated.</param> /// <param name="directiveInfoManager">An instance of <see cref="DirectiveInfoManager"/>.</param> internal T4CSharpCodeGenerator([NotNull] IT4File file, [NotNull] DirectiveInfoManager directiveInfoManager) { _file = file; _directiveInfoManager = directiveInfoManager; }
/// <summary> /// Initializes a new instance of the <see cref="T4DaemonStageProcess"/> class. /// </summary> /// <param name="file">The associated T4 file.</param> /// <param name="daemonProcess">The associated daemon process.</param> /// <param name="directiveInfoManager">An instance of <see cref="DirectiveInfoManager"/>.</param> public T4ErrorProcess([NotNull] IT4File file, [NotNull] IDaemonProcess daemonProcess, [NotNull] DirectiveInfoManager directiveInfoManager) : base(file, daemonProcess) { _directiveInfoManager = directiveInfoManager; }
public T4ErrorStage([NotNull] DirectiveInfoManager directiveInfoManager) { _directiveInfoManager = directiveInfoManager; }
public T4GeneratedDocumentService([NotNull] FileDependency fileDependency, [NotNull] DirectiveInfoManager directiveInfoManager) { _fileDependency = fileDependency; _directiveInfoManager = directiveInfoManager; }
public T4ModuleReferencer([NotNull] T4Environment environment, [NotNull] DirectiveInfoManager directiveInfoManager) { _environment = environment; _directiveInfoManager = directiveInfoManager; }
public T4CSharpCodeStructureProvider([NotNull] DirectiveInfoManager directiveInfoManager) { _directiveInfoManager = directiveInfoManager; }
public T4GeneratedDocumentService([NotNull] DirectiveInfoManager directiveInfoManager) { _directiveInfoManager = directiveInfoManager; }