Home > Services > DXCore Services – Code Modification

DXCore Services – Code Modification

February 14th, 2012

The Code Mod (Modification) DXCore service provides APIs for code generation and code declaration, and access to the code provider extensions.

Methods of this service:

Method name

Description

CanShowSmartTagAsync( AsyncAvailabilityEventArgs) Return true if there’s at least one code provider available.
GenerateCode( LanguageElement) Generates the code of the given language element.
GenerateCode( LanguageElement, Boolean) Generates the code of the given language element. Optionally removes the trailing line terminator.
GetArgumentsCollection( LanguageElement) Returns arguments of the given language element.
GetAvailableCodeProviders Returns all available code providers.
GetDeclaration(LanguageElement) Returns the declaration of the given element.
GetElementType(LanguageElement) Returns the type of the undeclared element.
GetElementTypes(LanguageElement) Returns all possible types of the undeclared element.
HasDeclaration(LanguageElement) Returns true if the given element is declared.
IsInsideMacro(SourceFile, SourcePoint) Returns true if the there is a macro definition (C++) at the given source point in the specified source file.

Properties:

Property name

Description

AvailableCodeProviders Gets all available code providers.
CanShowSmartTag Return true if there’s at least one code provider available.
CodeProviders Gets all registered code providers.
Providers Gets all registered code providers.
ProvidersCount Gets the count of registered code providers.
—–
Products: DXCore
Versions: 11.2 and up
VS IDEs: 2008 and up
Updated: Feb/14/2012
ID: D139

Similar Posts: