renamed line.moon to statement.moon

This commit is contained in:
leaf corcoran 2011-11-06 23:03:31 -08:00
parent 5d9851b8cd
commit 44167c327a
4 changed files with 6 additions and 10 deletions

View File

@ -2,7 +2,7 @@ module("moonscript.compile", package.seeall)
local util = require("moonscript.util")
local dump = require("moonscript.dump")
require("moonscript.compile.format")
require("moonscript.compile.line")
require("moonscript.compile.statement")
require("moonscript.compile.value")
local transform = require("moonscript.transform")
local NameProxy = transform.NameProxy
@ -89,8 +89,7 @@ Line = (function()
_base_0.__class = _class_0
return _class_0
end)()
local Block_
Block_ = (function()
Block = (function()
local _parent_0 = nil
local _base_0 = {
header = "do",
@ -425,7 +424,7 @@ Block_ = (function()
end)()
local RootBlock
RootBlock = (function()
local _parent_0 = Block_
local _parent_0 = Block
local _base_0 = {
render = function(self)
self:_insert_breaks()
@ -453,7 +452,6 @@ RootBlock = (function()
_base_0.__class = _class_0
return _class_0
end)()
Block = Block_
format_error = function(msg, pos, file_str)
local line = pos_to_line(file_str, pos)
local line_str

View File

@ -4,7 +4,7 @@ util = require "moonscript.util"
dump = require "moonscript.dump"
require "moonscript.compile.format"
require "moonscript.compile.line"
require "moonscript.compile.statement"
require "moonscript.compile.value"
transform = require "moonscript.transform"
@ -48,7 +48,7 @@ class Line
c
concat buff
class Block_
class Block
header: "do"
footer: "end"
@ -263,13 +263,11 @@ class Block_
@stm stm for stm in *stms
nil
class RootBlock extends Block_
class RootBlock extends Block
render: =>
@_insert_breaks!
concat @_lines, "\n"
Block = Block_
format_error = (msg, pos, file_str) ->
line = pos_to_line file_str, pos
line_str, line = get_closest_line file_str, line