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