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