Skip to content

Conversation

@djaf77
Copy link
Contributor

@djaf77 djaf77 commented Jun 5, 2020

fix method bodies import:
We collect all Name Nodes from $method->stmts, their resolved FQN and position in file.
Then we replace them in body string by positions with offset correction (because we change string length)
Test cases was changed too.

@dg
Copy link
Member

dg commented Jun 5, 2020

Great, thanks!

@dg dg merged commit ec4299c into nette:master Jun 5, 2020
dg pushed a commit that referenced this pull request Jun 5, 2020
dg pushed a commit that referenced this pull request Jun 19, 2020
dg pushed a commit that referenced this pull request Jun 19, 2020
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.

Method's and function's bodies are copied without name resolve

2 participants