Skip to content

Commit

Permalink
Type: remove xend and yend
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Jan 10, 2024
1 parent 47bed03 commit 888c9d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
8 changes: 0 additions & 8 deletions tl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1783,12 +1783,6 @@ local table_types = {












Expand Down Expand Up @@ -6813,8 +6807,6 @@ tl.type_check = function(ast, opts)
copy.filename = t.filename
copy.x = t.x
copy.y = t.y
copy.yend = t.yend
copy.xend = t.xend

if t.typename == "array" then
assert(copy.typename == "array")
Expand Down
16 changes: 4 additions & 12 deletions tl.tl
Original file line number Diff line number Diff line change
Expand Up @@ -1497,16 +1497,10 @@ local interface Type
is Where
where self.typename

typename: TypeName -- discriminator
typeid: integer -- unique identifier

yend: integer
xend: integer

inferred_at: Where

-- Lua compatibilty
needs_compat: boolean
typename: TypeName -- discriminator
typeid: integer -- unique identifier
inferred_at: Where -- for error messages
needs_compat: boolean -- for Lua compatibilty
end

local record StringType
Expand Down Expand Up @@ -6813,8 +6807,6 @@ tl.type_check = function(ast: Node, opts: TypeCheckOptions): Result, string
copy.filename = t.filename
copy.x = t.x
copy.y = t.y
copy.yend = t.yend
copy.xend = t.xend

if t is ArrayType then
assert(copy is ArrayType)
Expand Down

0 comments on commit 888c9d3

Please sign in to comment.