Method CreateParser
- Namespace
- Alternet.FormDesigner.WinForms.Roslyn
- Assembly
- Alternet.FormDesigner.Roslyn.v10.dll
CreateParser(IServiceProvider, DesignerReferencedAssemblies, IEnumerable<DesignerAssemblyResources>, DesignerImportedNamespaces, IDesignedComponentAssemblyProvider)
Creates an object used to provide syntax analysis for the form designer code and generates a parsed representation.
public override Parser CreateParser(IServiceProvider serviceProvider, DesignerReferencedAssemblies referencedAssemblies, IEnumerable<DesignerAssemblyResources> assemblyResources, DesignerImportedNamespaces importedNamespaces, IDesignedComponentAssemblyProvider designedComponentAssembly)
Parameters
serviceProvider
IServiceProviderIServiceProvider provides a custom support for the parser being created.
referencedAssemblies
DesignerReferencedAssembliesCollection of assemblies where the controls and components used on the form being designed are declared.
assemblyResources
IEnumerable<DesignerAssemblyResources>List of form assembly resources.
importedNamespaces
DesignerImportedNamespacesCollection of globally available namespaces.
designedComponentAssembly
IDesignedComponentAssemblyProviderIDesignedComponentAssemblyProvider
used to retrieve data from specified assembly.
Returns
- Parser
Parser
object.