svenbarth
|
324e63b5d3
* a bit of language consolidation: "type helper" can now be used for records and classes as well
|
8 lat temu |
svenbarth
|
b6a3d66224
* adjust check for non-static class methods in class helpers in so far that only classes allow such methods (interfaces and objects would not either)
|
8 lat temu |
svenbarth
|
eef06e9bc6
* move the check whether a subclassed type helper extends a suitable subtype of the parent's extended type to a nested procedure
|
8 lat temu |
florian
|
b1dff29cbf
* removed unused units
|
8 lat temu |
maciej-izak
|
48b149acd4
New tokens for new management operators: Initialize, Finalize, AddRef and Copy. Small code adjustment for parser (pdecobj.pas, pstatmnt.pas, psub.pas, ptype.pas) was required because few of old token has from now value which is outside range of set: _CONSTRUCTOR, _FINALIZATION.
|
8 lat temu |
svenbarth
|
c2fec2e819
* if the objecttype of the forward declaration mismatches use the objecttype previously parsed; fixes access violation of webtbf/tw11970.pp
|
9 lat temu |
svenbarth
|
0df57b3c87
* forward declarations of helper types are not allowed, so enforce them by trying to parse a "for"; fixes access violation of thlp9.pp
|
9 lat temu |
svenbarth
|
d3660fec31
Implement support for parsing "generic [class] procedure" and "generic [class] function" in non-Delphi modes. Since "generic" is a prefix it is quite ugly to implement, but from a Pascal language point of view it fits better than "procedure generic xyz".
|
9 lat temu |
svenbarth
|
0ff87336aa
Convert the Boolean parameters accept_equal, typeonly and hadspecialize of comp_expr(), sub_expr() and factor() to a set parameter and adjust all calls.
|
9 lat temu |
svenbarth
|
d15cdefc37
pdecsub.pas:
|
10 lat temu |
svenbarth
|
17a0ac7fc0
pdecsub.pas:
|
10 lat temu |
yury
|
432248cbf1
* Removed lot of unused vars.
|
10 lat temu |
svenbarth
|
84b9d9839c
+ extend tobjectdef with the possiblity to create it as unregistered
|
10 lat temu |
florian
|
f1decfb6b6
* do not generate a vmt record for generics, they are only needed for specializations
|
10 lat temu |
Jonas Maebe
|
2dcd42d4f1
* fixed detection of an objcprotocols descending from a forward-defined
|
10 lat temu |
svenbarth
|
7b216d7fa6
Fix for Mantis #27120.
|
10 lat temu |
svenbarth
|
49a9f4c1ea
Fix for Mantis #26123.
|
11 lat temu |
svenbarth
|
639a59df92
Added support for partial specialization. This should fix a few problems with generics, the tests for which will be added in the next days after I've verified them.
|
11 lat temu |
Jonas Maebe
|
02d36c56f7
* fixed compilation (changes after testing :/ )
|
11 lat temu |
Jonas Maebe
|
5e1a895e95
* removed JVM-specific creation of methodpointertype and
|
11 lat temu |
Jonas Maebe
|
b57c95043f
+ support overriding tdef/tsym methods with target-specific functionality:
|
11 lat temu |
svenbarth
|
ddb78fefdc
Add a modeswitch for type helpers as discussed in core on 24th October 2013. It is disabled by default in all modes (afterall type helper support in Delphi started only beginning with XE3)
|
11 lat temu |
florian
|
4d5119bf1c
* fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables
|
11 lat temu |
svenbarth
|
798bb91e90
Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp.
|
12 lat temu |
svenbarth
|
76f6de5cf1
Refactor tobjectdef.find_implemented_interface out into unit defcmp so that the recently introduced cycle between symdef and defcmp can be broken again.
|
12 lat temu |
svenbarth
|
d91d4afb0f
Fix for Mantis #25210 .
|
12 lat temu |
florian
|
2fdd3e2d0a
+ introduce tvariantrecbranch to be able to store
|
12 lat temu |
Jonas Maebe
|
3a03586ca9
* give an error when declaring a class as conforming to a forward-declared
|
12 lat temu |
svenbarth
|
344571cb4e
Added support for type helpers. In non Delphi modes they use "type helper" and in mode Delphi they use "record helper". They can also be used on constants.
|
12 lat temu |
paul
|
7c663af588
compiler: also don't allow record constructors with only default arguments
|
12 lat temu |