@@ -120,35 +120,40 @@ private void GenerateAssemblyLookup()
120
120
{
121
121
if ( c . IncludeInStub ( ) )
122
122
{
123
- var className = NativeMethodsCrc . GetClassName ( c ) ;
124
-
125
- foreach ( var m in nanoTablesContext . GetOrderedMethods ( c . Methods ) )
123
+ // don't include if it's on the exclude list
124
+ if ( ! IsClassToExclude ( c ) )
126
125
{
127
- var rva = _tablesContext . ByteCodeTable . GetMethodRva ( m ) ;
126
+ var className = NativeMethodsCrc . GetClassName ( c ) ;
128
127
129
- // check method inclusion
130
- // method is not a native implementation (RVA 0xFFFF) and is not abstract
131
- if ( ( rva == 0xFFFF &&
132
- ! m . IsAbstract ) )
128
+ foreach ( var m in nanoTablesContext . GetOrderedMethods ( c . Methods ) )
133
129
{
134
- assemblyLookup . LookupTable . Add ( new Method ( )
135
- {
136
- Declaration = $ "Library_{ _project } _{ className } ::{ NativeMethodsCrc . GetMethodName ( m ) } "
137
- } ) ;
138
- }
139
- else
140
- {
141
- // method won't be included, still
142
- // need to add a NULL entry for it
143
- // unless it's on the exclude list
130
+ var rva = _tablesContext . ByteCodeTable . GetMethodRva ( m ) ;
144
131
145
- if ( ! IsClassToExclude ( c ) )
132
+ // check method inclusion
133
+ // method is not a native implementation (RVA 0xFFFF) and is not abstract
134
+ if ( ( rva == 0xFFFF &&
135
+ ! m . IsAbstract ) )
146
136
{
147
137
assemblyLookup . LookupTable . Add ( new Method ( )
148
138
{
149
- Declaration = "NULL "
139
+ Declaration = $ "Library_ { _project } _ { className } :: { NativeMethodsCrc . GetMethodName ( m ) } "
150
140
} ) ;
151
141
}
142
+ else
143
+ {
144
+ // method won't be included, still
145
+ // need to add a NULL entry for it
146
+ // unless it's on the exclude list
147
+
148
+ if ( ! IsClassToExclude ( c ) )
149
+ {
150
+ assemblyLookup . LookupTable . Add ( new Method ( )
151
+ {
152
+ Declaration = "NULL"
153
+ //Declaration = $"**Library_{_project}_{NativeMethodsCrc.GetClassName(c)}::{NativeMethodsCrc.GetMethodName(m)}"
154
+ } ) ;
155
+ }
156
+ }
152
157
}
153
158
}
154
159
}
@@ -160,11 +165,12 @@ private void GenerateAssemblyLookup()
160
165
161
166
if ( ! IsClassToExclude ( c ) )
162
167
{
163
- for ( int i = 0 ; i < c . Methods . Count ; i ++ )
168
+ foreach ( var m in nanoTablesContext . GetOrderedMethods ( c . Methods ) )
164
169
{
165
170
assemblyLookup . LookupTable . Add ( new Method ( )
166
171
{
167
172
Declaration = "NULL"
173
+ //Declaration = $"**Library_{_project}_{NativeMethodsCrc.GetClassName(c)}::{NativeMethodsCrc.GetMethodName(m)}"
168
174
} ) ;
169
175
}
170
176
}
0 commit comments