diff options
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 |
