Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Support getType for Expr
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTodd13 committed May 23, 2017
1 parent 6f62894 commit 5d6e20f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lambda.jl
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,10 @@ function setType(x :: Union{Symbol,RHSVar}, typ :: Type, li :: LambdaVarInfo)
error("Variable ", x, " is not found in ", li)
end

function getType(x :: Expr, li::LambdaVarInfo)
return x.typ
end

function setType(x :: Expr, typ :: Type, li :: LambdaVarInfo)
x.typ = typ
end
Expand Down

0 comments on commit 5d6e20f

Please sign in to comment.