Table of Contents

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 IServiceProvider

IServiceProvider provides a custom support for the parser being created.

referencedAssemblies DesignerReferencedAssemblies

Collection of assemblies where the controls and components used on the form being designed are declared.

assemblyResources IEnumerable<DesignerAssemblyResources>

List of form assembly resources.

importedNamespaces DesignerImportedNamespaces

Collection of globally available namespaces.

designedComponentAssembly IDesignedComponentAssemblyProvider

IDesignedComponentAssemblyProvider used to retrieve data from specified assembly.

Returns

Parser

Parser object.