Commit Graph

711 Commits

Author SHA1 Message Date
Mattias Gaertner
e50916a93c pastojs: specialize array type using pascal name
git-svn-id: trunk@46793 -
2020-09-07 12:24:19 +00:00
Mattias Gaertner
a577fa3e58 pastojs: specialized procedure type RTTI now uses pascal name
git-svn-id: trunk@46792 -
2020-09-07 11:10:40 +00:00
Mattias Gaertner
43aa4c6b40 pastojs: override specialize name
git-svn-id: trunk@46787 -
2020-09-06 09:06:30 +00:00
Mattias Gaertner
fc4c48a11c pastojs: override scope class array and proctype
git-svn-id: trunk@46768 -
2020-09-04 17:17:46 +00:00
Mattias Gaertner
05edd719d5 pastojs: delay RTTI init of dynamic and static array specializations
git-svn-id: trunk@46749 -
2020-09-02 14:03:26 +00:00
Mattias Gaertner
4db51d69e4 pastojs: delay RTTI init of record/class/proctype specializations
git-svn-id: trunk@46748 -
2020-09-02 12:42:55 +00:00
Mattias Gaertner
6a0ea119e9 pastojs: fixed concat(a) calling arrayRef
git-svn-id: trunk@46745 -
2020-09-01 22:01:52 +00:00
Mattias Gaertner
37eb8c02f5 pastojs: clean up, comments
git-svn-id: trunk@46724 -
2020-08-28 17:23:54 +00:00
Mattias Gaertner
7a87452764 pastojs: GetTypeKind
git-svn-id: trunk@46705 -
2020-08-26 20:30:56 +00:00
Mattias Gaertner
7e8b9122dd pastojs: started hub for shared values
git-svn-id: trunk@46452 -
2020-08-15 16:57:11 +00:00
Mattias Gaertner
3f87b2a4f6 pastojs: fixed except-ExtClass-on
git-svn-id: trunk@46324 -
2020-08-08 10:48:14 +00:00
Mattias Gaertner
8dbf8ae823 pastojs: (a as b)[]
git-svn-id: trunk@45966 -
2020-07-29 22:14:07 +00:00
Mattias Gaertner
091862cd88 pastojs: added include file and test specializations are created later
git-svn-id: trunk@45863 -
2020-07-26 12:05:23 +00:00
Mattias Gaertner
ff47dc09e7 pas2js: fixed assign record with field of dynamic array
git-svn-id: trunk@45742 -
2020-07-08 09:31:09 +00:00
Mattias Gaertner
8e7a51065f pas2js: fixed try exit(value) finally read Result end
git-svn-id: trunk@45714 -
2020-06-29 21:08:44 +00:00
Mattias Gaertner
dbc0a689f0 pas2js: Pascal descendent from JS function: inherited calls ancestor function
git-svn-id: trunk@45709 -
2020-06-28 16:18:26 +00:00
Mattias Gaertner
27bb90fcc8 pas2js: Pascal descendent from JS function: inherited calls ancestor function
git-svn-id: trunk@45708 -
2020-06-28 15:55:31 +00:00
Mattias Gaertner
8d2e9b2f75 pas2js: descend pascal class from jsfunction
git-svn-id: trunk@45700 -
2020-06-27 07:02:42 +00:00
Mattias Gaertner
120eb6b8a2 pas2js: fixed system.inc()
git-svn-id: trunk@45660 -
2020-06-20 09:34:44 +00:00
Mattias Gaertner
8b84d925fb pas2js: search no namespace, cmd line namespaces, default prg namespace, issue #37206
git-svn-id: trunk@45650 -
2020-06-13 20:58:47 +00:00
Mattias Gaertner
f26afe4a6a pas2js: started delayed specialize
git-svn-id: trunk@45640 -
2020-06-12 19:54:55 +00:00
Mattias Gaertner
810ec836dd pas2js: started aliasglobals external types
git-svn-id: trunk@45634 -
2020-06-10 19:45:44 +00:00
Mattias Gaertner
8a9178f00a pas2js: aliasglobals: local var for module
git-svn-id: trunk@45626 -
2020-06-08 18:00:59 +00:00
Mattias Gaertner
bac9437d73 pas2js: allocate local vars considering parent functions local vars
git-svn-id: trunk@45625 -
2020-06-08 13:07:18 +00:00
Mattias Gaertner
f642f6b609 pas2js: transformmodulename: use local var
git-svn-id: trunk@45615 -
2020-06-07 20:25:51 +00:00
Mattias Gaertner
469993a0cc pas2js: started aliasglobals
git-svn-id: trunk@45611 -
2020-06-07 18:17:22 +00:00
Mattias Gaertner
621519303b pas2js: specialized rtti with forward class
git-svn-id: trunk@45589 -
2020-06-06 12:47:41 +00:00
Mattias Gaertner
f5025f7856 fcl-passrc: fixed mem leak on error parsing generic
git-svn-id: trunk@45588 -
2020-06-05 22:09:05 +00:00
Mattias Gaertner
17850b3bb7 pas2js: parse $optimization
git-svn-id: trunk@45587 -
2020-06-05 15:45:27 +00:00
Mattias Gaertner
dbc2d630c0 pas2js: fixed rtti record field anonymous array
git-svn-id: trunk@45574 -
2020-06-03 13:25:15 +00:00
Mattias Gaertner
f94221d788 pas2js: rename overloads in specialized members
git-svn-id: trunk@45563 -
2020-06-01 23:34:36 +00:00
Mattias Gaertner
67ba0641fc pas2js: fixed check if specialized class interface is needed
git-svn-id: trunk@45545 -
2020-06-01 11:50:08 +00:00
Mattias Gaertner
9df74570a6 pas2js: filer: restore specialize class
git-svn-id: trunk@45537 -
2020-05-31 09:10:11 +00:00
Mattias Gaertner
73a2b46263 fcl-passrc: specialize varargs of t
git-svn-id: trunk@45526 -
2020-05-29 12:48:42 +00:00
Mattias Gaertner
4637a882d5 pas2js: async function exit(promise)
git-svn-id: trunk@45523 -
2020-05-28 16:54:22 +00:00
Mattias Gaertner
b6e2a228d3 pas2js: async proc type
git-svn-id: trunk@45517 -
2020-05-27 12:32:14 +00:00
Mattias Gaertner
c305689305 pas2js: calling async function returns promise, await(async proc);
git-svn-id: trunk@45506 -
2020-05-26 08:48:14 +00:00
Mattias Gaertner
18fdc0675e pas2js: function await(atype; p:TJSPromise):atype
git-svn-id: trunk@45443 -
2020-05-20 07:28:42 +00:00
Mattias Gaertner
b92ffac29a pas2js: built-in function await(const expr: T): T
git-svn-id: trunk@45442 -
2020-05-19 21:53:46 +00:00
Mattias Gaertner
a501be1b2b pas2js: async procedure modifier
git-svn-id: trunk@45435 -
2020-05-19 12:44:11 +00:00
Mattias Gaertner
375cfbf25c undo
git-svn-id: trunk@45433 -
2020-05-19 12:43:30 +00:00
Mattias Gaertner
23e7ced100 fcl-passrc: fixed parsing case statement without semicolon before else, added comments
git-svn-id: trunk@45432 -
2020-05-19 12:42:25 +00:00
Mattias Gaertner
fef402f6e6 pas2js: safecall for procedure
git-svn-id: trunk@45416 -
2020-05-18 10:46:54 +00:00
Mattias Gaertner
9a954d384a pas2js: safecall calling convention for of-object proctypes
git-svn-id: trunk@45392 -
2020-05-16 20:51:23 +00:00
Mattias Gaertner
042ad497d3 pas2js: ArrayOfChar:=String, pass string to ArrayOfChar
git-svn-id: trunk@45321 -
2020-05-09 20:14:21 +00:00
Mattias Gaertner
cf441f6ffa pas2js: setlength dyn array of static array
git-svn-id: trunk@45315 -
2020-05-09 08:33:30 +00:00
Mattias Gaertner
4ff4c2456d pas2js: error on compare static array
git-svn-id: trunk@45309 -
2020-05-08 08:46:41 +00:00
Mattias Gaertner
da799883dd pas2js: type helper for wordbool
git-svn-id: trunk@45295 -
2020-05-06 19:31:43 +00:00
Mattias Gaertner
86cfd866f4 pas2js: started array SetLength using resize and hidden boolean to mark referenced arrays
git-svn-id: trunk@45294 -
2020-05-06 19:13:33 +00:00
Mattias Gaertner
2f1fba51cc pas2js: fixed type helper nested procedure Self
git-svn-id: trunk@45123 -
2020-04-26 20:08:13 +00:00
Mattias Gaertner
4f7882c8af fcl-passrc: fixed type helper intdouble/uintdouble
git-svn-id: trunk@45121 -
2020-04-26 19:23:54 +00:00
Mattias Gaertner
1af626817e fcl-passrc: resolver: mode delphi: allow member with same name as ancestor member
git-svn-id: trunk@45054 -
2020-04-24 16:38:34 +00:00
Mattias Gaertner
f7ddf90bdd pastojs: fixed with-do x, where x is in helper and class
git-svn-id: trunk@44432 -
2020-03-30 12:06:57 +00:00
Mattias Gaertner
997c8089a6 pastojs: filer: started pending specialize
git-svn-id: trunk@44388 -
2020-03-28 16:32:32 +00:00
Mattias Gaertner
1bf392a726 pas2js: typeinfo(specialization)
git-svn-id: trunk@44220 -
2020-02-20 10:35:44 +00:00
Mattias Gaertner
b802ee6450 pas2js: not storing specialized elements
git-svn-id: trunk@44219 -
2020-02-20 09:29:10 +00:00
Mattias Gaertner
40a975b803 fcl-passrc: fixed alias type of member type
git-svn-id: trunk@44202 -
2020-02-17 11:40:50 +00:00
Mattias Gaertner
bde36ab7a0 pas2js: allow ExtClass<JSValue>:=ExtClass<Word>
git-svn-id: trunk@44173 -
2020-02-14 17:05:14 +00:00
Mattias Gaertner
35dbf673ee pas2js: no warning on typecast TGen<JSValue>(aGen<Word>) or TGen<Word>(aGen<JSValue>)
git-svn-id: trunk@44169 -
2020-02-14 16:29:31 +00:00
Mattias Gaertner
b1900bae9e pastojs: rename unit implementation const
git-svn-id: trunk@44146 -
2020-02-10 16:42:58 +00:00
Mattias Gaertner
5498835ad8 fcl-passrc: resolver: typecast unrelated classes: only warn instead of error
git-svn-id: trunk@44137 -
2020-02-09 13:36:58 +00:00
Mattias Gaertner
2d9975fdcc pastojs: filer: generic class
git-svn-id: trunk@43960 -
2020-01-16 21:23:15 +00:00
Mattias Gaertner
e741c6aadd pastojs: filer: anonymous procedure
git-svn-id: trunk@43953 -
2020-01-15 21:06:56 +00:00
Mattias Gaertner
f3249cfe4d pastojs: filer: try-except
git-svn-id: trunk@43952 -
2020-01-15 20:53:38 +00:00
Mattias Gaertner
4f2861be1a pastojs: filer: with-do
git-svn-id: trunk@43951 -
2020-01-15 19:36:33 +00:00
Mattias Gaertner
513d89757b pastojs: filer: read/write assign, asm, repeat, if
git-svn-id: trunk@43890 -
2020-01-08 16:22:12 +00:00
Mattias Gaertner
fa434f2790 pastojs: filer: started read/write implelements
git-svn-id: trunk@43873 -
2020-01-06 16:54:18 +00:00
Mattias Gaertner
0a9048a9a4 pastojs: filer: store generic procedure body
git-svn-id: trunk@43853 -
2020-01-03 19:52:54 +00:00
Mattias Gaertner
a3a67b13d8 fcl-passrc: allow using unit twice with different alias
git-svn-id: trunk@43810 -
2019-12-29 21:34:03 +00:00
Mattias Gaertner
12084211bf pastojs: filer: warn for generics
git-svn-id: trunk@43690 -
2019-12-15 14:06:15 +00:00
Mattias Gaertner
c8a3a11a26 pastojs: treat constref as const, warn for non record/array
git-svn-id: trunk@43689 -
2019-12-15 14:05:28 +00:00
Mattias Gaertner
4ad0d137b1 pastojs: write generic function without body
git-svn-id: trunk@43517 -
2019-11-20 16:59:33 +00:00
Mattias Gaertner
70ed2470dc pastojs: typeinfo for external classes
git-svn-id: trunk@43323 -
2019-10-27 20:51:31 +00:00
Mattias Gaertner
b6631e3857 fcl-passrc: resolver: pass inlinespec as param
git-svn-id: trunk@43303 -
2019-10-22 12:16:29 +00:00
Mattias Gaertner
03d003d0ba pastojs: fixed test
git-svn-id: trunk@43297 -
2019-10-21 18:33:38 +00:00
Mattias Gaertner
fae04744d0 fcl-passrc: resolver: implicit function specialization: widen common types
git-svn-id: trunk@43296 -
2019-10-21 18:29:58 +00:00
Mattias Gaertner
a832f3615b pastojs: typeinfo(GenTemplateType)
git-svn-id: trunk@43223 -
2019-10-18 16:06:34 +00:00
Mattias Gaertner
3f19cff02b pastojs: static method no this
git-svn-id: trunk@43222 -
2019-10-18 13:37:21 +00:00
Mattias Gaertner
8323a48e9c fcl-passrc: resolver: objfpc: canonical alias to spec record type
git-svn-id: trunk@43220 -
2019-10-18 10:37:39 +00:00
Mattias Gaertner
8221ff20c3 fcl-passrc: resolver: objfpc: canonical alias to spec classtype
git-svn-id: trunk@43219 -
2019-10-18 10:31:23 +00:00
Mattias Gaertner
6f13582b11 pastojs: test generic class classproperty
git-svn-id: trunk@43216 -
2019-10-17 16:46:32 +00:00
Mattias Gaertner
8872deed26 pastojs: test generic methods
git-svn-id: trunk@43215 -
2019-10-17 16:24:59 +00:00
Mattias Gaertner
e28a2b0e21 pastojs: constructor New; external name globalfunc
git-svn-id: trunk@43214 -
2019-10-17 15:53:18 +00:00
Mattias Gaertner
8a10f0f4b9 pastojs: generic function: infer types
git-svn-id: trunk@43213 -
2019-10-17 15:00:36 +00:00
Mattias Gaertner
bb4402b2a4 pastojs: generic procedure overload
git-svn-id: trunk@43210 -
2019-10-16 16:24:11 +00:00
Mattias Gaertner
0d4c008b46 pastojs: typecast to inline specialize
git-svn-id: trunk@43207 -
2019-10-16 10:15:40 +00:00
Mattias Gaertner
8d60f4542c pastojs: constructor of external class: funcname and {}
git-svn-id: trunk@43166 -
2019-10-11 10:25:24 +00:00
Mattias Gaertner
c8d66b3b57 fcl-passrc: started implicit function specialization
git-svn-id: trunk@43145 -
2019-10-07 13:47:15 +00:00
Mattias Gaertner
6864658f27 pastojs: fixed check for static class method modifier in class helper for extrnal class
git-svn-id: trunk@43099 -
2019-09-30 12:31:44 +00:00
Mattias Gaertner
683d4d4301 fcl-passrc: specialize generic method
git-svn-id: trunk@43090 -
2019-09-29 13:30:50 +00:00
Mattias Gaertner
ee24ee3527 pastojs: fixed rename local const in methods
git-svn-id: trunk@43084 -
2019-09-27 12:21:39 +00:00
Mattias Gaertner
085602b6e4 pastojs: convert TJSFunction(@proc) to proc
git-svn-id: trunk@43079 -
2019-09-26 08:19:44 +00:00
Mattias Gaertner
afd238ae2d pastojs: external static method
git-svn-id: trunk@43078 -
2019-09-26 07:28:59 +00:00
Mattias Gaertner
4a226f39ab fcl-passrc: fixed stop on implementation keyword in program, fixed parsing attributes in class type section
git-svn-id: trunk@43057 -
2019-09-22 17:55:36 +00:00
Mattias Gaertner
9ac8abeb4e fcl-passrc: specialize non forward generic procedure
git-svn-id: trunk@43050 -
2019-09-22 12:02:04 +00:00
Mattias Gaertner
c769b8dc7d pastojs: type helper for jsvalue
git-svn-id: trunk@43032 -
2019-09-18 15:46:49 +00:00
Mattias Gaertner
3e673c09a9 pastojs: changed constraints to TPasElementArray, changed TInlineSpecializeExpr to NameExpr:TPasExpr and Params:TFPList
git-svn-id: trunk@43021 -
2019-09-16 14:26:33 +00:00
Mattias Gaertner
349d7845e8 fcl-passrc: mode objfpc: error on specialize without keyword
git-svn-id: trunk@42951 -
2019-09-08 15:34:08 +00:00
Mattias Gaertner
c2c67cb035 pastojs: fixed test
git-svn-id: trunk@42894 -
2019-09-01 18:40:57 +00:00
Mattias Gaertner
c63be77d32 pastojs: test generic unit impl proc
git-svn-id: trunk@42890 -
2019-09-01 13:41:21 +00:00
Mattias Gaertner
c3db2568ff pastojs: longword bitwise operations not, and, or, xor, shl, shr
git-svn-id: trunk@42870 -
2019-08-29 13:10:43 +00:00
Mattias Gaertner
db849a4a79 fcl-passrc: insert specialize behind generic
git-svn-id: trunk@42830 -
2019-08-26 13:12:32 +00:00
Mattias Gaertner
c60fb09f1a pastojs: inlinespecializeexpr
git-svn-id: trunk@42828 -
2019-08-26 12:54:30 +00:00
Mattias Gaertner
d773eb84fa pastojs: fixed ComIntfInstance is/as IntfType
git-svn-id: trunk@42770 -
2019-08-23 09:33:48 +00:00
Mattias Gaertner
c3b1450c4b fcl-passrc: generics: allow both a<t> and a<s,t>
git-svn-id: trunk@42735 -
2019-08-19 08:22:22 +00:00
Mattias Gaertner
32573139a8 fcl-passrc: specialize inlinespecializeexpr
git-svn-id: trunk@42702 -
2019-08-15 17:25:12 +00:00
Mattias Gaertner
35d7fade97 fcl-passrc: replace method impl arguments with intf arguments
git-svn-id: trunk@42690 -
2019-08-14 12:38:06 +00:00
Mattias Gaertner
55b1f676dc pastojs: fixed tests
git-svn-id: trunk@42689 -
2019-08-14 10:44:36 +00:00
Mattias Gaertner
bbc542881f pastojs: test generic external class
git-svn-id: trunk@42664 -
2019-08-12 19:47:55 +00:00
Mattias Gaertner
481126fc80 fcl-passrc: local var, implassign
git-svn-id: trunk@42592 -
2019-08-06 08:07:35 +00:00
Mattias Gaertner
5e81d57f39 pastojs: test generic empty class
git-svn-id: trunk@42577 -
2019-08-03 19:08:33 +00:00
Mattias Gaertner
aa7eb7bce3 fcl-passrc: typecast nil to class, interface, dynarray
git-svn-id: trunk@42534 -
2019-07-30 15:36:28 +00:00
Mattias Gaertner
847ac91d1d pastojs: skip generic type
git-svn-id: trunk@42524 -
2019-07-28 20:17:12 +00:00
Mattias Gaertner
c9430a0bd7 pastojs: added tests for jsvalue<->record
git-svn-id: trunk@42505 -
2019-07-27 11:17:51 +00:00
Mattias Gaertner
8c38cea0a8 pastojs: filer: check GenericTemplateTypes
git-svn-id: trunk@42503 -
2019-07-27 06:58:32 +00:00
Mattias Gaertner
4d0e7cd1d4 pastojs: filer: GenericTemplateTypes
git-svn-id: trunk@42475 -
2019-07-20 20:45:58 +00:00
Mattias Gaertner
41fa84a355 pastojs: filer: TPasProcedure.NameParts
git-svn-id: trunk@42454 -
2019-07-18 09:57:29 +00:00
Mattias Gaertner
3cd000b939 pastojs: optimized ord(const) to const
git-svn-id: trunk@42445 -
2019-07-14 11:22:40 +00:00
Mattias Gaertner
28e07f77e4 pastojs: fixed createcallback inside anonymous method
git-svn-id: trunk@42355 -
2019-07-12 16:56:35 +00:00
Mattias Gaertner
e5214b94a5 fcl-passrc: fixed parsing class var a:t;b:t
git-svn-id: trunk@42347 -
2019-07-10 07:55:28 +00:00
Mattias Gaertner
227514376e pastojs: fixed high(dynarrayvar with expr)
git-svn-id: trunk@42292 -
2019-06-26 19:32:49 +00:00
Mattias Gaertner
9871196e8c pastojs: allow reintroduce published method
git-svn-id: trunk@42288 -
2019-06-26 16:38:17 +00:00
Mattias Gaertner
b9c16b98d1 pastojs: fixed pas2jsfiler
git-svn-id: trunk@42258 -
2019-06-20 20:38:53 +00:00
Mattias Gaertner
f50b4c5fbb pastojs: setlength(arr) now always clone
git-svn-id: trunk@42227 -
2019-06-14 20:45:01 +00:00
Mattias Gaertner
d1830fc589 pastojs: fixed var a: somearray = nil
git-svn-id: trunk@42218 -
2019-06-13 08:05:28 +00:00
Mattias Gaertner
180576d17c fcl-pssrc, pastojs: fixed anonymous proc inside for-loop
git-svn-id: trunk@42177 -
2019-06-06 09:48:04 +00:00
Mattias Gaertner
1bb2173939 pastojs: fixed quoted string literal
git-svn-id: trunk@41897 -
2019-04-18 14:18:26 +00:00
Mattias Gaertner
c3ce3dd911 pastojs: fixed record constructors
git-svn-id: trunk@41856 -
2019-04-10 10:51:03 +00:00
Mattias Gaertner
22777fee94 pastojs: error on anynomous record
git-svn-id: trunk@41851 -
2019-04-08 20:49:04 +00:00
Mattias Gaertner
2b606a069b pastojs: fixed TExt(TExt.new)
git-svn-id: trunk@41840 -
2019-04-05 10:50:41 +00:00
Mattias Gaertner
86fe541c53 pastojs: mark NewInstance function as used
git-svn-id: trunk@41825 -
2019-04-03 18:11:07 +00:00
Mattias Gaertner
f3d2b9c9db fcl-passrc: updated lpi
git-svn-id: trunk@41720 -
2019-03-16 22:49:16 +00:00
Mattias Gaertner
1ea55d0a74 pastojs: helpers: external method apply to helped type
git-svn-id: trunk@41707 -
2019-03-14 22:04:33 +00:00
Mattias Gaertner
65d0b1ee00 pastojs: test record and jsvalue
git-svn-id: trunk@41690 -
2019-03-13 08:16:29 +00:00
Mattias Gaertner
dec638761d pastojs: made $DispatchField a modifier of the class, instead of a method
git-svn-id: trunk@41684 -
2019-03-12 12:10:59 +00:00
Mattias Gaertner
4cbe5776b5 pastojs: directives DispatchField and DispatchStrField
git-svn-id: trunk@41680 -
2019-03-11 21:41:44 +00:00
Mattias Gaertner
bc8df85d00 pas2js: doc about dispatch
git-svn-id: trunk@41676 -
2019-03-11 14:38:23 +00:00
Mattias Gaertner
fa87f8870c pastojs: fixed accessing Self in anonymous function
git-svn-id: trunk@41665 -
2019-03-10 08:07:54 +00:00
Mattias Gaertner
ba36a27d84 pastojs: pass class var to var argument
git-svn-id: trunk@41632 -
2019-03-07 14:48:25 +00:00
Mattias Gaertner
614755f6da pastojs: allow typecast extclass to extclass in mode delphi
git-svn-id: trunk@41623 -
2019-03-06 21:11:21 +00:00
Mattias Gaertner
9e6f50413b pastojs: fixed include file search in module directory
git-svn-id: trunk@41622 -
2019-03-06 18:11:47 +00:00
Mattias Gaertner
f88641b3b4 fcl-passrc: resolver: no hint when hiding private method
git-svn-id: trunk@41598 -
2019-03-05 14:38:26 +00:00
Mattias Gaertner
1ab29b43b7 pastojs: bigint shl/shr int
git-svn-id: trunk@41594 -
2019-03-05 13:15:07 +00:00
Mattias Gaertner
6377c64d7c pastojs: bigint shl const
git-svn-id: trunk@41593 -
2019-03-05 12:12:26 +00:00
Mattias Gaertner
91c6b86a82 fcl-passrc: analyzer: use methods with message modifier
git-svn-id: trunk@41586 -
2019-03-04 11:44:00 +00:00
Mattias Gaertner
e3cd320580 pastojs: method modifier message integer/string
git-svn-id: trunk@41583 -
2019-03-03 23:30:13 +00:00
Mattias Gaertner
1257996424 pastojs: type helper for class/interface
git-svn-id: trunk@41558 -
2019-03-02 15:09:10 +00:00
Mattias Gaertner
2b9c7c7c78 pastojs: (f*f).helpercall
git-svn-id: trunk@41530 -
2019-02-28 23:20:00 +00:00
Mattias Gaertner
f71fac34fd pastojs: fixed type helper call as arg
git-svn-id: trunk@41529 -
2019-02-28 22:48:01 +00:00
Mattias Gaertner
f6cbe79a0a pastojs: and/or/xor with nativeint, warn nativeint shl/shr
git-svn-id: trunk@41528 -
2019-02-28 21:57:28 +00:00
Mattias Gaertner
f63295ce4f pastojs: fixed class constructor without initialization and precompile
git-svn-id: trunk@41500 -
2019-02-26 22:34:01 +00:00
Mattias Gaertner
463e98ccef fcl-passrc: fixed parent of const external modifier
git-svn-id: trunk@41496 -
2019-02-26 19:05:35 +00:00
Mattias Gaertner
4f9ce09c1c fcl-passrc: fixed parsing variable list with modifiers
git-svn-id: trunk@41495 -
2019-02-26 18:58:59 +00:00
Mattias Gaertner
af1878c7c1 pastojs: register pcu format only if needed
git-svn-id: trunk@41494 -
2019-02-26 18:44:26 +00:00
Mattias Gaertner
333e100b5b pastojs: clean up
git-svn-id: trunk@41435 -
2019-02-24 15:42:34 +00:00
Mattias Gaertner
a532d1d8fb pastojs: attributes
git-svn-id: trunk@41427 -
2019-02-24 08:22:32 +00:00
Mattias Gaertner
25cb06f021 pastojs: overflow checking for integer operators +,-,* outside nativeint
git-svn-id: trunk@41392 -
2019-02-20 09:22:40 +00:00
Mattias Gaertner
de59341cb7 pastojs: fixed MinMaxSafeIntDouble for significand bits instead of explicit bits
git-svn-id: trunk@41390 -
2019-02-20 02:22:36 +00:00
Mattias Gaertner
8ee668ad05 pastojs: range checking for type helpers and var/out arguments
git-svn-id: trunk@41386 -
2019-02-20 00:55:53 +00:00
Mattias Gaertner
1a977e8efd pastojs: implemented class constructors
git-svn-id: trunk@41360 -
2019-02-17 20:43:58 +00:00
Mattias Gaertner
3cb31b75a7 pastojs: fixed typecast jsvalue(anobject/interface)
git-svn-id: trunk@41346 -
2019-02-16 19:48:10 +00:00
Mattias Gaertner
d2203e460c pastojs: fixed version check using current version
git-svn-id: trunk@41344 -
2019-02-16 19:46:11 +00:00
Mattias Gaertner
e0ada1ced9 pastojs: use VarRecs only if called
git-svn-id: trunk@41333 -
2019-02-16 09:46:38 +00:00
Mattias Gaertner
d4512cc714 pastojs: array of const
git-svn-id: trunk@41327 -
2019-02-15 22:38:44 +00:00
Mattias Gaertner
ddaac687d4 pastojs: fixed helpers pass args
git-svn-id: trunk@41298 -
2019-02-11 12:15:55 +00:00
Mattias Gaertner
a12ca1c1a0 pastojs: type helper set
git-svn-id: trunk@41295 -
2019-02-11 09:29:16 +00:00
Mattias Gaertner
ff59f3b570 pastojs: type helper pass property
git-svn-id: trunk@41293 -
2019-02-10 22:59:33 +00:00
Mattias Gaertner
6108d38c23 pastojs: type helper array, constructor
git-svn-id: trunk@41279 -
2019-02-10 14:55:09 +00:00
Mattias Gaertner
7bca7bb629 pastojs: type helper: literal
git-svn-id: trunk@41276 -
2019-02-10 09:59:17 +00:00
Mattias Gaertner
e98d7f2a86 pastojs: type helper: arg/var/const/result
git-svn-id: trunk@41273 -
2019-02-10 00:24:23 +00:00
Mattias Gaertner
c617546fcd pastojs: record helper constructor
git-svn-id: trunk@41259 -
2019-02-08 17:52:42 +00:00
Mattias Gaertner
e290e24c06 pastojs: helper: for in class helper
git-svn-id: trunk@41257 -
2019-02-08 14:52:16 +00:00
Mattias Gaertner
fcc78d311b pastojs: helper: class property with static class method
git-svn-id: trunk@41256 -
2019-02-08 13:07:16 +00:00
Mattias Gaertner
15ec036a69 pastojs: helper: default array property
git-svn-id: trunk@41252 -
2019-02-08 10:10:30 +00:00
Mattias Gaertner
9a06e90b47 pastojs: helper: array property
git-svn-id: trunk@41251 -
2019-02-08 09:15:28 +00:00
Mattias Gaertner
46462a01ed pastojs: property getter/setter in helper
git-svn-id: trunk@41246 -
2019-02-07 12:29:28 +00:00
Mattias Gaertner
fce57c5528 pastojs: helper inherited
git-svn-id: trunk@41244 -
2019-02-06 22:10:33 +00:00
Mattias Gaertner
3e7c53a3bb pastojs: class helper: constructor
git-svn-id: trunk@41239 -
2019-02-06 15:20:59 +00:00
Mattias Gaertner
4d8ae767f7 pastojs: proc ref of helper method
git-svn-id: trunk@41235 -
2019-02-06 10:16:03 +00:00
Mattias Gaertner
bf1af93938 pastojs: typecast string(unicodestring), unicodestring(string)
git-svn-id: trunk@41224 -
2019-02-04 16:02:42 +00:00
Mattias Gaertner
b47c58dddc fcl-passrc: fixed case of widechar
git-svn-id: trunk@41221 -
2019-02-04 15:08:50 +00:00
Mattias Gaertner
57ece7b0f5 fcl-passrc: fixed set literal of widechar, issue #35001
git-svn-id: trunk@41218 -
2019-02-04 12:34:25 +00:00
Mattias Gaertner
d9954e410e pastojs: fixed case char of widechar_literal, issue #34993
git-svn-id: trunk@41192 -
2019-02-03 16:49:00 +00:00
Mattias Gaertner
c2671bdbb6 pastojs: helpers: access helper fields from method
git-svn-id: trunk@41189 -
2019-02-03 16:29:24 +00:00
Mattias Gaertner
8d368b0c21 pastojs fixed treating big ints as double
git-svn-id: trunk@41156 -
2019-01-31 19:50:23 +00:00
Mattias Gaertner
d4c96dcf22 pastojs: searching units in current module directory, Delphi compatibility
git-svn-id: trunk@41149 -
2019-01-31 09:23:48 +00:00
Mattias Gaertner
6160a2ad51 pastojs: intrinsics lo/hi, issue #34964, patch from Kryvichh
git-svn-id: trunk@41148 -
2019-01-30 16:44:48 +00:00
Mattias Gaertner
dd2fc17d51 pastojs: nicer -Jm error message, check for (a,b)[]
git-svn-id: trunk@41145 -
2019-01-30 14:10:31 +00:00
Mattias Gaertner
86d3728ea9 pastojs: fixed write class var
git-svn-id: trunk@41124 -
2019-01-29 18:14:24 +00:00
Mattias Gaertner
70fa288fc4 fcl-passrc: resolver: fixed find ancestor property
git-svn-id: trunk@41087 -
2019-01-27 22:34:05 +00:00
Mattias Gaertner
78ea6166e5 pastojs: shorten 1.0E12 to 1E12, issue #34942
git-svn-id: trunk@41078 -
2019-01-26 21:18:50 +00:00
Mattias Gaertner
4ab30223d3 pastojs: warn for bitwise and,or,xor with native(u)int
git-svn-id: trunk@41063 -
2019-01-24 22:38:43 +00:00
Mattias Gaertner
1a59a4a4a3 pastojs: typecast char to word
git-svn-id: trunk@41062 -
2019-01-24 22:03:43 +00:00
Mattias Gaertner
c67c51fdb5 pastojs: char range literals with non ascii, bug #34925
git-svn-id: trunk@41058 -
2019-01-24 17:12:51 +00:00
Mattias Gaertner
792858eab8 pastojs: fixed reading #$00xx as widechar, bug #34923
git-svn-id: trunk@41046 -
2019-01-24 15:54:47 +00:00
Mattias Gaertner
48537b4e7c pastojs: external fields in records, bug #34922
git-svn-id: trunk@41025 -
2019-01-24 12:20:40 +00:00
Mattias Gaertner
92b3fc7c78 pastojs: fixed compile
git-svn-id: trunk@41023 -
2019-01-23 23:00:29 +00:00
Mattias Gaertner
73ebd10999 pastojs: check name of external class constructor
git-svn-id: trunk@40882 -
2019-01-16 21:31:43 +00:00
Mattias Gaertner
2d0b03391c pastojs: fixed (a.b)()
git-svn-id: trunk@40871 -
2019-01-16 13:41:04 +00:00
Mattias Gaertner
2e11b23883 pastojs: renamed rtl.createTRecord to rtl.recNewT, constructor added return this
git-svn-id: trunk@40807 -
2019-01-08 09:41:17 +00:00