Interface ICodeConverter
Interface for code converter.
Namespace: Kephas.Conversion
Assembly: Kephas.CodeAnalysis.dll
Syntax
public interface ICodeConverter
Methods
| Improve this Doc View SourceConvertCodeAsync(IEnumerable<IElementInfo>, ICodeConversionContext, CancellationToken)
Converts the provided code elements to other code elements.
Declaration
Task<IEnumerable<IElementInfo>> ConvertCodeAsync(IEnumerable<IElementInfo> codeElements, ICodeConversionContext codeConversionContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IElementInfo> | codeElements | The code elements to convert. |
ICodeConversionContext | codeConversionContext | The conversion context. |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<IElementInfo>> | A promise of converted code elements. |