78 references to TypeName
Microsoft.AspNetCore.Razor.Language.UnitTests (1)
IntegrationTests\CodeGenerationIntegrationTest.cs (1)
463public {{attribute.TypeName}} {{attribute.PropertyName}}
Microsoft.CodeAnalysis.Razor.Compiler (20)
Language\Components\ComponentBindLoweringPass.cs (3)
576valueNode.TypeName = valueAttribute?.IsWeaklyTyped == false ? valueAttribute.TypeName : null; 599changeNode.TypeName = changeAttribute?.IsWeaklyTyped == false ? changeAttribute.TypeName : null; 626expressionNode.TypeName = expressionAttribute.IsWeaklyTyped ? null : expressionAttribute.TypeName;
Language\Components\ComponentGenericTypePass.cs (2)
283typeParameters = ParseTypeParameters(globallyQualifiedTypeName ?? boundAttribute.TypeName); 286typeParameters = new[] { boundAttribute.TypeName };
Language\Components\ComponentLoweringPass.cs (1)
576TypeName = attribute?.TypeName ?? ComponentsApi.RenderFragment.FullTypeName,
Language\Components\TagHelperBoundAttributeDescriptorExtensions.cs (1)
58attribute.TypeName != ComponentsApi.RenderFragment.FullTypeName;
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (2)
156var propertyType = match.IsIndexerMatch ? match.Attribute.IndexerTypeName : match.Attribute.TypeName; 181var propertyType = match.IsIndexerMatch ? match.Attribute.IndexerTypeName : match.Attribute.TypeName;
Language\Extensions\DefaultTagHelperTargetExtension.cs (4)
375assignmentPrefixLength += $"global::{node.BoundAttribute.TypeName}.".Length; 383.Write($"global::{node.BoundAttribute.TypeName}."); 418.Write($"global::{node.BoundAttribute.TypeName}."); 554var expectedTypeName = property.IsIndexerNameMatch ? property.BoundAttribute.IndexerTypeName : property.BoundAttribute.TypeName;
Language\Intermediate\ComponentAttributeIntermediateNode.cs (2)
86TypeName = propertyNode.BoundAttribute.IsWeaklyTyped ? null : propertyNode.BoundAttribute.TypeName; 106: node.BoundAttribute.TypeName;
Language\Legacy\TagHelperBlockRewriter.cs (1)
483: match.Attribute.TypeName;
Language\TagHelpers\Producers\BindTagHelperProducer.cs (1)
512attribute.TypeName = changeAttribute.TypeName;
Mvc\ModelExpressionPass.cs (1)
38if (string.Equals(node.BoundAttribute.TypeName, ModelExpressionTypeName, StringComparison.Ordinal) ||
Mvc\ViewComponentTagHelperTargetExtensionBase.cs (2)
125attribute.TypeName, 131.WriteStartNewObject(attribute.TypeName)
Microsoft.CodeAnalysis.Razor.UnitTests (50)
BindTagHelperProducerTest.cs (4)
164Assert.Equal("System.Action<System.String>", attribute.TypeName); 327Assert.Equal("Microsoft.AspNetCore.Components.EventCallback<System.String>", attribute.TypeName); 509Assert.Equal("System.Object", attribute.TypeName); 1090Assert.Equal("System.Collections.Generic.Dictionary<string, object>", attribute.TypeName);
ComponentTagHelperProducerTest.cs (41)
121Assert.Equal("System.String", attribute.TypeName); 182Assert.Equal("System.String", a.TypeName); 190Assert.Equal("System.Type", a.TypeName); 229Assert.Equal("System.String", attribute.TypeName); 336Assert.Equal("System.Boolean", attribute.TypeName); 384Assert.Equal("Test.MyEnum", attribute.TypeName); 427Assert.Equal("System.String", attribute.TypeName); 475Assert.Equal("T", a.TypeName); 484Assert.Equal("System.Type", a.TypeName); 532Assert.Equal("T", a.TypeName); 538Assert.Equal("U", a.TypeName); 544Assert.Equal("V", a.TypeName); 599Assert.Equal("System.Action<System.EventArgs>", attribute.TypeName); 647Assert.Equal("System.Action<T>", a.TypeName); 662Assert.Equal("System.Type", a.TypeName); 701Assert.Equal("Microsoft.AspNetCore.Components.EventCallback", attribute.TypeName); 750Assert.Equal("Microsoft.AspNetCore.Components.EventCallback<System.EventArgs>", a.TypeName); 800Assert.Equal("Microsoft.AspNetCore.Components.EventCallback<T>", a.TypeName); 816Assert.Equal("System.Type", a.TypeName); 855Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", attribute.TypeName); 910Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment<System.String>", a.TypeName); 935Assert.Equal("System.String", contextAttribute.TypeName); 980Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment<System.String>", a.TypeName); 1005Assert.Equal("System.String", contextAttribute.TypeName); 1047Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment<T>", a.TypeName); 1069Assert.Equal("System.Type", a.TypeName); 1081Assert.Equal("System.String", contextAttribute.TypeName); 1124Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment<System.Collections.Generic.List<System.String>>", a.TypeName); 1146Assert.Equal("System.Type", a.TypeName); 1158Assert.Equal("System.String", contextAttribute.TypeName); 1201Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment<System.Collections.Generic.List<T>>", a.TypeName); 1223Assert.Equal("System.Type", a.TypeName); 1235Assert.Equal("System.String", contextAttribute.TypeName); 1282Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment<Test.MyComponent<T>.Context>", a.TypeName); 1304Assert.Equal("System.Type", a.TypeName); 1316Assert.Equal("System.String", contextAttribute.TypeName); 1363Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); 1374Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment<System.String>", a.TypeName); 1380Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment<System.String>", a.TypeName); 1501Assert.Equal("System.String", a.TypeName); 1506Assert.Equal("System.String", a.TypeName);
EventHandlerTagHelperProducerTest.cs (2)
115Assert.Equal("Microsoft.AspNetCore.Components.EventCallback<System.Action<Microsoft.AspNetCore.Components.Web.MouseEventArgs>>", attribute.TypeName); 249Assert.Equal("Microsoft.AspNetCore.Components.EventCallback<System.Action<Microsoft.AspNetCore.Components.Web.MouseEventArgs>>", attribute.TypeName);
KeyTagHelperProducerTest.cs (1)
83Assert.Equal("System.Object", attribute.TypeName);
RefTagHelperProducerTest.cs (1)
83Assert.Equal("System.Object", attribute.TypeName);
SplatTagHelperProducerTest.cs (1)
80Assert.Equal("System.Object", attribute.TypeName);
Microsoft.CodeAnalysis.Razor.Workspaces (6)
CodeActions\Razor\GenerateEventHandlerCodeActionProvider.cs (4)
136ComponentAttributeIntermediateNode.TryGetEventCallbackArgument(attribute.TypeName.AsMemory(), out var argument)) 193if (ComponentAttributeIntermediateNode.TryGetEventCallbackArgument(attribute.TypeName.AsMemory(), out var argument)) 206ComponentAttributeIntermediateNode.TryGetGenericActionArgument(attribute.TypeName.AsMemory(), genericType, out var argument)) 213if (ComponentAttributeIntermediateNode.TryGetActionArgument(attribute.TypeName.AsMemory(), out var argument))
Completion\TagHelperCompletionProvider.cs (1)
358else if (boundAttributes.Any(static b => b.TypeName == BooleanTypeString))
Tooltip\BoundAttributeDescriptionInfo.cs (1)
36var returnTypeName = isIndexer ? boundAttribute.IndexerTypeName : boundAttribute.TypeName;
Microsoft.CodeAnalysis.Remote.Razor (1)
DevTools\RemoteDevToolsService.cs (1)
131a.TypeName,