Class SvgGenerator
A generator to convert .svg files into Blazor components.
Assembly: Neon.Blazor.Analyzers.dll
Syntax
public class SvgGenerator : ISourceGenerator
Methods
Execute(GeneratorExecutionContext)
Declaration
public void Execute(GeneratorExecutionContext context)
Parameters
Type |
Name |
Description |
GeneratorExecutionContext |
context |
|
GetClassName(string)
Gets the class name fromt he svg file name.
Declaration
public static string GetClassName(string filePath)
Parameters
Type |
Name |
Description |
string |
filePath |
|
Returns
GetSvg(AdditionalText)
Declaration
public static SvgGenerator.Svg GetSvg(AdditionalText svgText)
Parameters
Type |
Name |
Description |
AdditionalText |
svgText |
|
Returns
Initialize(GeneratorInitializationContext)
Declaration
public void Initialize(GeneratorInitializationContext context)
Parameters
Type |
Name |
Description |
GeneratorInitializationContext |
context |
|