Lines Matching refs:parser
41 func findHeaderLib(e parser.Expression) (*includeDirFix, bool) {
42 if op, ok := e.(*parser.Operator); ok {
46 arg0, ok := op.Args[0].(*parser.Variable)
47 arg1, ok1 := op.Args[1].(*parser.String)
59 func searchThroughOperatorList(mod *parser.Module, e parser.Expression) {
60 if list, ok := e.(*parser.List); ok {
61 newList := make([]parser.Expression, 0, len(list.Values))
73 if op, ok := e.(*parser.Operator); ok {
78 func getLiteralListProperty(mod *parser.Module, name string) (list *parser.List, found bool) {
83 list, ok = prop.Value.(*parser.List)
86 func addLibrary(mod *parser.Module, libType string, libName string) {
89 list = new(parser.List)
90 prop := new(parser.Property)
96 if stringValue, ok := v.(*parser.String); ok && stringValue.Value == libName {
101 lib := new(parser.String)
108 mod, ok := def.(*parser.Module)