Skip to content

Commit 2ce8c8b

Browse files
committed
Expose ParseValue
This PR marks ParseValue as a public method that allows it to be called directly. It is handy to get AST value as part of pre-processing / validation process.
1 parent 09272f3 commit 2ce8c8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/parser/parser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ func Parse(p ParseParams) (*ast.Document, error) {
7979
return doc, nil
8080
}
8181

82-
// TODO: test and expose parseValue as a public
83-
func parseValue(p ParseParams) (ast.Value, error) {
82+
// ParseValue parses params and returns ast value
83+
func ParseValue(p ParseParams) (ast.Value, error) {
8484
var value ast.Value
8585
var sourceObj *source.Source
8686
switch src := p.Source.(type) {

0 commit comments

Comments
 (0)