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
BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties
BindToComponent_SpecifiesValue_WithMatchingProperties
BindToComponent_SpecifiesValue_WithoutMatchingProperties
BindToComponent_TypeChecked_WithMatchingProperties
BindToElementFallback_WithFormat_WritesAttributes
BindToElementFallback_WritesAttributes
BindToElementWithSuffix_WritesAttributes
BindToElement_WritesAttributes
BodyAndAttributeChildContent
BodyAndExplicitChildContent
BuiltIn_BindToInputCheckbox_WritesAttributes
BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes
BuiltIn_BindToInputText_WithFormat_WritesAttributes
BuiltIn_BindToInputText_WritesAttributes
BuiltIn_BindToInputWithoutType_WritesAttributes
ChildComponent_Generic
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
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
ChildComponent_MultipleGenerics_TypeInference Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_Simple
ChildComponent_WithChildContent Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_WithElementOnlyChildContent
ChildComponent_WithExplicitChildContent
ChildComponent_WithExplicitEventHandler
ChildComponent_WithExplicitGenericChildContent
ChildComponent_WithExplicitStringParameter
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
ChildComponent_WithNonPropertyAttributes Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_WithPageDirective
ChildComponent_WithParameters Add Type Inference for Generic-Typed Components 2018-09-20 12:19:26 -07:00
ChildComponent_WithWeaklyTypeEventHandler
ComponentParameter_TypeMismatch_ReportsDiagnostic
ComponentWithTypeParameters
Component_WithDocType
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
EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup
EventHandler_OnElement_WithDelegate
EventHandler_OnElement_WithEventArgsLambdaDelegate
EventHandler_OnElement_WithEventArgsMethodGroup
EventHandler_OnElement_WithLambdaDelegate
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
RazorTemplate_AsComponentParameter
RazorTemplate_AsComponentParameter_MixedContent
RazorTemplate_ContainsComponent
RazorTemplate_FollowedByComponent
RazorTemplate_Generic_AsComponentParameter
RazorTemplate_Generic_InImplicitExpression
RazorTemplate_InAttribute
RazorTemplate_InCodeBlock
RazorTemplate_InCodeBlock_Dynamic
RazorTemplate_InExplicitExpression
RazorTemplate_InImplicitExpression
RazorTemplate_MultipleRoots
RazorTemplate_NonGeneric_AsComponentParameter
RazorTemplate_NonGeneric_InImplicitExpression
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
TrailingWhiteSpace_WithCSharpExpression
TrailingWhiteSpace_WithComponent
TrailingWhiteSpace_WithDirective