aspnetcore/test/Microsoft.AspNetCore.Blazor.../TestFiles/DesignTimeCodeGenerationTest
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 Add type checking for component parameters 2018-06-05 19:58:50 -07:00
BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties
BindToComponent_SpecifiesValue_WithMatchingProperties Add type checking for component parameters 2018-06-05 19:58:50 -07:00
BindToComponent_SpecifiesValue_WithoutMatchingProperties
BindToComponent_TypeChecked_WithMatchingProperties Add type checking for component parameters 2018-06-05 19:58:50 -07:00
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 Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithChildContent Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -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 Add type checking for component parameters 2018-06-05 19:58:50 -07:00
ChildComponent_WithGenericChildContent Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_WithGenericChildContent_SetsParameterName Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent Adds support for 'Context' parameters on components (#1470) 2018-09-24 12:22:16 -07:00
ChildComponent_WithLambdaEventHandler Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithNonPropertyAttributes Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_WithPageDirective Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
ChildComponent_WithParameters Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_WithWeaklyTypeEventHandler Fix #954 - use weak typing for 'event handlers' 2018-07-05 09:15:01 -07:00
ComponentParameter_TypeMismatch_ReportsDiagnostic Add type checking for component parameters 2018-06-05 19:58:50 -07:00
ComponentWithTypeParameters Add support for generic-typed components (#1417) 2018-09-16 14:01:15 -07:00
Component_WithDocType Fix #1169 ignore DOCTYPE 2018-07-23 17:42:47 -07:00
Component_WithRef Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
Component_WithRef_WithChildContent Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
Element_WithRef Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithDelegate
EventHandler_OnElement_WithEventArgsLambdaDelegate Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithEventArgsMethodGroup Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithLambdaDelegate
EventHandler_OnElement_WithNoArgMethodGroup Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
EventHandler_OnElement_WithNoArgsLambdaDelegate Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
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 Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
LeadingWhiteSpace_WithComponent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
LeadingWhiteSpace_WithDirective Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
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_InAttribute Add support for Razor templates 2018-08-31 19:10:42 -07:00
RazorTemplate_InCodeBlock Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
RazorTemplate_InCodeBlock_Dynamic Add support for Razor templates 2018-08-31 19:10:42 -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_MultipleRoots Add support for Razor templates 2018-08-31 19:10:42 -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 Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
Regression_773 Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
Regression_784
ScriptTag_WithErrorSuppressed Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
TrailingWhiteSpace_WithCSharpExpression Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
TrailingWhiteSpace_WithComponent Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00
TrailingWhiteSpace_WithDirective Add Support for Templated Components (#1404) 2018-09-10 18:59:51 -07:00