Skip to content

ILens 14

Latest

Choose a tag to compare

@tadis174 tadis174 released this 05 Dec 18:45

ILens 14

  • A member's line now writes its types with their namespaces where its short form would let one name stand for two different classes, as for a method that takes Shop.Alpha.Badge and Shop.Beta.Badge, which it wrote Convert(Badge, Badge), in list_members, find_methods, compare and every answer that names a member, such as analyze, call_sites, search_code and decompile's header
  • A member's line is now also written in full where a class it names shares its short name with the member's own class, as Shop.Alpha.Badge.Merge(Shop.Beta.Badge), which it wrote as if Merge took its own class; for an inherited member, decompile and compare read the class it comes from as well
  • The overloads of one name are now written in full where their lines name two classes of one short name, also where they read apart by another part, as list_members' Take(Shop.Alpha.Badge badge = null) beside Take(Shop.Beta.Badge badge), which it wrote short
  • Asked through an interface by the name of a member one of its base interfaces declares, decompile, analyze, call_sites and compare now find that member, as through a base class, instead of answering that it was not found
  • A name two base interfaces that do not derive from one another declare is now an error naming both members, as C# finds it ambiguous, and methods of such a name are overloads that parameter_count or parameter_types picks, unless they share one signature
  • list_members with include_inherited on an interface now lists the members of its base interfaces, each marked with the interface it comes from, and names the construction where two constructions of one generic interface bring members that read alike
  • Where ILens cannot read the library of an interface's base interfaces, list_members with include_inherited and the not-found error now name each base interface it could not read, where they said nothing of them
  • A name a type does not declare and System.Object does, such as ToString, Equals or GetHashCode on a class that does not override it, now means object's member: decompile and analyze answer with the error that names System.Object's file and the type's explicit implementations of the name a hint fits, instead of "not found" or an extension method of the name, which a hint that object's members do not fit still finds
  • analyze through another library's type by the name of a member one of its base types declares now answers for the type that declares it, as the code names it, where the assembly names the type asked about, instead of saying that the assembly references no member of the name
  • compare now reports an override of a System.Object method that only one build's class declares as only that build's, instead of an error
  • decompile through another library's type with a hint that fits no method of the name now names the type's methods and the extension methods of the name, where ILens read the type's library, instead of only where the type comes from
  • In an F# library, the classes and methods the F# compiler writes for lambdas, closures, sequence, task and object expressions and inner functions, and the fields it adds, now count as compiler-generated, so listing types or members and asking which ones implement or override something leave them out unless include_compiler_generated is set, and the line on what was left out counts them among the generated ones
  • In an F# library, who uses, reads or writes something now names the function a lambda, closure, sequence, task or object expression or inner function was written in, wherever F# put its class, instead of the class's generated method or no user at all
  • In an F# library, what a function uses now lists what the code in its lambdas, sequences, object expressions and inner functions uses, instead of the generated class's constructor or cached instance
  • In an F# program written as top-level code, its entry point main@ is now listed as a member and named as the user of what that code calls
  • In an F# library, call_sites and search_code now show a call or a line inside such code under the member that holds it in the decompiled code, a task expression's included, which search_code missed and call_sites counted as not shown
  • Comparing two builds of an F# library no longer reports every lambda class and lifted function as removed and added when lines move above it or when F# renumbers its classes of one name, and reports a changed lambda as a change of the function it was written in, whose C# view now shows the lambda's code after the function's
  • In an F# library, what a function, constructor or member uses now names the property whose value F# keeps in the field the code reads or writes, a module value, a member val, or a record's, an exception's or a union case's field, instead of that field under the name F# gave it, or nothing
  • In an F# library, who reads, sets or uses such a property now also lists the code outside its accessors that reads or writes its field, and the answer's first line names the backing field among what it consulted
  • In an F# library, asking who sets a get-only property whose value F# keeps in such a field, as a module value or a record's field, now lists the code that sets it, such as the static constructor of the file's startup class, instead of an error
  • In a C++/CLI library, the functions and global variables written outside any class, which C++/CLI keeps on the global type <Module>, are now listed by find_methods and by list_members of <Module>, named as users and used symbols by analyze, and searched by search_code over the assembly without include_compiler_generated, while what the compiler and its runtime add there, such as the static constructor, the dynamic initializers and the fields ending in $initializer$, stays left out unless it is set
  • In a C++/CLI library, the types whose names hold @ and the types in the namespaces <CppImplementationDetails> and <CrtImplementationDetails> now count as compiler-generated
  • compare now compares the global type <Module> of a C++/CLI library and reports a changed global function as a change of that function instead of a change of each method that calls it, and shows <Module> as changed, never as added or removed, where only one build's global type holds such code
  • In a C++/CLI library, call_sites now shows the calls in a global function whose address another function takes, such as a destructor passed to the runtime's unwind helper, under that function with their arguments, instead of counting them as not shown under the function that takes the address, and the answers on who uses something name that function
  • For a method Burst compiles, analyze now reports what Burst's copy of its code, X$BurstManaged, uses under the method itself: used_by and the other questions of who uses something name the method instead of the copy, and uses on the method lists what the copy uses
  • list_members and find_methods now leave out Burst's copy X$BurstManaged unless include_compiler_generated is set
  • uses on a method of Burst's wrapper class now lists what that method calls, instead of nothing
  • decompile of a method now shows the code the decompiler writes apart from it after the method, each part after a line // Generated: <member>: Burst's copy for a method Burst compiles, and for an F# function the code of its lambdas, closures, sequence, task and object expressions and inner functions
  • What a method uses now names the auto-property whose hidden backing field it reads or writes outside the property's accessors, such as a constructor that sets a get-only property, instead of leaving it out as compiler-generated
  • Who uses, reads or writes an auto-property now also lists the code that reads or writes its backing field, and the answer's first line names the backing field among what it consulted
  • Asking who sets a read-only auto-property now lists the code that sets it, such as its constructors, instead of an error
  • The Not checked: line on a parameter's keyword now gives each call the reason of the library it names, so two classes of one name from two libraries each get a line
  • The Not checked: line on a parameter's keyword no longer says that a class as loaded declares no such method when the library the call names was never found, as for a core type such as Unsafe
  • The Not checked: line for a class ILens could not read now names only the libraries its calls name
  • What a method uses now writes ref and the Not checked: line for a call into a library ILens did not find, also where another library has a class of the same name that declares the method, instead of that class's out, in or ref readonly
  • The header of an answer about who uses another assembly's method now writes ref and the Not checked: line where any reference to the method goes through a library ILens did not find, instead of the keyword of the first reference's class
  • The not-found error for a constructor now names the type alone, without its base types or extension methods
  • An unknown argument to a tool that takes no arguments now says that it takes none
  • A native library, a program database or a file of an unknown format now gets a sentence saying that it is no .NET assembly, instead of the reading library's internal error
  • Errors that list types of one name with different counts of type parameters now list them sorted by the printed name
  • The user guide describes every tool's parameters, answers and errors as this release gives them
  • The token-cost table in the README and the user guide is measured on 2026-12-05, against ICSharpCode.Decompiler.dll 11.2.0.10050