Skip to content

Improves "Extract locale variable" when working with generic types - #1134

Merged
elsassph merged 7 commits into
fdorg:developmentfrom
SlavaRa:feature/ExtractLocalVariable_improvements
Mar 26, 2016
Merged

elsassph merged 7 commits into
fdorg:developmentfrom
SlavaRa:feature/ExtractLocalVariable_improvements

Conversation

@SlavaRa

@SlavaRa SlavaRa commented Mar 18, 2016

Copy link
Copy Markdown

Before commit: coderefactor_extract_local_variable_for_generics_bug

After: ASCompletion.Tests/Test Files/generated/haxe/AfterGenerateExtractVariableGeneric.hx

}

int style = Sci.StyleAt(funcBodyStart + lastPos) & stylemask;
if (ASComplete.IsCommentStyle(style))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking generally alright, but don't we want to keep some of these conditions?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only condition is that we are interested in right now checking for comments.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right I see it later.

@Neverbirth

Copy link
Copy Markdown
Contributor

Really nice to see an unit test for this PR. Do you think you could make some more? Since this is a untested generator I'm sure there are a lot of cases to add. Not asking for every possible case, of course, just the main ones that you can come of, and surely you can come up with some other failing or missing cases.

@SlavaRa

SlavaRa commented Mar 21, 2016

Copy link
Copy Markdown
Author

@Neverbirth yes, I'm going to do yet.

@SlavaRa SlavaRa changed the title Improves "extract locale variable" when working with generic types Improves "Extract locale variable" when working with generic types Mar 23, 2016
@SlavaRa

SlavaRa commented Mar 24, 2016

Copy link
Copy Markdown
Author

@elsassph @Neverbirth guys, I have to do something for this issue? Or I can add new tests and functionality in a separate issue(for example a clear indication to the type for AS3)?

@Neverbirth

Copy link
Copy Markdown
Contributor

I'd prefer to see more tests in this PR, because it will show that both the new, improved, behaviour, and the old ones, still work, and maybe fix even more things before merging.

@SlavaRa

SlavaRa commented Mar 24, 2016

Copy link
Copy Markdown
Author

Ok, I add in the near future

@SlavaRa

SlavaRa commented Mar 25, 2016

Copy link
Copy Markdown
Author

I added the test cases to test the extract local variable for situations that I face every day on the main work.

@elsassph

Copy link
Copy Markdown
Member

Conflict.

@SlavaRa

SlavaRa commented Mar 26, 2016

Copy link
Copy Markdown
Author

@elsassph fixed.

@elsassph
elsassph merged commit 5736612 into fdorg:development Mar 26, 2016
@SlavaRa
SlavaRa deleted the feature/ExtractLocalVariable_improvements branch March 26, 2016 23:27
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.

3 participants