Lines Matching refs:releases
10 a symbol as one or more AST nodes given a Release or range of Releases.
44 # name, with an AST node for a range of Releases for that object.
84 def InReleases(self, releases):
85 if not releases: return False
88 if self.IsRelease(releases[-1]): return True
89 if len(releases) > 1:
90 return self.InRange(releases[0], releases[-1])
110 def GetMinMax(self, releases = None):
111 if not releases:
115 rmin = releases[0]
119 rmax = releases[-1]
169 # Check current releases in that namespace
189 node.Error('Overlap in releases: %s vs %s when adding %s' %
222 self.releases = sorted(self.release_to_version.keys())
235 return self.releases
238 return (self.releases[0], self.releases[-1])
286 releases = IDLReleaseList()
287 assert releases.AddNode(Foo23)
288 assert releases.AddNode(Foo45)
301 releases = IDLReleaseList()
302 assert releases.AddNode(FooXX)
303 assert releases.AddNode(Foo23)
304 assert not releases.AddNode(Foo1X)
317 releases = IDLReleaseList()
318 assert releases.AddNode(FooXX)
319 assert releases.AddNode(Foo1X)
320 assert releases.AddNode(Foo23)
322 assert releases.AddNode(Foo45)
325 assert releases.FindRelease('M13') == FooXX
326 assert releases.FindRelease('M14') == Foo1X
327 assert releases.FindRelease('M15') == Foo23
328 assert releases.FindRelease('M16') == None
329 assert releases.FindRelease('M17') == Foo45
330 assert releases.FindRelease('M18') == None
332 assert releases.FindRange('M13','M14') == [FooXX]
333 assert releases.FindRange('M13','M17') == [FooXX, Foo1X, Foo23]
334 assert releases.FindRange('M16','M17') == []
335 assert releases.FindRange(None, None) == [FooXX, Foo1X, Foo23, Foo45]