Joao Matos
|
570c569217
|
Add some helper class hierarchy methods.
|
5 years ago |
Joao Matos
|
503aad6c7a
|
Fix code to use BaseClass property instead of first base.
The first base could be ignored, BaseClass does the right thing.
|
5 years ago |
Dimitar Dobrev
|
0fd4307b81
|
Generate C++ for constructors of abstract types
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
5 years ago |
josetr
|
051ebb82b3
|
Remove `Layout.GetSize()` method as it's no longer relevant (#1474)
|
5 years ago |
Dimitar Dobrev
|
65b17fc958
|
Optimize calls to base getters in properties
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
499ecc3b89
|
Simplify searching for base properties
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Dimitar Dobrev
|
d90d3283e4
|
Generate with no hacks correctly sized layouts
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
6 years ago |
Joao Matos
|
8bf27c43e5
|
Skip ignored bases in `ClassExtensions.GetBaseProperty`.
|
7 years ago |
Dimitar Dobrev
|
8427ff8e92
|
Optimized the walking of the managed AST.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
7 years ago |
Dimitar Dobrev
|
ae9eede6f1
|
Fixed a crash when a constructor takes a template or specialisation.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
fceb204a98
|
Fixed the generated C# for members of types nested in templates.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Joao Matos
|
39749ee0b7
|
Improve get base method and property methods to work with generalized declarations.
|
8 years ago |
Dimitar Dobrev
|
5ca93458a2
|
Fixed the generation of internals for template specialisations.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
d4d6354621
|
Removed unused internals from the generated C#.
Fixes https://github.com/mono/CppSharp/issues/936.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
e0816d9dc6
|
Fixed the generated C# for increment and decrement operators.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
2f2f13f352
|
Deleted an unused method.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
d3e8cc51d5
|
Further simplified the getting of base methods from only the primary bases.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
e0367c5601
|
Simplified the getting of base methods from only the primary bases.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
0c22c4deb7
|
Simplified the generation of C# for base calls.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
e62651a954
|
Fixed the getting of base methods to include ignored ones.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
9c0f80f69d
|
Bound the supported specialisations with generic syntax in the generated C#. (#880)
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Joao Matos
|
2e2310a159
|
Remove some dead code from ClassExtensions.cs.
|
9 years ago |
Dimitar Dobrev
|
a4dfeb94be
|
Moved the marking of supported template specialisations to a pass.
This allows custom passes to add other specialisations to support.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
d419cb7156
|
Added all system fields to the internal layouts used in the C# generator.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
3cd024cccf
|
Added marshalling of std::string to the C# end.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
f8863f941b
|
Extracted the logic for getting wrapped units.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
4ca34405dc
|
Fixed the wrapping of virtual members when changing access in overrides.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
517b1a5ccd
|
Saved the offsets per base in the layout of a record.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
a5a17a493e
|
Changed the comparer for parameter types to a singleton.
The class has no fields so the same value was allocated many times, it was wasteful.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
10 years ago |
Dimitar Dobrev
|
d3644dcf5d
|
Fixed a crash with abstract overrides originating from secondary bases.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
10 years ago |
Dimitar Dobrev
|
8a68d2d16c
|
Fixed the generation of overrides of virtuals from secondary bases.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
39a368894d
|
Reformatted the extension methods for classes.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
6f8c942b0a
|
Adjusted pointers when calling functions from secondary or non-dynamic bases.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
784a939c66
|
Ensured generated overridden properties are as simple as possible.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
4e981a80e6
|
Fixed a bug when wrapping virtual properties overridden in indirect derived types.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
dc95c8d8c8
|
Fixed the bodies of functions overriding indirect virtuals.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
fa0e66687d
|
Fixed abstract implementations and bodies of overrides to properly handle abstract overrides.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
d769a81ade
|
Called virtual destructors through the virtual table.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
c8da628782
|
Fixed the renaming of overrides in a certain situation.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
8fd62e6294
|
Fixed a bug with removing the "override" modifier when overriding a member of a secondary base.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
f09a49b353
|
Removed three hacks about method objects in v-tables.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
597922c1db
|
Stopped at an ignored base when getting the root one.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
73e9455821
|
Put own (created in managed code) objects in the object map upon creation.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
10 years ago |
Dimitar Dobrev
|
c7253b456b
|
Fixed the assigment of structs with private fields.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
9e480dd364
|
Fixed the renaming pass to account for overloads of functions.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/AST/Class.cs
src/Generator.Tests/Passes/TestPasses.cs
src/Generator/Generators/CSharp/CSharpTypePrinter.cs
|
11 years ago |
marcos henrich
|
de764599fa
|
Separated IsTagDecl into TryGetClass and TryGetEnum, added IsClass() and IsEnum().
|
11 years ago |
marcos henrich
|
3f96bdbfe3
|
Replaced declaration IgnoreFlags by GenerationKind. Added methods IsInternal and IsDeclared to declaration. Replaced IsGenerated = true by GeneratioKind = GeneratioKind.Internal. Deprecated Ignore, replace Ignore set by ExplicityIgnored, replace Ignore get by IsGenerated, IsInternal or IsDeclared.
Conflicts:
src/Generator/Passes/CheckOperatorsOverloads.cs
|
11 years ago |
Øystein Krog
|
e0812abbd7
|
Move helper methods in Class out from class and into extension class ClassExtensions
|
12 years ago |