Skip to content

Commit

Permalink
Address feedback: split binding/parsing logic using partial files rat…
Browse files Browse the repository at this point in the history
…her than new method spec types
  • Loading branch information
layomia committed Jun 19, 2023
1 parent e856fd7 commit cc511b0
Show file tree
Hide file tree
Showing 29 changed files with 3,027 additions and 3,044 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,16 @@ private static void Execute(CompilationData compilationData, ImmutableArray<Bind
return;
}

if (compilationData?.LanguageVersionIsSupported != true)
if (compilationData?.LanguageVersionIsSupported is not true)
{
context.ReportDiagnostic(Diagnostic.Create(Parser.Diagnostics.LanguageVersionNotSupported, location: null));
return;
}

Parser parser = new(context, compilationData.TypeSymbols!, inputCalls);
SourceGenSpec? spec = parser.GetSourceGenerationSpec();

if (spec?.HasRootMethods() is true)
if (parser.GetSourceGenerationSpec() is SourceGenerationSpec { } spec)
{
Emitter emitter = new(context, spec!);
Emitter emitter = new(context, spec);
emitter.Emit();
}
}
Expand Down

This file was deleted.

Loading

0 comments on commit cc511b0

Please sign in to comment.