SPT resolve is not consistent with editor behaviour
In some cases editor resolve works fine in the editor but it fails in SPT.
editor-resolve: (node, position, ast, path, project-path) -> definition where node' := <try(resolve-child)>node; definition := <_analysis-resolve(|<_language>, project-path)> node' resolve-child: LHSEdgeName(name, type) -> type
Specifically when
Submitted by Daco Harkes on 1 April 2015 at 17:02LHSEdgeName(None(), "asdf"{Use(...)})
this happens.
Withoutresolve-child
editor resolve will try to resolveNone()
or anything else in the first position which might also be a definition.
But withresolve-child
the second child takes precedence over the first child, at least in editor behaviour.
Log in to post comments