From 7d2b7199d87930096b7fd799709fe0105d51eccb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 14:36:15 -0800 Subject: Lots of cleanups, including expanded use of (... compiles to "text literal") shorthand, deprecating Lua value, and more use of Lua "..." with text interpolations. --- syntax_tree.moon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'syntax_tree.moon') diff --git a/syntax_tree.moon b/syntax_tree.moon index 207fb9b..dd10d77 100644 --- a/syntax_tree.moon +++ b/syntax_tree.moon @@ -45,7 +45,8 @@ class SyntaxTree f = Files.read(s.filename) return f }) - get_source_code: => @@source_code_for_tree[@] + get_source_file: => @@source_code_for_tree[@] + get_source_code: => @@source_code_for_tree[@]\sub(@source.start, @source.stop) map: (fn)=> replacement = fn(@) if replacement == false then return nil -- cgit v1.2.3