1 type derived from InterceptableLocation
Microsoft.CodeAnalysis.CSharp (1)
Utilities\InterceptableLocation.cs (1)
51internal sealed class InterceptableLocation1 : InterceptableLocation
64 references to InterceptableLocation
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
RequestDelegateGenerator.cs (1)
61foreach (var location in endpointWithLocations.Elements)
StaticRouteHandlerModel\Endpoint.cs (1)
106public InterceptableLocation InterceptableLocation { get; }
Microsoft.AspNetCore.Http.ValidationsGenerator (3)
Emitters\ValidationsGenerator.Emitter.cs (2)
18internal static void Emit(SourceProductionContext context, (InterceptableLocation? AddValidation, ImmutableArray<ValidatableType> ValidatableTypes) emitInputs) 29private static string Emit(InterceptableLocation addValidation, ImmutableArray<ValidatableType> validatableTypes) => $$"""
Parsers\ValidationsGenerator.AddValidation.cs (1)
25internal InterceptableLocation? TransformAddValidation(GeneratorSyntaxContext context, CancellationToken cancellationToken)
Microsoft.AspNetCore.OpenApi.SourceGenerators (6)
Helpers\AddOpenApiInvocation.cs (1)
18InterceptableLocation? Location);
XmlCommentGenerator.Emitter.cs (4)
19internal static string GenerateXmlCommentSupportSource(string commentsFromXmlFile, string? commentsFromCompilation, ImmutableArray<(AddOpenApiInvocation Source, int Index, ImmutableArray<InterceptableLocation?> Elements)> groupedAddOpenApiInvocations) => $$""" 533internal static string GenerateAddOpenApiInterceptions(ImmutableArray<(AddOpenApiInvocation Source, int Index, ImmutableArray<InterceptableLocation?> Elements)> groupedAddOpenApiInvocations) 539foreach (var location in locations) 663ImmutableArray<(AddOpenApiInvocation Source, int Index, ImmutableArray<InterceptableLocation?> Elements)> groupedAddOpenApiInvocations)
XmlCommentGenerator.Parser.cs (1)
129var interceptableLocation = context.SemanticModel.GetInterceptableLocation(invocationExpression, cancellationToken);
Microsoft.CodeAnalysis.CSharp (8)
Compilation\CSharpSemanticModel.cs (2)
5210public InterceptableLocation? GetInterceptableLocation(InvocationExpressionSyntax node, CancellationToken cancellationToken) 5222internal InterceptableLocation GetInterceptableLocationInternal(SyntaxNode nameSyntax, CancellationToken cancellationToken)
CSharpExtensions.cs (2)
1649public static InterceptableLocation? GetInterceptableLocation(this SemanticModel? semanticModel, InvocationExpressionSyntax node, CancellationToken cancellationToken = default) 1660public static string GetInterceptsLocationAttributeSyntax(this InterceptableLocation location)
Utilities\InterceptableLocation.cs (4)
21public abstract class InterceptableLocation : IEquatable<InterceptableLocation> 44public abstract bool Equals(InterceptableLocation? other); 172return obj is InterceptableLocation other && Equals(other); 184public override bool Equals(InterceptableLocation? obj)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (2)
EndToEndTests.cs (2)
666var location = locations[i]; 695ImmutableArray<InterceptableLocation> getInterceptableLocations(CSharpTestSource source)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (42)
Semantics\InterceptorsTests.cs (40)
40private static ImmutableArray<InterceptableLocation?> GetInterceptableLocations(CSharpTestSource source) 50private static string GetAttributeArgs(InterceptableLocation location) => $@"{location.Version}, ""{location.Data}"""; 217var interceptableLocation = model.GetInterceptableLocation(invocation)!; 1824var location = GetInterceptableLocations(source)[0]!; 1858var location = GetInterceptableLocations(source)[0]!; 2022var location = model.GetInterceptableLocation(invocation)!; 2132var location1 = model.GetInterceptableLocationInternal(node1, cancellationToken: default); 2135var location2 = model.GetInterceptableLocationInternal(node2, cancellationToken: default); 2138var location3 = model.GetInterceptableLocationInternal(node3, cancellationToken: default); 2325var location = model.GetInterceptableLocation(invocation)!; 5139var location = GetInterceptableLocations(source)[0]!; 5272var location = model.GetInterceptableLocation(node)!; 6190var locationSpecifier = model.GetInterceptableLocation(node)!; 6353var location = locations[2]!; 6856var location = GetInterceptableLocations(source)[0]!; 6956var location = GetInterceptableLocations(source)[0]!; 7107var location = GetInterceptableLocations(source)[0]!; 7336var locationSpecifier = model.GetInterceptableLocation(node)!; 7390var locationSpecifier = model.GetInterceptableLocation(node); 7407var otherLocation = model.GetInterceptableLocation(otherNode)!; 7538var locationSpecifier = model.GetInterceptableLocation(node)!; 7579var locationSpecifier = model.GetInterceptableLocation(node)!; 7625var locationSpecifier = model.GetInterceptableLocation(node)!; 7671var locationSpecifier = model.GetInterceptableLocation(node); 7722var locationSpecifier = model.GetInterceptableLocation(node)!; 7747var locationSpecifier = model.GetInterceptableLocation(node)!; 7793var locationSpecifier = model.GetInterceptableLocation(node)!; 7834var locationSpecifier = model.GetInterceptableLocationInternal(node.Name, cancellationToken: default)!; 7875var locationSpecifier = model.GetInterceptableLocation(node)!; 7919var locationSpecifier = model.GetInterceptableLocation(node)!; 7962var locationSpecifier = model.GetInterceptableLocation(node)!; 8015var locationSpecifier = model.GetInterceptableLocation(node)!; 8061var locationSpecifier = model.GetInterceptableLocation(node)!; 8120var locationSpecifier = model.GetInterceptableLocation(node)!; 8180var locationSpecifier = model.GetInterceptableLocation(node)!; 8235var locationSpecifier = model.GetInterceptableLocation(node)!; 8290var locationSpecifier = model.GetInterceptableLocation(node)!; 8340var locationSpecifier = model.GetInterceptableLocation(node)!; 8398var locationSpecifier = model.GetInterceptableLocation(node)!; 8462var locationSpecifier = model.GetInterceptableLocation(node)!;
SourceGeneration\GeneratorDriverTests.cs (2)
4322record InterceptorInfo(InterceptableLocation locationSpecifier, object data); 4335var locationSpecifier = model.GetInterceptableLocation((InvocationExpressionSyntax)context.Node, token);
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
111 var interceptableLocation = context.SemanticModel.GetInterceptableLocation(invocation, t);