예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
 private void ResolveType(IAInputDescBuilder builder, (string Name, ISymbol Symbol) args, Compilation comp)
예제 #4
0
 private void ResolveType(IAInputDescBuilder builder, (string Name, ITypeSymbol TypeSymbol) args)