Class MappingSectionExtensions
Adds accept methods to MappingSection to visit the template's mappings
Inherited Members
Namespace: Firefly.CloudFormationParser.TemplateObjects.Traversal.AcceptExtensions
Assembly: Firefly.CloudFormationParser.dll
Syntax
public static class MappingSectionExtensions
Methods
| Improve this Doc View SourceAccept<TVisitor>(MappingSection, TVisitor)
Performs dispatch for the current object using the visitor's DoAccept method.
Declaration
public static MappingSection Accept<TVisitor>(this MappingSection self, TVisitor visitor)
where TVisitor : ITemplateObjectVisitor<NullTemplateObjectVisitorContext>
Parameters
| Type | Name | Description |
|---|---|---|
| MappingSection | self | The object accepting the visitor. |
| TVisitor | visitor | The visitor. |
Returns
| Type | Description |
|---|---|
| MappingSection | This dictionary |
Type Parameters
| Name | Description |
|---|---|
| TVisitor | The type of the visitor. |
Accept<TContext>(MappingSection, ITemplateObjectVisitor<TContext>, TContext)
Performs dispatch for the current object using the visitor's DoAccept method.
Declaration
public static MappingSection Accept<TContext>(this MappingSection self, ITemplateObjectVisitor<TContext> visitor, TContext context)
where TContext : ITemplateObjectVisitorContext<TContext>
Parameters
| Type | Name | Description |
|---|---|---|
| MappingSection | self | The object accepting the visitor. |
| ITemplateObjectVisitor<TContext> | visitor | The visitor. |
| TContext | context | The context. |
Returns
| Type | Description |
|---|---|
| MappingSection | This JToken |
Type Parameters
| Name | Description |
|---|---|
| TContext | The type of the context. |