1 type derived from InterceptableLocation
Microsoft.CodeAnalysis.CSharp (1)
Utilities\InterceptableLocation.cs (1)
51internal sealed class InterceptableLocation1 : InterceptableLocation
66 references to InterceptableLocation
Microsoft.AspNetCore.Http.RequestDelegateGenerator (3)
RequestDelegateGenerator.Emitter.cs (2)
18internal static string EmitInterceptorDefinition((Endpoint Source, int Index, ImmutableArray<InterceptableLocation> Elements) endpointWithLocations) 23foreach (var location in endpointWithLocations.Elements)
StaticRouteHandlerModel\Endpoint.cs (1)
106public InterceptableLocation InterceptableLocation { get; }
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) => $$""" 670internal static string GenerateAddOpenApiInterceptions(ImmutableArray<(AddOpenApiInvocation Source, int Index, ImmutableArray<InterceptableLocation?> Elements)> groupedAddOpenApiInvocations) 676foreach (var location in locations) 800ImmutableArray<(AddOpenApiInvocation Source, int Index, ImmutableArray<InterceptableLocation?> Elements)> groupedAddOpenApiInvocations)
XmlCommentGenerator.Parser.cs (1)
156var interceptableLocation = context.SemanticModel.GetInterceptableLocation(invocationExpression, cancellationToken);
Microsoft.CodeAnalysis.CSharp (8)
Compilation\CSharpSemanticModel.cs (2)
5276public InterceptableLocation? GetInterceptableLocation(InvocationExpressionSyntax node, CancellationToken cancellationToken) 5288internal InterceptableLocation GetInterceptableLocationInternal(SyntaxNode nameSyntax, CancellationToken cancellationToken)
CSharpExtensions.cs (2)
1673public static InterceptableLocation? GetInterceptableLocation(this SemanticModel? semanticModel, InvocationExpressionSyntax node, CancellationToken cancellationToken = default) 1684public 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.CSharp15.UnitTests (1)
UnsafeEvolutionTests.cs (1)
4947var interceptableLocation = tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Select(node => model.GetInterceptableLocation(node)).Single()!;
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)
32private static ImmutableArray<InterceptableLocation?> GetInterceptableLocations(CSharpTestSource source) 42private static string GetAttributeArgs(InterceptableLocation location) => $@"{location.Version}, ""{location.Data}"""; 209var interceptableLocation = model.GetInterceptableLocation(invocation)!; 1816var location = GetInterceptableLocations(source)[0]!; 1850var location = GetInterceptableLocations(source)[0]!; 2014var location = model.GetInterceptableLocation(invocation)!; 2124var location1 = model.GetInterceptableLocationInternal(node1, cancellationToken: default); 2127var location2 = model.GetInterceptableLocationInternal(node2, cancellationToken: default); 2130var location3 = model.GetInterceptableLocationInternal(node3, cancellationToken: default); 2317var location = model.GetInterceptableLocation(invocation)!; 5131var location = GetInterceptableLocations(source)[0]!; 5264var location = model.GetInterceptableLocation(node)!; 6182var locationSpecifier = model.GetInterceptableLocation(node)!; 6345var location = locations[2]!; 6848var location = GetInterceptableLocations(source)[0]!; 6948var location = GetInterceptableLocations(source)[0]!; 7099var location = GetInterceptableLocations(source)[0]!; 7328var locationSpecifier = model.GetInterceptableLocation(node)!; 7382var locationSpecifier = model.GetInterceptableLocation(node); 7399var otherLocation = model.GetInterceptableLocation(otherNode)!; 7530var locationSpecifier = model.GetInterceptableLocation(node)!; 7571var locationSpecifier = model.GetInterceptableLocation(node)!; 7617var locationSpecifier = model.GetInterceptableLocation(node)!; 7663var locationSpecifier = model.GetInterceptableLocation(node); 7714var locationSpecifier = model.GetInterceptableLocation(node)!; 7739var locationSpecifier = model.GetInterceptableLocation(node)!; 7785var locationSpecifier = model.GetInterceptableLocation(node)!; 7826var locationSpecifier = model.GetInterceptableLocationInternal(node.Name, cancellationToken: default)!; 7867var locationSpecifier = model.GetInterceptableLocation(node)!; 7911var locationSpecifier = model.GetInterceptableLocation(node)!; 7954var locationSpecifier = model.GetInterceptableLocation(node)!; 8007var locationSpecifier = model.GetInterceptableLocation(node)!; 8053var locationSpecifier = model.GetInterceptableLocation(node)!; 8112var locationSpecifier = model.GetInterceptableLocation(node)!; 8172var locationSpecifier = model.GetInterceptableLocation(node)!; 8227var locationSpecifier = model.GetInterceptableLocation(node)!; 8282var locationSpecifier = model.GetInterceptableLocation(node)!; 8332var locationSpecifier = model.GetInterceptableLocation(node)!; 8390var locationSpecifier = model.GetInterceptableLocation(node)!; 8454var locationSpecifier = model.GetInterceptableLocation(node)!;
SourceGeneration\GeneratorDriverTests.cs (2)
4367record InterceptorInfo(InterceptableLocation locationSpecifier, object data); 4380var locationSpecifier = model.GetInterceptableLocation((InvocationExpressionSyntax)context.Node, token);
Microsoft.Extensions.Validation.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.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
111 var interceptableLocation = context.SemanticModel.GetInterceptableLocation(invocation, t);