// ParseBytes parse from byte slice, and returns ast.File
ParseBytes parse from byte slice, and returns ast.File
// ParseBytes parse from byte slice and returns ast . File
func ParseBytes(bytes []byte, mode Mode) (*ast.File, error) {
	tokens := lexer.Tokenize(string(bytes))
	f, err := Parse(tokens, mode)
	if err != nil {
		return nil, errors.Wrapf(err, "failed to parse")
	}
	return f, nil
}
func ParseBytes ( bytes [ ] byte , mode Mode ) ( * ast . File , error ) { tokens := lexer . Tokenize ( string ( bytes ) ) f , err := Parse ( tokens , mode ) if err != nil { return nil , errors . Wrapf ( err , " " ) } return f , nil }
ParseBytes parse from byte slice, and returns ast.File
ParseBytes parse from byte slice and returns ast . File