Source

pypy / pypy / translator / cli / query.py

Author Commit Message Labels Comments Date
Antonio Cuni
(in-progress) copy the cli backend from the oo-jit branch
Antonio Cuni
mono 1.9 gives a different string as the assembly name of pypylib, need to put a workaround here. This fixes translation.
Antonio Cuni
a test to show that bound delegates actually work
Antonio Cuni
a much saner approach to handle dynamically generated delegates; they are converted to the equivalent StaticMethod, and called by indirect_call; this way, gencli automatically handles the generation of the corresponding delegate class. Hardcoded delegate classes are still used but only for testing, when we interprets things on pythonnet, so they have been moved to the pypy.test namespace.
Antonio Cuni
fix typeof of types defined in external assemblies
Antonio Cuni
add support to access classes defined in pypylib from rpython
Antonio Cuni
- add support for reading static fields of .NET classes - add support to value types
Antonio Cuni
prebuild the namespaces and types hierarchy, else the annotator gets confused because it thinks some getattr will fail.
Antonio Cuni
a big refactoring of query.py. Now info about types are loaded per-assembly instead of per-class, and they are not cached in pypy/_cache; this is much faster, and removes all that crappy [cli:query] logs.
Antonio Cuni
(Scoot Dial) apply the patch from Scott which fixes test_query on windows
Antonio Cuni
- Handle correctly circular dependencies when inspecting System.Type - Assert that box() can't throw any exception - Mangle also square brackets when constructing the Record name.
Antonio Cuni
Added support for creating arrays to .NET-types
Antonio Cuni
It seems that mono on snake uses a slighly different string representation for array types than the one on my box (notice that the two version are exactly the same!!).
Antonio Cuni
Initial support for passing Null value to native .NET methods.
Antonio Cuni
Group non-overloaded methods into a fake "overload" object with only one element to force signature checking.
Antonio Cuni
Initial array support: so far you can't create new arrays but only manipulate existing ones, and you can only get an item, not set.
Antonio Cuni
Don't ignore Void type.
Antonio Cuni
Automatically discover .NET type informations when requested by executing an external .NET utility. The type descriptions are cached and saved in the cli/query-descriptions file, so they don't need to be re-queried again next time. I coudn't set svn:ignore for query-descriptions because of a strange svn problem.