@@ -120,35 +120,40 @@ private void GenerateAssemblyLookup()
120120 {
121121 if ( c . IncludeInStub ( ) )
122122 {
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 ) )
126125 {
127- var rva = _tablesContext . ByteCodeTable . GetMethodRva ( m ) ;
126+ var className = NativeMethodsCrc . GetClassName ( c ) ;
128127
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 ) )
133129 {
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 ) ;
144131
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 ) )
146136 {
147137 assemblyLookup . LookupTable . Add ( new Method ( )
148138 {
149- Declaration = "NULL "
139+ Declaration = $ "Library_ { _project } _ { className } :: { NativeMethodsCrc . GetMethodName ( m ) } "
150140 } ) ;
151141 }
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+ }
152157 }
153158 }
154159 }
@@ -160,11 +165,12 @@ private void GenerateAssemblyLookup()
160165
161166 if ( ! IsClassToExclude ( c ) )
162167 {
163- for ( int i = 0 ; i < c . Methods . Count ; i ++ )
168+ foreach ( var m in nanoTablesContext . GetOrderedMethods ( c . Methods ) )
164169 {
165170 assemblyLookup . LookupTable . Add ( new Method ( )
166171 {
167172 Declaration = "NULL"
173+ //Declaration = $"**Library_{_project}_{NativeMethodsCrc.GetClassName(c)}::{NativeMethodsCrc.GetMethodName(m)}"
168174 } ) ;
169175 }
170176 }
0 commit comments