/// <summary>Initializes a new instance of the <see cref="T4SecondaryLexingProcess"/> class.</summary>
 /// <param name="codeBehindLanguage">The code behind language.</param>
 /// <param name="mixedLexer">The mixed lexer.</param>
 public T4SecondaryLexingProcess([NotNull] PsiLanguageType codeBehindLanguage, [NotNull] MixedLexer mixedLexer)
 {
     _codeBehindLanguage = codeBehindLanguage;
     _mixedLexer         = mixedLexer;
 }
 /// <summary>Creates a secondary lexing service for code behind generated files.</summary>
 /// <param name="solution">The solution.</param>
 /// <param name="mixedLexer">The mixed lexer.</param>
 /// <param name="sourceFile">The source file.</param>
 /// <returns>An instance of <see cref="ISecondaryLexingProcess"/> used to lex the code behind file.</returns>
 public override ISecondaryLexingProcess CreateSecondaryLexingService(
     ISolution solution,
     MixedLexer mixedLexer,
     IPsiSourceFile sourceFile = null
     )
 => CSharpLanguage.Instance != null ? new T4SecondaryLexingProcess(CSharpLanguage.Instance, mixedLexer) : null;
Exemple #3
0
 public override ISecondaryLexingProcess CreateSecondaryLexingService(ISolution solution, MixedLexer mixedLexer, IPsiSourceFile sourceFile = null)
 {
     return(null);
 }
 public ISecondaryLexingProcess CreateSecondaryLexingService(ISolution solution, MixedLexer mixedLexer, IPsiSourceFile sourceFile = null)
 {
   return null;
 }
 /// <summary>
 /// Creates a secondary lexing service for code behind generated files.
 /// </summary>
 /// <param name="solution">The solution.</param>
 /// <param name="mixedLexer">The mixed lexer.</param>
 /// <param name="sourceFile">The source file.</param>
 /// <returns>An instance of <see cref="ISecondaryLexingProcess"/> used to lex the code behind file.</returns>
 public override ISecondaryLexingProcess CreateSecondaryLexingService(ISolution solution, MixedLexer mixedLexer, IPsiSourceFile sourceFile = null)
 {
     return CSharpLanguage.Instance != null ? new T4SecondaryLexingProcess(CSharpLanguage.Instance, mixedLexer) : null;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T4SecondaryLexingProcess"/> class.
 /// </summary>
 /// <param name="codeBehindLanguage">The code behind language.</param>
 /// <param name="mixedLexer">The mixed lexer.</param>
 internal T4SecondaryLexingProcess([NotNull] PsiLanguageType codeBehindLanguage, [NotNull] MixedLexer mixedLexer)
 {
     _codeBehindLanguage = codeBehindLanguage;
     _mixedLexer = mixedLexer;
 }