diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 14:36:15 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 14:37:22 -0800 |
| commit | 7d2b7199d87930096b7fd799709fe0105d51eccb (patch) | |
| tree | f33de61cb44357497758bb08ec6993753d8baa43 /syntax_tree.moon | |
| parent | ba96cdfa07cea15ada62f8f89b2563de1286a0de (diff) | |
Lots of cleanups, including expanded use of (... compiles to "text
literal") shorthand, deprecating Lua value, and more use of Lua "..."
with text interpolations.
Diffstat (limited to 'syntax_tree.moon')
| -rw-r--r-- | syntax_tree.moon | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
