Skip to content

Commit

Permalink
added GetSource method to ParseResult
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandone committed Oct 9, 2024
1 parent febe5da commit 1150c14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions numscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ func (p ParseResult) Run(ctx context.Context, vars VariablesMap, store Store) (E
}
return *res, nil
}

func (p ParseResult) GetSource() string {
return p.parseResult.Source
}

0 comments on commit 1150c14

Please sign in to comment.