[Mono-list] ilasm trouble

Serge serge@wildwestsoftware.com
Tue, 19 Feb 2002 20:47:59 +0200


> Shouldn't the token representing the TypeRef for the parent class (ASTgen)
> be of the 0x01 kind, whereas it is a 0x02 ie. a TypeDef?!?

It should be TypeRef only if ASTgen defined in another module, otherwise
TypeDef can be used. Of course, TypeRef could be also used to define a type
is the same module. Using the specs wording: "it's bizarre, but legal, to
use a TypeRef token when the member is defined in this same module".


> Resolving member refs: 12430 -> 11648 defs, 782 refs
> What does this mean excactly?

Assembler is two-pass, at first it stubs tokens for some opcodes with
MemberRef placeholder (0xA), such opcodes are:
  call
  callvirt
  ldfld
  stfld
  newobj
etc.
You could see this by enabling listing output.
Then it resolves this with references to real tables, internal or external.

As for the main part of your question, at the moment I'm not sure what's
going wrong.

Sergey