/
Support Statement: adding/removing Stub Framework Content
Support Statement: adding/removing Stub Framework Content
Q: How can I add or remove an item from the generated stub file.
A: Use a Post-Analyse Refactor/Migrate migstatus attribute to set +referenced or -referenced.
The id indicated in the migrate must correspond to the source API location of the symbol being referenced or dereferenced. For enums, this is library scope even through the IDF may declare them at class scope.
In order for a symbol to be authored, its parent must be referenced.
Here is an example. I want to author a stub for LibName.EnumName.EntryName in the generated code. This can be done with the following refactor/migrate commands:
... <Analyse/> <Refactor> <Migrate id="LibName.ClassName" migStatus="+referenced"/> <Migrate id="LibName.EnumName" migStatus="+referenced"/> <Migrate id="LibName.EnumName.EntryName" migStatus="+referenced"/> </Refactor> Adds the following to the stub file for LibName: public class ClassName { public enum EnumName { EntryName= 9 }
To remove a stub member, set migStatus="-referenced".
, multiple selections available,
Related content
Support Statement: Stub Replacement
Support Statement: Stub Replacement
More like this
Support Statement: Partial Translations
Support Statement: Partial Translations
More like this
Migration Project Configuration Files
Migration Project Configuration Files
More like this
Support Statement: Override a routine in authortext.gmsl
Support Statement: Override a routine in authortext.gmsl
More like this
Support Statement: gmSL to move a variable declaration
Support Statement: gmSL to move a variable declaration
More like this
Custom COM Replacement
Custom COM Replacement
More like this