Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Fix issue-9, all tests pass #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix issue-9, all tests pass #10

wants to merge 1 commit into from

Conversation

xwb1989
Copy link

@xwb1989 xwb1989 commented Oct 14, 2015

Try to fix #9
The fix is to use Eval() instead of EvalNode() to get the type of an expr.
To use Eval, we have to retrive the expression text of the rhs expr,
thus we pass grinder.EditBuffer to hasType() and retrive expression text by EditBuffer#TextAt.

The fix is to use Eval() instead of EvalNode() to get the type of a expr.
To use Eval, we have to retrive the expression text of the rhs expr,
thus we pass grinder.EditBuffer to hasType() and retrive expression text by EditBuffer#TextAt.
@xwb1989 xwb1989 changed the title Fix issue-9, all tests pass. Fix issue-9, all tests pass Oct 14, 2015
@jackspirou
Copy link

Hi @xwb1989 I merged your code into jackspirou/grind so that I could run go get for grind on Go versions 1.4+. Thanks for this patch!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grind depends on types.EvalNode
2 participants