Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for convert Moonshine IDE as3 sources #342

Open
wants to merge 160 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
29ac569
Copied test\issues\Issue261.as to test\issues\Issue261_1.as
Nov 13, 2017
0c216ad
Copied test\issues\Issue261.hx to test\issues\Issue261_1.hx
Nov 13, 2017
4bb9604
WIP
Nov 13, 2017
01dc97b
WIP
Nov 13, 2017
48b219a
Copied test\issues\Issue261_1.as to test\issues\Issue261_2.as
Nov 13, 2017
6a5f514
Copied test\issues\Issue261_1.hx to test\issues\Issue261_2.hx
Nov 13, 2017
bd01b7f
Fixes #261
Nov 13, 2017
d79cf07
Merge branch 'feature/261' into develop
Nov 13, 2017
f46c7f9
Merge branch 'master' of https://github.com/HaxeFoundation/as3hx into…
Nov 21, 2017
54300f9
Small refactoring...
Nov 21, 2017
dbe0bb6
Tests for issue27. closes #27
Nov 21, 2017
276af3c
Merge branch 'develop' of https://github.com/HaxeFoundation/as3hx int…
Nov 21, 2017
e94675b
spellcheck
xmitre Dec 1, 2017
8fadda3
spellcheck
xmitre Dec 1, 2017
0a9f6c9
fix of possible out of range error
xmitre Dec 1, 2017
2925b96
applying of escaping of haxe keywords to package names
xmitre Dec 1, 2017
2529ae0
handling of "enum" haxe keyword in variable and package naming
xmitre Dec 1, 2017
750c1e2
handling of comments in a function call between argument name and comma
xmitre Dec 1, 2017
7da5151
handling of parsing of comments and new lines in between native objec…
xmitre Dec 1, 2017
06feab7
parsing of regexp in a separate method
xmitre Dec 1, 2017
13b833f
fix of parsing of regexp like /[/]/
xmitre Dec 1, 2017
950e056
fix of parsing of unop prefix "+": var p:int = +1; // `+` here will b…
xmitre Dec 1, 2017
98d187a
handling of weird but possible unexpected conditional compilation blo…
xmitre Dec 1, 2017
1ebc419
fix of parsing of numbers in scientific notation with capital E faile…
xmitre Dec 1, 2017
4d9c284
ignoring of accidental semicolons in start of a method
xmitre Dec 1, 2017
54517b3
fix of parsing of `break` with label (in as3 new line interrupts `bre…
xmitre Dec 1, 2017
3aece8d
handling of try { } catch(e) { } without of argument type declaration
xmitre Dec 1, 2017
9ade206
handling of empty and one=line conditional compilation blocks
xmitre Dec 1, 2017
541d191
more precise parsing of new lines and comments inside native object d…
xmitre Dec 1, 2017
0ac169b
new config param `useAngleBracketsNotationForDictionaryTyping` which …
xmitre Dec 1, 2017
967166f
now when config param `dictionaryToHash` is set to false, class Dicti…
xmitre Dec 1, 2017
85353de
sourceDir is now used as current working directory for app consistent…
xmitre Dec 4, 2017
a44f247
RebuildUtils.hx : handy utils for recursive Expr traversing and rebui…
xmitre Dec 5, 2017
3d9a1bd
Typer : rough model of as3 typing. Some methods of as3->haxe type tra…
xmitre Dec 5, 2017
4a234c3
Handling of namespaces in appliance to methods. New Expr enum constru…
xmitre Dec 5, 2017
68ebfe2
unused. for future implementation of global typing
xmitre Dec 5, 2017
ef67a77
correct handling of as3 conditional compilation constants. optional c…
xmitre Dec 10, 2017
33152f6
handling of as3 Date instance field access: date.day -> date.getDay()
xmitre Dec 10, 2017
cff0686
whitespaces fix
xmitre Dec 10, 2017
cac390b
whitespaces fix
xmitre Dec 10, 2017
9455602
handling extraction of type from this.field_name expressions
xmitre Dec 10, 2017
914a50b
handling of `&&` and `||` operators with objects in typed expr: objec…
xmitre Dec 10, 2017
7df53bf
spellcheck bitwice -> bitwise
xmitre Dec 10, 2017
52af852
handling of field type in general (only some special case fields has …
xmitre Dec 10, 2017
d297a65
fixes of uses of rebuildIfExpr( ) without checking of null result
xmitre Dec 10, 2017
33ced84
config option flashTopLevelPackage (for translation-time replace of f…
xmitre Dec 13, 2017
711c002
config variable `useFullTyping`. Allow full typing of available class…
xmitre Dec 17, 2017
d981750
fix of error on one line comments before colon in ternary like that
xmitre Dec 17, 2017
aaba37f
fix of error with comments after some expressions
xmitre Dec 18, 2017
d023f46
fix of handling of `excludeList` config option
xmitre Dec 18, 2017
f4a824b
whitespaces cleanup
xmitre Dec 20, 2017
81d3dac
fixing of one line comments between function return type and opening …
xmitre Dec 20, 2017
10ab807
Better handling of constructor generation. Now constructor is not cre…
xmitre Dec 21, 2017
23baac7
constructor warning is removed because of no real purpose in it (subj…
xmitre Dec 21, 2017
0620e8d
Handling of comments straight after opening brackets. Necessary chang…
xmitre Dec 24, 2017
3069c26
handling of special symbols in untyped object declaration field names
xmitre Dec 25, 2017
b10b50e
config option `useOpenFlTypes` for types openfl.Vector, openfl.utils.…
xmitre Dec 26, 2017
f03adb8
fix of entering and leaving of context in typer
xmitre Dec 26, 2017
493e873
experimental refinement of dictionary key-value types by array access…
xmitre Dec 26, 2017
132a4c6
applying typing of init value to class fields and inheritance of type…
xmitre Dec 26, 2017
10592f8
option RebuildResult.RReplaceArray( ) wraps arrays of Expr in new lin…
xmitre Jan 9, 2018
dbc8990
relocation of local functions to the top of methods.
xmitre Jan 9, 2018
3e3d032
config option rebuildLocalFunctions (default true). Replacing of loca…
xmitre Jan 9, 2018
55d9418
config option `fixLocalVariableDeclarations` (default true). If true,…
xmitre Jan 9, 2018
b97da1e
fix of RebuildUtils: correct replacing of commented Expr with array o…
xmitre Jan 11, 2018
bdc1086
not applying of moveFunctionDeclarationsToTheTop to the anonymous fun…
xmitre Jan 11, 2018
0ab382b
fixes of Typer. method getContextClone
xmitre Jan 11, 2018
8b8cfd6
fix of VarExprFix
xmitre Jan 11, 2018
99baa57
revert of accidental commit
xmitre Jan 11, 2018
7078d7b
refactoring of replaceForLoopsWithWhile. Checking of usage of loop va…
xmitre Jan 11, 2018
4f93612
resolving of constructions booleanCondition || method(); and booleanC…
xmitre Jan 11, 2018
779f37b
now guessing of dictionary types can extract types from reversed type…
xmitre Jan 11, 2018
af63e56
usage of stringified types while recovering types for dictionary cons…
xmitre Jan 11, 2018
74d6af6
handling of imports and self type in class typization
xmitre Jan 11, 2018
b9f6b3d
type fixing of return value in functions
xmitre Jan 11, 2018
e6057dc
boolean type check of while loop condition
xmitre Jan 12, 2018
e9b8f8c
add imports of refined types of dictionary
xmitre Jan 15, 2018
dcbc952
converting delete with dot field access to Reflect.deleteField for an…
xmitre Jan 15, 2018
7de9de2
experimental removing of Array</*AS3HX WARNING no type*/> code stub b…
xmitre Jan 15, 2018
9d0ed5b
handling of "".search( ) method with "".indexOf and as3hx.Compat.sear…
xmitre Jan 15, 2018
d3a05e7
whitespaces formatting fix
xmitre Jan 15, 2018
097541a
config option `replaceVarArgsWithOptionalArguments` to almost consist…
xmitre Jan 15, 2018
4b2b760
minor fixes, redundant code, missed call of `WriterUtils.replaceForLo…
xmitre Jan 15, 2018
e801461
possible fix of vector.length++ and vector.length-- operators
xmitre Jan 15, 2018
4e1fe4d
config param `importExclude` lets setup as3 import paths that should …
xmitre Jan 15, 2018
2174136
fix of working of ForLoopRebuild with var expressions in surrounding …
xmitre Jan 15, 2018
b821f32
fix of coworking of config.replaceVarArgsWithOptionalArguments and co…
xmitre Jan 15, 2018
331e08d
fix of typing of varArgs variable
xmitre Jan 15, 2018
d80dff2
handling of "string".match method
xmitre Jan 15, 2018
a8578a0
correct Bool type of `true` and `false` idents
xmitre Jan 15, 2018
66c2a38
dealing with decodeURI, encodeURI, escape, unescape
xmitre Jan 16, 2018
e33df92
extracting type of ECall return type
xmitre Jan 16, 2018
f13298c
fix of error in refactoring of multiple local var exprs if class var …
xmitre Jan 16, 2018
d21a2ef
removed duplication of `getModifiedIdent` method (previously moved to…
xmitre Jan 16, 2018
330be99
handling of type of (a as B) and new B() expressions
xmitre Jan 16, 2018
304d622
method replace on string now unconditionaly resolved to StringTools.r…
xmitre Jan 16, 2018
9274a7a
handling variables with name "static"
xmitre Jan 16, 2018
9d1a1af
fix of handling of imports in Type system
xmitre Jan 16, 2018
c0c7931
fix for "config param `importExclude` lets setup as3 import paths tha…
xmitre Jan 17, 2018
bebda02
fix of getImportString
xmitre Jan 17, 2018
3ac5574
self class reference in variable initialization is not threated as re…
xmitre Jan 17, 2018
aaa1232
fix of for( in ) iteration throw keys in dictionary (now threating di…
xmitre Jan 17, 2018
c40b492
enhancement of isFunctionExpr (handling of ArgType->RetType Function …
xmitre Jan 17, 2018
e1d0967
handling of classes in the same package in Type system
xmitre Jan 17, 2018
487c9d1
fix of match and search in Compat for RegExp. handling of lastIndex p…
xmitre Jan 17, 2018
bb27355
fix for "enhancement of isFunctionExpr (handling of ArgType->RetType …
xmitre Jan 17, 2018
f1563dd
fix (handling) of recursion on EForIn expression
xmitre Jan 18, 2018
17c5561
fix of match and search in Compat for RegExp. handling of lastIndex p…
xmitre Jan 18, 2018
2b8bda0
as3-compatible behavior of xml for non-existent @Attributes
xmitre Jun 27, 2018
57e28f0
fix of ternary with unop: (!true ? true : false)
xmitre Jun 27, 2018
cd5b519
fix of missparsing of /*/ as closed comment
xmitre Jun 27, 2018
33b539d
deeper rebuild options
xmitre Jun 27, 2018
904d0b5
improvement of VarExprFix. Still not ideal but covers a lot of cases
xmitre Jun 27, 2018
43390ee
attempt to import classes from <variable> is <Class>, <variable> as <…
xmitre Jun 27, 2018
91b1c1f
typing of everything
xmitre Jun 27, 2018
cb9890b
fix of try{} rebuild
xmitre Jul 20, 2018
8af1984
Batch conversion with multiple src's and dst's. Typer and Compat fixe…
xmitre Jul 20, 2018
1cc9aca
idea ignore
Jul 24, 2018
9494329
prerelease fixes
xmitre Oct 8, 2018
4a887ef
custom error type XError, custom Vector type, fix of splice conversio…
xmitre Oct 24, 2018
553a058
custom Vector and XError implementation for js target
xmitre Oct 24, 2018
e4488b2
comment with type after star `*` type
xmitre Nov 1, 2018
60850d0
custom Vector Compat splice
xmitre Nov 1, 2018
308b6f1
feathers.core.PropertyProxy type handling in specific environment
xmitre Nov 1, 2018
925b53c
FastXML type compatibility fix
xmitre Nov 6, 2018
65a5a2b
enclosing String(<expr>) cast in parentheses when no actual cast is n…
xmitre Nov 8, 2018
562a7df
fulfilling of Type params during conversion, hasOwnProperty typing.
xmitre Nov 9, 2018
4bd2ee0
deprecation of temporary variable in switch for array[index] expression
xmitre Nov 12, 2018
b90e9d4
apply, call fixes
xmitre Nov 21, 2018
e5c9507
verbose setter return error message
xmitre Nov 28, 2018
85148e5
`if (arrayOfBool[index])` conversion fix
xmitre Dec 6, 2018
29c8c0e
signal typing fix
xmitre Dec 21, 2018
ccbd553
"".join("") typing, redundant trace fix
xmitre Dec 24, 2018
f3c42ff
generated property declarations are moved to first getter or setter. …
xmitre Jan 15, 2019
b7b9f90
exclude pattern fix. "pack" exclude now does not affect "package.Clas…
xmitre Feb 6, 2019
2f51a24
ignoring of nested local function internal vars while fixing enclosin…
xmitre Feb 6, 2019
60481f3
Hardcode-customizable Object type path. Dirty fix of rawData.split/le…
xmitre Feb 6, 2019
951fae4
alternative switch case formatting
xmitre Feb 8, 2019
3476cf1
js Boolean cast
xmitre Feb 8, 2019
b14037b
field call on Dynamic type left intact (replace, split, etc on untype…
xmitre Feb 8, 2019
445f687
Update README.md
xmitre Mar 19, 2019
98b2127
minor refactoring and clean up
xmitre Mar 19, 2019
fca9e41
Merge branch 'master' of github.com:xmitre/as3hx
xmitre Mar 19, 2019
7fbd395
Add vscode
AxGord Apr 6, 2019
2fe7db2
Add checkstyle and update tests
AxGord Apr 7, 2019
67a6018
Fixes, change quotes, remove empty lines
AxGord Apr 7, 2019
c6560e8
disable fixLocalVariableDeclarations, fixes
AxGord Apr 8, 2019
f550fc2
useFullTyping, getQualifiedClassName fix
AxGord Apr 8, 2019
3561d68
Fixes
AxGord Apr 9, 2019
a6e14c9
Finish fixing tests
AxGord Apr 11, 2019
9ef8dd3
Unit tests
AxGord Apr 15, 2019
cf868b6
Repair tests
AxGord Apr 15, 2019
81edfa3
new..as
AxGord Apr 15, 2019
08aa471
convert style def and conditional compilation
AxGord Apr 15, 2019
225f72d
Convert mxml files
AxGord Apr 18, 2019
69698f9
mx_internal
AxGord Apr 19, 2019
fcea098
asconfig suppport, 0X int, xml double dot warning
AxGord Apr 22, 2019
25942da
FLEX_HOME
AxGord Apr 22, 2019
5479fbd
XML Comments
AxGord May 1, 2019
15788b2
AS3 default sort, xml fixes
AxGord May 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
handling extraction of type from this.field_name expressions
  • Loading branch information
xmitre committed Mar 18, 2019
commit 9455602da85e111020eea33d3d39a79a4ed950c1
4 changes: 4 additions & 0 deletions src/as3hx/Writer.hx
Original file line number Diff line number Diff line change
@@ -1145,6 +1145,10 @@ class Writer
switch(e) {
case ETypedExpr(e2, t): return tstring(t);
case EField(e2, f):
switch(e2) {
case EIdent("this"): return contextStack[0].get(f);
default:
}
var t2 = getExprType(e2);
//write("/* e2 " + e2 + "."+f+" type: "+t2+" */");
switch(t2) {