summaryrefslogtreecommitdiff
path: root/vala/valacastexpression.vala
Commit message (Collapse)AuthorAgeFilesLines
* Fix parameter names in the documentation for libvalaBen Iofel2015-11-111-3/+3
| | | | Fixes bug 755917
* Revert "Set parent_node and always copy datatype when assigned to code nodes."Luca Bruno2013-10-071-1/+1
| | | | | | This reverts commit a09c9e93af0d64b9331c274de573465fe070b722. Fixes bug 709587.
* Set parent_node and always copy datatype when assigned to code nodes.Luca Bruno2013-10-061-1/+1
| | | | | | This is a delicate patch that fixes subtle memory corruption bugs in libvala users and the compiler itself. It might break some application, so this commit is open for testing.
* GVariant: Fix memory leak when boxing and unboxing variantsJürg Billeter2012-06-021-0/+9
| | | | Fixes bug 674201.
* Enable flow analysis for out parametersLuca Bruno2011-07-151-2/+2
| | | | Fixes bug 638363.
* Fix explicit cast of instance method access to a delegate typeLuca Bruno2011-07-111-0/+8
| | | | Fixes bug 539166.
* Allow casts in constant initializersJürg Billeter2011-02-141-1/+5
|
* Replace SemanticAnalyzer with CodeContext in CodeNode.check parameterJürg Billeter2010-10-281-3/+3
|
* Port remaining code nodes to use accept_children for visiting childrenLuca Bruno2010-09-101-4/+6
| | | | Fixes bug 566870.
* Use emit instead of accept and accept_children in code generatorJürg Billeter2010-08-101-0/+8
|
* Mark return type of `as` operator as nullableJürg Billeter2010-03-101-0/+4
| | | | Fixes bug 612382.
* Fix (!) non-null cast for structsJürg Billeter2010-03-101-7/+3
| | | | Fixes bug 612380.
* Fix crash on invalid cast expressionsJürg Billeter2009-12-191-0/+6
| | | | Fixes bug 601614.
* Support (!) non-null castsJürg Billeter2009-10-211-2/+22
|
* Do not use Gee namespace to avoid conflict with libgeeJürg Billeter2009-10-121-1/+0
|
* Rework header file generationJürg Billeter2009-03-311-3/+1
| | | | | | Generate single C header file for public API, do not use header files for internal API. Fixes bug 471244, bug 571037, bug 572536, and bug 575629.
* Fix error handling in condition of while, do, and for statementsJürg Billeter2008-11-301-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-30 Jürg Billeter <j@bitron.ch> * vala/valaaddressofexpression.vala: * vala/valaarraycreationexpression.vala: * vala/valaassignment.vala: * vala/valabaseaccess.vala: * vala/valabinaryexpression.vala: * vala/valablock.vala: * vala/valacastexpression.vala: * vala/valaconditionalexpression.vala: * vala/valadostatement.vala: * vala/valaelementaccess.vala: * vala/valaexpression.vala: * vala/valaforstatement.vala: * vala/valainitializerlist.vala: * vala/valalambdaexpression.vala: * vala/valaliteral.vala: * vala/valamemberaccess.vala: * vala/valamethodcall.vala: * vala/valaobjectcreationexpression.vala: * vala/valaparenthesizedexpression.vala: * vala/valapointerindirection.vala: * vala/valapostfixexpression.vala: * vala/valareferencetransferexpression.vala: * vala/valasemanticanalyzer.vala: * vala/valasizeofexpression.vala: * vala/valaswitchsection.vala: * vala/valatuple.vala: * vala/valatypecheck.vala: * vala/valatypeofexpression.vala: * vala/valaunaryexpression.vala: * vala/valawhilestatement.vala: * gobject/valaccodebasemodule.vala: Fix error handling in condition of while, do, and for statements svn path=/trunk/; revision=2096
* Convert binary conditional expressions into if statementsJürg Billeter2008-11-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-29 Jürg Billeter <j@bitron.ch> * vala/valaaddressofexpression.vala: * vala/valaarraycreationexpression.vala: * vala/valaassignment.vala: * vala/valabaseaccess.vala: * vala/valabinaryexpression.vala: * vala/valacastexpression.vala: * vala/valaconditionalexpression.vala: * vala/valadostatement.vala: * vala/valaelementaccess.vala: * vala/valaexpression.vala: * vala/valaforstatement.vala: * vala/valainitializerlist.vala: * vala/valalambdaexpression.vala: * vala/valaliteral.vala: * vala/valamemberaccess.vala: * vala/valamethodcall.vala: * vala/valaobjectcreationexpression.vala: * vala/valaparenthesizedexpression.vala: * vala/valapointerindirection.vala: * vala/valapostfixexpression.vala: * vala/valareferencetransferexpression.vala: * vala/valasizeofexpression.vala: * vala/valatuple.vala: * vala/valatypecheck.vala: * vala/valatypeofexpression.vala: * vala/valaunaryexpression.vala: * vala/valawhilestatement.vala: Convert binary conditional expressions into if statements svn path=/trunk/; revision=2085
* Report use of possibly uninitialized variables, fixes bug 508477 and bugJürg Billeter2008-11-141-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-14 Jürg Billeter <j@bitron.ch> * vala/Makefile.am: * vala/valaassignment.vala: * vala/valabasicblock.vala: * vala/valabinaryexpression.vala: * vala/valacastexpression.vala: * vala/valacatchclause.vala: * vala/valacodenode.vala: * vala/valadeclarationstatement.vala: * vala/valaelementaccess.vala: * vala/valaexpressionstatement.vala: * vala/valaflowanalyzer.vala: * vala/valaforeachstatement.vala: * vala/valainvocationexpression.vala: * vala/valamemberaccess.vala: * vala/valaobjectcreationexpression.vala: * vala/valaparenthesizedexpression.vala: * vala/valaphifunction.vala: * vala/valapointerindirection.vala: * vala/valareferencetransferexpression.vala: * vala/valareturnstatement.vala: * vala/valathrowstatement.vala: * vala/valaunaryexpression.vala: * compiler/valacompiler.vala: Report use of possibly uninitialized variables, fixes bug 508477 and bug 556861 svn path=/trunk/; revision=2018
* Remove unnecessary accept calls in semantic analyzerJürg Billeter2008-11-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-10 Jürg Billeter <j@bitron.ch> * vala/valaaddressofexpression.vala: * vala/valaarraycreationexpression.vala: * vala/valaassignment.vala: * vala/valabinaryexpression.vala: * vala/valablock.vala: * vala/valacastexpression.vala: * vala/valacatchclause.vala: * vala/valaclass.vala: * vala/valaconditionalexpression.vala: * vala/valaconstant.vala: * vala/valaconstructor.vala: * vala/valacreationmethod.vala: * vala/valadeclarationstatement.vala: * vala/valadelegate.vala: * vala/valadeletestatement.vala: * vala/valadestructor.vala: * vala/valadostatement.vala: * vala/valaelementaccess.vala: * vala/valaenum.vala: * vala/valaenumvalue.vala: * vala/valaerrorcode.vala: * vala/valaerrordomain.vala: * vala/valaexpressionstatement.vala: * vala/valafield.vala: * vala/valaforeachstatement.vala: * vala/valaformalparameter.vala: * vala/valaforstatement.vala: * vala/valaifstatement.vala: * vala/valainitializerlist.vala: * vala/valainterface.vala: * vala/valainvocationexpression.vala: * vala/valalambdaexpression.vala: * vala/valalocalvariable.vala: * vala/valalockstatement.vala: * vala/valamemberaccess.vala: * vala/valamemberinitializer.vala: * vala/valamethod.vala: * vala/valanamespace.vala: * vala/valaobjectcreationexpression.vala: * vala/valaparenthesizedexpression.vala: * vala/valapointerindirection.vala: * vala/valapostfixexpression.vala: * vala/valaproperty.vala: * vala/valapropertyaccessor.vala: * vala/valareferencetransferexpression.vala: * vala/valareturnstatement.vala: * vala/valasemanticanalyzer.vala: * vala/valasignal.vala: * vala/valasizeofexpression.vala: * vala/valasourcefile.vala: * vala/valastruct.vala: * vala/valaswitchlabel.vala: * vala/valaswitchsection.vala: * vala/valaswitchstatement.vala: * vala/valathrowstatement.vala: * vala/valatrystatement.vala: * vala/valatypecheck.vala: * vala/valatypeofexpression.vala: * vala/valaunaryexpression.vala: * vala/valawhilestatement.vala: * vala/valayieldstatement.vala: Remove unnecessary accept calls in semantic analyzer svn path=/trunk/; revision=2010
* Move expression checking to code nodesJürg Billeter2008-11-101-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-10 Jürg Billeter <j@bitron.ch> * vala/valaaddressofexpression.vala: * vala/valabaseaccess.vala: * vala/valabooleanliteral.vala: * vala/valacastexpression.vala: * vala/valacharacterliteral.vala: * vala/valaconditionalexpression.vala: * vala/valaintegerliteral.vala: * vala/valalambdaexpression.vala: * vala/valanullliteral.vala: * vala/valaobjectcreationexpression.vala: * vala/valaparenthesizedexpression.vala: * vala/valapointerindirection.vala: * vala/valapostfixexpression.vala: * vala/valarealliteral.vala: * vala/valareferencetransferexpression.vala: * vala/valasemanticanalyzer.vala: * vala/valasizeofexpression.vala: * vala/valastringliteral.vala: * vala/valatypecheck.vala: * vala/valatypeofexpression.vala: * vala/valaunaryexpression.vala: Move expression checking to code nodes svn path=/trunk/; revision=2009
* Don't derive from GObject in libvala where not necessary to improveJürg Billeter2008-08-141-2/+2
| | | | | | | | | 2008-08-14 Jürg Billeter <j@bitron.ch> Don't derive from GObject in libvala where not necessary to improve compilation performance svn path=/trunk/; revision=1757
* Move memory management into CCodeGenerator.transform_expression asJuerg Billeter2008-05-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Juerg Billeter <j@bitron.ch> * vala/Makefile.am: * vala/valaaddressofexpression.vala: * vala/valaarraycreationexpression.vala: * vala/valaassignment.vala: * vala/valabaseaccess.vala: * vala/valabinaryexpression.vala: * vala/valabooleanliteral.vala: * vala/valacastexpression.vala: * vala/valacharacterliteral.vala: * vala/valacodevisitor.vala: * vala/valaconditionalexpression.vala: * vala/valadatatype.vala: * vala/valaelementaccess.vala: * vala/valaexpression.vala: * vala/valaintegerliteral.vala: * vala/valaintegertype.vala: * vala/valainvocationexpression.vala: * vala/valalambdaexpression.vala: * vala/valamemberaccess.vala: * vala/valanullchecker.vala: * vala/valanullliteral.vala: * vala/valanulltype.vala: * vala/valaobjectcreationexpression.vala: * vala/valaparenthesizedexpression.vala: * vala/valapointerindirection.vala: * vala/valapostfixexpression.vala: * vala/valarealliteral.vala: * vala/valareferencetransferexpression.vala: * vala/valasemanticanalyzer.vala: * vala/valasignal.vala: * vala/valasizeofexpression.vala: * vala/valastringliteral.vala: * vala/valatypecheck.vala: * vala/valatypeofexpression.vala: * vala/valaunaryexpression.vala: * vala/valaunresolvedtype.vala: * vala/valavaluetype.vala: * gobject/valaccodeassignmentbinding.vala: * gobject/valaccodeelementaccessbinding.vala: * gobject/valaccodegenerator.vala: * gobject/valaccodeinvocationexpressionbinding.vala: * gobject/valaccodememberaccessbinding.vala: * gobject/valaccodemethodbinding.vala: * compiler/valacompiler.vala: Move memory management into CCodeGenerator.transform_expression as preparation to properly support nullable structs, fixes memory leak in internal substring method, fixes bug 527775 svn path=/trunk/; revision=1466
* deprecate construct as parameter modifier, fixes bug 524138Juerg Billeter2008-04-131-1/+5
| | | | | | | | | | | 2008-04-13 Juerg Billeter <j@bitron.ch> * vala/valaparser.vala: deprecate construct as parameter modifier, fixes bug 524138 * */*.vala: port to new syntax svn path=/trunk/; revision=1209
* report warning when using obsolete syntax for non-null typesJuerg Billeter2008-04-131-7/+7
| | | | | | | | | | | 2008-04-13 Juerg Billeter <j@bitron.ch> * vala/valaparser.vala: report warning when using obsolete syntax for non-null types * */*.vala, */*.vapi: port to new syntax svn path=/trunk/; revision=1208
* move unresolved type information from DataType into new UnresolvedTypeJuerg Billeter2007-12-021-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-02 Juerg Billeter <j@bitron.ch> * vala/Makefile.am, vala/parser.y, vala/vala.h, vala/valaarraycreationexpression.vala, vala/valacallback.vala, vala/valacastexpression.vala, vala/valacatchclause.vala, vala/valaclass.vala, vala/valacodenode.vala, vala/valacodevisitor.vala, vala/valaconstant.vala, vala/valadatatype.vala, vala/valafield.vala, vala/valaforeachstatement.vala, vala/valaformalparameter.vala, vala/valainterface.vala, vala/valainterfacewriter.vala, vala/valalocalvariabledeclaration.vala, vala/valamemberaccess.vala, vala/valamemorymanager.vala, vala/valamethod.vala, vala/valaobjectcreationexpression.vala, vala/valaproperty.vala, vala/valasignal.vala, vala/valastruct.vala, vala/valasymbolresolver.vala, vala/valatypecheck.vala, vala/valaunresolvedtype.vala, vala/valavariabledeclarator.vala, gobject/valaccodegenerator.vala, vapigen/valagidlparser.vala: move unresolved type information from DataType into new UnresolvedType class, replace UnresolvedType instance by resolved DataType in SymbolResolver svn path=/trunk/; revision=749
* rename replace method to replace_expression and require arguments of typeJuerg Billeter2007-12-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | 2007-12-02 Juerg Billeter <j@bitron.ch> * vala/valaaddressofexpression.vala, vala/valaassignment.vala, vala/valabinaryexpression.vala, vala/valacastexpression.vala, vala/valacodenode.vala, vala/valadostatement.vala, vala/valaexpressionstatement.vala, vala/valaforeachstatement.vala, vala/valaforstatement.vala, vala/valaifstatement.vala, vala/valainvocationexpression.vala, vala/valamemberaccess.vala, vala/valaobjectcreationexpression.vala, vala/valaparenthesizedexpression.vala, vala/valapointerindirection.vala, vala/valareferencetransferexpression.vala, vala/valareturnstatement.vala, vala/valasemanticanalyzer.vala, vala/valaswitchstatement.vala, vala/valathrowstatement.vala, vala/valaunaryexpression.vala, vala/valavariabledeclarator.vala, vala/valawhilestatement.vala: rename replace method to replace_expression and require arguments of type Expression svn path=/trunk/; revision=748
* rename TypeReference to DataTypeJuerg Billeter2007-12-021-2/+2
| | | | | | | | | | | | 2007-12-02 Juerg Billeter <j@bitron.ch> * vala/valadatatype.vala, vala/Makefile.am: rename TypeReference to DataType * vala/parser.y, vala/vala.h, vala/*.vala, gobject/*.vala, vapigen/valagidlparser.vala: adapt after renaming svn path=/trunk/; revision=746
* add is_pure method to Expression classJuerg Billeter2007-11-291-1/+5
| | | | | | | | | | | | | | | | | | | | | 2007-11-29 Juerg Billeter <j@bitron.ch> * vala/valaaddressofexpression.vala, vala/valaarraycreationexpression.vala, vala/valaassignment.vala, vala/valabaseaccess.vala, vala/valabinaryexpression.vala, vala/valacastexpression.vala, vala/valaconditionalexpression.vala, vala/valaelementaccess.vala, vala/valaexpression.vala, vala/valainitializerlist.vala, vala/valainvocationexpression.vala, vala/valalambdaexpression.vala, vala/valaliteralexpression.vala, vala/valamemberaccess.vala, vala/valaobjectcreationexpression.vala, vala/valaparenthesizedexpression.vala, vala/valapointerindirection.vala, vala/valapostfixexpression.vala, vala/valareferencetransferexpression.vala, vala/valasizeofexpression.vala, vala/valatypecheck.vala, vala/valatypeofexpression.vala, vala/valaunaryexpression.vala: add is_pure method to Expression class svn path=/trunk/; revision=739
* update license headers to the GNU Lesser General Public License, versionJuerg Billeter2007-09-071-1/+1
| | | | | | | | | 2007-09-07 Juerg Billeter <j@bitron.ch> * update license headers to the GNU Lesser General Public License, version 2.1 or later svn path=/trunk/; revision=588
* support C# like as operator test the as operatorMathias Hasselmann2007-08-201-4/+6
| | | | | | | | | | 2007-08-20 Mathias Hasselmann <mathias.hasselmann@gmx.de> * vala/valacastexpression.vala, gobject/valacodegenerator.vala, vala/parser.y, vala/scanner.l: support C# like as operator * tests/Makefile.am, tests/test-034.*: test the as operator svn path=/trunk/; revision=489
* Move contents of vala-pkg to trunkJürg Billeter2007-05-021-0/+74
2007-05-02 Jürg Billeter <j@bitron.ch> * Move contents of vala-pkg to trunk svn path=/trunk/; revision=300