protected override void GenerateFromSymbol(GeneratorExecutionContext context, INamedTypeSymbol typeSymbol) { var builder = new IAInputDescBuilder(); ResolveType(builder, (typeSymbol.Name, typeSymbol), context.Compilation); context.AddSource($"{typeSymbol}.InputAssemblerLayout.cs", SourceText.From(builder.ToString(typeSymbol) !, Encoding.UTF8)); }
protected override void Generate(SourceGeneratorContext context, INamedTypeSymbol typeSymbol) { var builder = new IAInputDescBuilder(); ResolveType(builder, (typeSymbol.Name, typeSymbol)); context.AddSource($"{typeSymbol.Name}.IAInputLayout.cs", SourceText.From(builder.ToString(typeSymbol) !, Encoding.UTF8)); }
private void ResolveType(IAInputDescBuilder builder, (string Name, ISymbol Symbol) args, Compilation comp)
private void ResolveType(IAInputDescBuilder builder, (string Name, ITypeSymbol TypeSymbol) args)