Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd59c149 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Additional heuristics: variables with names ending with _LIST are lists"

parents bdd7b3de 468e11fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -414,7 +414,7 @@ endif

def init(g, handle):
  cfg = rblf.cfg(handle)
  if rblf.filter(g.get("PRODUCT_LIST", ""), g["TARGET_PRODUCT"]):
  if rblf.filter(g.get("PRODUCT_LIST", []), g["TARGET_PRODUCT"]):
    pass
`,
	},
+4 −0
Original line number Diff line number Diff line
@@ -299,6 +299,10 @@ func (ctx *parseContext) addVariable(name string) variable {
					vt = vi.valueType
				}
			}
			if strings.HasSuffix(name, "_LIST") && vt == starlarkTypeUnknown {
				// Heuristics: Variables with "_LIST" suffix are lists
				vt = starlarkTypeList
			}
			v = &otherGlobalVariable{baseVariable{nam: name, typ: vt}}
		}
		ctx.variables[name] = v