Beispiel #1
0
func (runtime *_runtime) cmpl_parse(filename string, src, sm interface{}) (*_nodeProgram, error) {
	program, err := parser.ParseFileWithSourceMap(nil, filename, src, sm, 0)
	if err != nil {
		return nil, err
	}

	return cmpl_parse(program), nil
}
Beispiel #2
0
func (runtime *_runtime) parse(filename string, src, sm interface{}) (*ast.Program, error) {
	return parser.ParseFileWithSourceMap(nil, filename, src, sm, 0)
}
Beispiel #3
0
func (runtime *_runtime) parse(filename string, src interface{}, sm *sourcemap.SourceMap) (*ast.Program, error) {
	return parser.ParseFileWithSourceMap(nil, filename, src, 0, sm)
}