Lines Matching refs:parser
74 file, errs := parser.Parse(filename, r, parser.NewScope(nil))
91 res, err := parser.Print(file)
122 func findModules(file *parser.File) (modified bool, errs []error) {
125 if module, ok := def.(*parser.Module); ok {
127 if prop.Name == "name" && prop.Value.Type() == parser.StringType {
128 if targetedModule(prop.Value.Eval().(*parser.String).Value) {
141 func processModule(module *parser.Module, moduleName string,
142 file *parser.File) (modified bool, errs []error) {
151 prop := parser.Property{Name: *parameter, Value: &parser.List{}}
161 func processParameter(value parser.Expression, paramName, moduleName string,
162 file *parser.File) (modified bool, errs []error) {
163 if _, ok := value.(*parser.Variable); ok {
168 if _, ok := value.(*parser.Operator); ok {
173 list, ok := value.(*parser.List)
179 wasSorted := parser.ListIsSorted(list)
182 m := parser.AddStringToList(list, a)
187 m := parser.RemoveStringFromList(list, r)
192 parser.SortList(file, list)