7 writes to BoundAttribute
Microsoft.CodeAnalysis.Razor.Compiler (7)
Language\Components\ComponentBindLoweringPass.cs (4)
574valueNode.BoundAttribute = valueAttribute; // Might be null if it doesn't match a component attribute 597changeNode.BoundAttribute = changeAttribute; // Might be null if it doesn't match a component attribute 624expressionNode.BoundAttribute = expressionAttribute; 663helperNode.BoundAttribute = valueAttribute;
Language\Intermediate\ComponentAttributeIntermediateNode.cs (3)
82BoundAttribute = propertyNode.BoundAttribute; 100BoundAttribute = node.BoundAttribute; 120BoundAttribute = node.BoundAttribute;
26 references to BoundAttribute
Microsoft.CodeAnalysis.Razor.Compiler (26)
Language\Components\ComponentDesignTimeNodeWriter.cs (5)
661if (node.BoundAttribute.Metadata is PropertyMetadata { IsInitOnlyProperty: true }) 764if ((node.BoundAttribute?.IsDelegateProperty() ?? false) || 765(node.BoundAttribute?.IsChildContentProperty() ?? false)) 784else if (node.BoundAttribute?.IsEventCallbackProperty() ?? false) 889return n.BoundAttribute != null && n.TypeName != null;
Language\Components\ComponentGenericTypePass.cs (6)
128if (attribute != null && TryFindGenericTypeNames(attribute.BoundAttribute, attribute.GloballyQualifiedTypeName, out var typeParameters)) 329var globallyQualifiedTypeName = attribute.BoundAttribute?.GetGloballyQualifiedTypeName(); 337if (attribute.BoundAttribute?.IsGenericTypedProperty() == true && attribute.TypeName != null) 355else if (attribute.BoundAttribute?.IsEventCallbackProperty() ?? false) 370else if (attribute.TypeName == null && (attribute.BoundAttribute?.IsDelegateProperty() ?? false)) 375else if (attribute.TypeName == null && (attribute.BoundAttribute?.IsEventCallbackProperty() ?? false))
Language\Components\ComponentNodeWriter.cs (4)
375if (allowNameof && attribute.BoundAttribute?.ContainingType is string containingType) 430if (attribute.BoundAttribute != null && !attribute.BoundAttribute.IsGenericTypedProperty()) 521else if (node.BoundAttribute?.GetGloballyQualifiedTypeName() is string typeName)
Language\Components\ComponentRuntimeNodeWriter.cs (6)
655Debug.Assert(attribute.BoundAttribute?.ContainingType is not null); 684if ((node.BoundAttribute?.IsDelegateProperty() ?? false) || 685(node.BoundAttribute?.IsChildContentProperty() ?? false)) 702else if (node.BoundAttribute?.IsEventCallbackProperty() ?? false) 796return n.BoundAttribute != null && !n.BoundAttribute.IsWeaklyTyped;
Language\Intermediate\ComponentAttributeIntermediateNode.cs (5)
150public TagHelperDescriptor TagHelper => BoundAttribute?.Parent; 177formatter.WriteProperty(nameof(BoundAttribute), BoundAttribute?.DisplayName); 202if (BoundAttribute == null || !BoundAttribute.IsEventCallbackProperty())