Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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
      }



  • No labels