aspnetcore/test/Microsoft.AspNetCore.Blazor.../TestFiles/RuntimeCodeGenerationTest
Ryan Nowak 6f383a0f0f Adds support for 'Context' parameters on components (#1470)
Adds support for 'Context' parameters on components

This change allows you to set the parameter name of a parameterized child content by using the `Context` attribute on the component. The `Context` attribute will be defined (and shown by completion) when the component has one or more declared parameterized (`RenderFragment<>`) child content parameters.

This is nice for cases where you are using implicit child content:

```
<ol>
  <Repeater Items="People" Context="person">
    <li>@person.FirstName</li>
  </Repeater>
</ol>
```

 or, when you have multiple child content elements and want them all to have the same parameter name:

 ```
<MyComponent Items="People" Context="person">
    <ChildContent1><div>@person.FirstName</div></ChildContent1>
    <ChildContent2><div>@person.LastName</div></ChildContent2>
</Repeater>
```

The parameter name can be overridden by using the `Context` parameter on the child content element:

 ```
<MyComponent Items="People" Context="person">
    <ChildContent1 Context="item"><div>@item.FirstName</div></ChildContent1>
    <ChildContent2><div>@person.LastName</div></ChildContent2>
</Repeater>
```

If the component defines a `Context` parameter already then we won't synthesize one - your component's parameter will work exactly as it did before this feature.
2018-09-24 12:22:16 -07:00
..
AsyncEventHandler_OnElement_ActionEventArgs_Lambda
AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup
AsyncEventHandler_OnElement_Action_Lambda
AsyncEventHandler_OnElement_Action_MethodGroup
BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties
BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties
BindToComponent_SpecifiesValue_WithMatchingProperties
BindToComponent_SpecifiesValue_WithoutMatchingProperties
BindToComponent_TypeChecked_WithMatchingProperties
BindToElementFallback_WithFormat_WritesAttributes
BindToElementFallback_WritesAttributes
BindToElementWithSuffix_WritesAttributes
BindToElement_WritesAttributes
BodyAndAttributeChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
BodyAndExplicitChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
BuiltIn_BindToInputCheckbox_WritesAttributes
BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes
BuiltIn_BindToInputText_WithFormat_WritesAttributes
BuiltIn_BindToInputText_WritesAttributes
BuiltIn_BindToInputWithoutType_WritesAttributes
ChildComponent_Generic Add support for generic-typed components (#1417) 2018-09-16 14:01:15 -07:00
ChildComponent_GenericBind Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_GenericBindWeaklyTyped Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_GenericBindWeaklyTyped_TypeInference Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_GenericBind_TypeInference Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_GenericChildContent Add support for generic-typed components (#1417) 2018-09-16 14:01:15 -07:00
ChildComponent_GenericChildContent_TypeInference Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_GenericWeaklyTypedAttribute Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_GenericWeaklyTypedAttribute_TypeInference Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_Generic_TypeInference Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_Generic_TypeInference_Multiple Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_MultipleGenerics Add support for generic-typed components (#1417) 2018-09-16 14:01:15 -07:00
ChildComponent_MultipleGenerics_TypeInference Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_Simple
ChildComponent_WithChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithElementOnlyChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithExplicitChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithExplicitEventHandler
ChildComponent_WithExplicitGenericChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithExplicitStringParameter
ChildComponent_WithGenericChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithGenericChildContent_SetsParameterName Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent Adds support for 'Context' parameters on components (#1470) 2018-09-24 12:22:16 -07:00
ChildComponent_WithLambdaEventHandler
ChildComponent_WithNonPropertyAttributes
ChildComponent_WithPageDirective
ChildComponent_WithParameters
ChildComponent_WithWeaklyTypeEventHandler
ComponentParameter_TypeMismatch_ReportsDiagnostic
ComponentWithTypeParameters Add support for generic-typed components (#1417) 2018-09-16 14:01:15 -07:00
Component_WithDocType
Component_WithRef Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
Component_WithRef_WithChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
Element_WithRef Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
Element_WithRef_CSharpReservedWord
Element_WithRef_LeadingAt
Element_WithRef_NoLeadingAt
EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup
EventHandler_OnElement_WithDelegate Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithEventArgsLambdaDelegate
EventHandler_OnElement_WithEventArgsMethodGroup
EventHandler_OnElement_WithLambdaDelegate Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithNoArgMethodGroup
EventHandler_OnElement_WithNoArgsLambdaDelegate
EventHandler_OnElement_WithString
GenericComponent_WithComponentRef Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
GenericComponent_WithComponentRef_TypeInference Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
LeadingWhiteSpace_WithCSharpExpression
LeadingWhiteSpace_WithComponent
LeadingWhiteSpace_WithDirective
MultipleExplictChildContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_AsComponentParameter Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_AsComponentParameter_MixedContent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_ContainsComponent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_FollowedByComponent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_Generic_AsComponentParameter Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_Generic_InImplicitExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_InCodeBlock Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_InExplicitExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_InImplicitExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_NonGeneric_AsComponentParameter Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_NonGeneric_InImplicitExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
Regression_597
Regression_609
Regression_772
Regression_773
Regression_784
ScriptTag_WithErrorSuppressed
TrailingWhiteSpace_WithCSharpExpression
TrailingWhiteSpace_WithComponent
TrailingWhiteSpace_WithDirective