5 instantiations of OptionsContextType
Microsoft.Gen.ContextualOptions (1)
Parser.cs (1)
18.Select(type => new OptionsContextType(type.Key, type.Value.ToImmutableArray(), GetContextProperties(type.Key)))
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
EmitterTests.cs (4)
31var type = new OptionsContextType( 55var type = new OptionsContextType( 83var type = new OptionsContextType( 111var type = new OptionsContextType(
19 references to OptionsContextType
Microsoft.Gen.ContextualOptions (14)
ContextualOptionsGenerator.cs (2)
46var list = new List<OptionsContextType>(); 47foreach (var type in Parser.GetContextualOptionTypes(typeDeclarations))
Emitter.cs (3)
16public string Emit(IEnumerable<OptionsContextType> list) 18foreach (var optionsContextType in list) 30private static FormattableString FormatClass(OptionsContextType optionsContextType) =>
Parser.cs (9)
16public static IEnumerable<OptionsContextType> GetContextualOptionTypes(Dictionary<INamedTypeSymbol, List<TypeDeclarationSyntax>> types) => 24private static OptionsContextType CheckInstantiable(OptionsContextType type) 38private static OptionsContextType CheckRefLikeType(OptionsContextType type) 52private static OptionsContextType CheckPartial(OptionsContextType type) 63private static OptionsContextType CheckHasProperties(OptionsContextType type)
Microsoft.Gen.ContextualOptions.Unit.Tests (5)
EmitterTests.cs (4)
31var type = new OptionsContextType( 55var type = new OptionsContextType( 83var type = new OptionsContextType( 111var type = new OptionsContextType(
ParserTests.cs (1)
98private static async Task<IEnumerable<OptionsContextType>> GetParserResult(string[] sources) =>