RomanYankovsky / DelphiAST

Abstract syntax tree builder for Delphi
Mozilla Public License 2.0
271 stars 116 forks source link

Retracted: Uses with explicit path are not supported: uses x in 'c:\myunit.pas'; #243

Closed JBontes closed 6 years ago

JBontes commented 6 years ago

Retracted, Delphi only supports in uses in programs or libraries.

Wosi commented 6 years ago

Why do you think it's not supported? It works fine in current master.

JBontes commented 6 years ago

It ignores the 'in' part. Hardly supported.

Kind regards,

-- Johan Bontes

On 13 Oct 2017, at 12:39, Christopher Wosinski notifications@github.com wrote:

Why do you think it's not supported? It works fine in current master.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Wosi commented 6 years ago

How can it ignore the in? The filepath is actually present in the AST. It looks like this:

<UNIT line="7" col="3" name="uMainForm" path="uMainForm.pas"/>

What are you missing?

JBontes commented 6 years ago

Oops, must have broken something in my version. Let me check and correct the error.

Thanks for the heads up.

Kind regards,

-- Johan Bontes

On 13 Oct 2017, at 13:40, Christopher Wosinski notifications@github.com wrote:

How can it ignore the in? The filepath is actually present in the AST. It looks like this:

What are you missing?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

JBontes commented 6 years ago

Yes, you are right the uses x in 'path' is only allowed in program or library, not in an implementation or interface uses. I'll fix the commit.