Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal sealed class ExpressionTreeEmitter
SymbolDisplayFormat.FullyQualifiedFormat;

private readonly SemanticModel _semanticModel;
private readonly SourceProductionContext? _context;
private readonly GeneratorOutputContext? _context;
private readonly ReflectionFieldCache _fieldCache;
private readonly List<string> _lines = new();
private readonly Dictionary<IParameterSymbol, string> _symbolToVar = new(SymbolEqualityComparer.Default);
Expand All @@ -56,7 +56,7 @@ internal sealed class ExpressionTreeEmitter

public ExpressionTreeEmitter(
SemanticModel semanticModel,
SourceProductionContext? context = null,
GeneratorOutputContext? context = null,
string varPrefix = "",
string? delegateVarName = null)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text;
using ExpressiveSharp.Generator.Infrastructure;
using ExpressiveSharp.Generator.Models;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
Expand All @@ -12,7 +13,7 @@ namespace ExpressiveSharp.Generator.Emitter;
/// </summary>
static internal class SynthesizedPropertyEmitter
{
public static void Emit(SynthesizedPropertySpec spec, string generatedFileName, SourceProductionContext context)
public static void Emit(SynthesizedPropertySpec spec, string generatedFileName, GeneratorOutputContext context)
{
var source = BuildSource(spec);
context.AddSource(generatedFileName, SourceText.From(source, Encoding.UTF8));
Expand Down
Loading
Loading