Hemmo Nieminen
e42f366e0b
Fix an uninitialized variable access error.
...
To reproduce, one could write:
foo = files('foo.c')
foo[0].path()
and get:
Traceback (most recent call last):
[snip]
File "/home/trhd/Projects/meson/mesonbuild/interpreterbase.py", line 398, in method_call
raise InvalidArguments('Variable "%s" is not callable.' % object_name)
UnboundLocalError: local variable 'object_name' referenced before assignment
Fix this by handling file objects separately.
8 years ago
Nirbheek Chauhan
0e078adf5a
interpreter: Implement array.get(index, fallback)
...
If the index is out of range, the fallback value is used. Includes
a test.
Closes #1337
8 years ago
Jussi Pakkanen
8ec9b0a71f
Better error message when using = rather than : for defining keywords.
8 years ago
Mike Sinkovsky
969be1f679
cleanup: Remove redundant parentheses
8 years ago
Mike Sinkovsky
77515ee541
style: [E303] too many blank lines (2)
8 years ago
Mike Sinkovsky
bf14cec81b
style: [E712] comparison to True should be 'if cond is True:' or 'if cond:'
8 years ago
Igor Gnatenko
f0b30baa39
style: fix E225 violations
...
E225: missing whitespace around operator
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
9ffc0d2f89
tree-wide: remove blank lines at EOF
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Nirbheek Chauhan
2c83bd16fc
Test targets with only generated and prebuilt objects
8 years ago
Jussi Pakkanen
14ca7d602c
Store subdir information for each node so we can remove files set in other subdirectories.
8 years ago
Jussi Pakkanen
c41805f012
Moved more stuff, can now parse all of common tests.
8 years ago
Jussi Pakkanen
7e8872236d
Implement a bunch of functions.
8 years ago
Jussi Pakkanen
7ed7219d9d
Moved functions to base enough to get the base sample project parsed.
8 years ago
Jussi Pakkanen
0a31afd672
Embark on a journey to create a rewrite tool.
8 years ago