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

Merge with master #221

Merged
merged 8 commits into from
Apr 10, 2015
Merged

Merge with master #221

merged 8 commits into from
Apr 10, 2015

Conversation

as3boyan
Copy link
Contributor

No description provided.

as3boyan and others added 8 commits April 4, 2015 17:02
…ions

Resolve static function imports for import with in keyword (import String.fromCharCode in f;) #191
Check if module is HaxeModuleType #166
Two primary issues:  The first was a change in the BNF that changed the
underlying type of HaxeLocalVarDeclaration to a HaxePsiField.  The second
was changing the type of HaxePsiField from a HaxeComponent to a
HaxeNamedComponent.

In the first case, the change itself wasn't really a problem; it was that
HaxeComponentType.typeOf() hadn't been changed to reflect the new reality
that it was going to be asked about HAXE_LOCAL_VAR_DECLARATION types.  It
simply returned null for types it didn't know about, thus
HaxeIntroduceHandler.getOccurrences() stopped its loop looking for the
enclosing method element.  The fix was simply to add that type to the list
of classifications.  HAXE_VAR_DECLARATION was also added as future-proofing.

In the second case, HaxePsiField must be a HaxeComponent for
HaxeQualifiedNameProvider to work correctly.  If it is not a HaxeComponent,
a ClassCastException is thrown and refactorings requiring names silently fail.
Reverts part of change 15b1574
which added an override for HaxeMethodPsiMixinImpl.getContext().  The
override called getContainingClass() instead of getParent().  That
caused a tree_walk_up to skip several nodes, notably the CLASS_BODY
element, and HaxeIntroduceHandler could no longer walk all of its
children to find all of the fields in a class.  Thus, for the test case
names were suggested that clashed with a function name.
as3boyan added a commit that referenced this pull request Apr 10, 2015
@as3boyan as3boyan merged commit ed1bd31 into RefactoringPullUpTest Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants