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.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) => $$""" 560internal static string GenerateAddOpenApiInterceptions(ImmutableArray<(AddOpenApiInvocation Source, int Index, ImmutableArray<InterceptableLocation?> Elements)> groupedAddOpenApiInvocations) 566foreach (var location in locations) 690ImmutableArray<(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)
5213public InterceptableLocation? GetInterceptableLocation(InvocationExpressionSyntax node, CancellationToken cancellationToken) 5225internal 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)
41private static ImmutableArray<InterceptableLocation?> GetInterceptableLocations(CSharpTestSource source) 51private static string GetAttributeArgs(InterceptableLocation location) => $@"{location.Version}, ""{location.Data}"""; 218var interceptableLocation = model.GetInterceptableLocation(invocation)!; 1825var location = GetInterceptableLocations(source)[0]!; 1859var location = GetInterceptableLocations(source)[0]!; 2023var location = model.GetInterceptableLocation(invocation)!; 2133var location1 = model.GetInterceptableLocationInternal(node1, cancellationToken: default); 2136var location2 = model.GetInterceptableLocationInternal(node2, cancellationToken: default); 2139var location3 = model.GetInterceptableLocationInternal(node3, cancellationToken: default); 2326var location = model.GetInterceptableLocation(invocation)!; 5140var location = GetInterceptableLocations(source)[0]!; 5273var location = model.GetInterceptableLocation(node)!; 6191var locationSpecifier = model.GetInterceptableLocation(node)!; 6354var location = locations[2]!; 6857var location = GetInterceptableLocations(source)[0]!; 6957var location = GetInterceptableLocations(source)[0]!; 7108var location = GetInterceptableLocations(source)[0]!; 7337var locationSpecifier = model.GetInterceptableLocation(node)!; 7391var locationSpecifier = model.GetInterceptableLocation(node); 7408var otherLocation = model.GetInterceptableLocation(otherNode)!; 7539var locationSpecifier = model.GetInterceptableLocation(node)!; 7580var locationSpecifier = model.GetInterceptableLocation(node)!; 7626var locationSpecifier = model.GetInterceptableLocation(node)!; 7672var locationSpecifier = model.GetInterceptableLocation(node); 7723var locationSpecifier = model.GetInterceptableLocation(node)!; 7748var locationSpecifier = model.GetInterceptableLocation(node)!; 7794var locationSpecifier = model.GetInterceptableLocation(node)!; 7835var locationSpecifier = model.GetInterceptableLocationInternal(node.Name, cancellationToken: default)!; 7876var locationSpecifier = model.GetInterceptableLocation(node)!; 7920var locationSpecifier = model.GetInterceptableLocation(node)!; 7963var locationSpecifier = model.GetInterceptableLocation(node)!; 8016var locationSpecifier = model.GetInterceptableLocation(node)!; 8062var locationSpecifier = model.GetInterceptableLocation(node)!; 8121var locationSpecifier = model.GetInterceptableLocation(node)!; 8181var locationSpecifier = model.GetInterceptableLocation(node)!; 8236var locationSpecifier = model.GetInterceptableLocation(node)!; 8291var locationSpecifier = model.GetInterceptableLocation(node)!; 8341var locationSpecifier = model.GetInterceptableLocation(node)!; 8399var locationSpecifier = model.GetInterceptableLocation(node)!; 8463var locationSpecifier = model.GetInterceptableLocation(node)!;
SourceGeneration\GeneratorDriverTests.cs (2)
4322record InterceptorInfo(InterceptableLocation locationSpecifier, object data); 4335var 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);