@@ -10,29 +10,26 @@ namespace Microsoft.AspNetCore.Razor.Language;
10
10
public sealed class BoundAttributeParameterDescriptor : TagHelperObject < BoundAttributeParameterDescriptor >
11
11
{
12
12
private readonly BoundAttributeParameterFlags _flags ;
13
- private readonly DocumentationObject _documentationObject ;
14
- private readonly TypeNameObject _typeNameObject ;
15
-
16
13
private BoundAttributeDescriptor ? _parent ;
17
14
private string ? _displayName ;
18
15
19
16
public BoundAttributeParameterFlags Flags => _flags ;
20
17
public string Name { get ; }
21
18
public string PropertyName { get ; }
22
- public string TypeName => _typeNameObject . GetTypeName ( ) . AssumeNotNull ( ) ;
19
+ public string TypeName => TypeNameObject . GetTypeName ( ) . AssumeNotNull ( ) ;
23
20
public string DisplayName => _displayName ??= ":" + Name ;
24
21
25
- public string ? Documentation => _documentationObject . GetText ( ) ;
22
+ public string ? Documentation => DocumentationObject . GetText ( ) ;
23
+
24
+ internal TypeNameObject TypeNameObject { get ; }
25
+ internal DocumentationObject DocumentationObject { get ; }
26
26
27
27
public bool CaseSensitive => _flags . IsFlagSet ( BoundAttributeParameterFlags . CaseSensitive ) ;
28
28
public bool IsEnum => _flags . IsFlagSet ( BoundAttributeParameterFlags . IsEnum ) ;
29
- public bool IsStringProperty => _typeNameObject . IsString ;
30
- public bool IsBooleanProperty => _typeNameObject . IsBoolean ;
29
+ public bool IsStringProperty => TypeNameObject . IsString ;
30
+ public bool IsBooleanProperty => TypeNameObject . IsBoolean ;
31
31
public bool BindAttributeGetSet => _flags . IsFlagSet ( BoundAttributeParameterFlags . BindAttributeGetSet ) ;
32
32
33
- internal TypeNameObject TypeNameObject => _typeNameObject ;
34
- internal DocumentationObject DocumentationObject => _documentationObject ;
35
-
36
33
internal BoundAttributeParameterDescriptor (
37
34
BoundAttributeParameterFlags flags ,
38
35
string name ,
@@ -46,13 +43,13 @@ internal BoundAttributeParameterDescriptor(
46
43
47
44
Name = name ;
48
45
PropertyName = propertyName ;
49
- _typeNameObject = typeNameObject ;
50
- _documentationObject = documentationObject ;
46
+ TypeNameObject = typeNameObject ;
47
+ DocumentationObject = documentationObject ;
51
48
}
52
49
53
50
private protected override void BuildChecksum ( in Checksum . Builder builder )
54
51
{
55
- builder . AppendData ( ( byte ) Flags ) ;
52
+ builder . AppendData ( ( byte ) _flags ) ;
56
53
builder . AppendData ( Name ) ;
57
54
builder . AppendData ( PropertyName ) ;
58
55
0 commit comments