1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-03 01:40:07 +00:00

bitbake: [parser] Cary a Statement Node through the parsing

When parsing we will collect a number of statements
that can be evaluated...The plan is to be evaluate
things twice (old+new) and then compare the result,
it should be the same.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Holger Freyther
2009-05-18 19:24:07 +02:00
committed by Richard Purdie
parent 5bac3403d7
commit 4b25b519ae
4 changed files with 92 additions and 79 deletions
+6 -2
View File
@@ -68,11 +68,15 @@ def supports(fn, data):
return 1
return 0
def handle(fn, data, include = 0):
def handle(fn, data, include = 0, statements = None):
"""Call the handler that is appropriate for this file"""
if not statements:
import ast
statements = ast.StatementGroup()
for h in handlers:
if h['supports'](fn, data):
return h['handle'](fn, data, include)
return h['handle'](fn, data, include, statements)
raise ParseError("%s is not a BitBake file" % fn)
def init(fn, data):