1. 27 Jul, 2007 3 commits
    • Jürg Billeter's avatar
      fix warning when using element access with Gee.List or Gee.Map · 894d1cd4
      Jürg Billeter authored
      2007-07-27  Juerg Billeter  <j@bitron.ch>
      
      	* vala/valasemanticanalyzer.vala: fix warning when using element access
      	  with Gee.List or Gee.Map
      
      svn path=/trunk/; revision=403
      894d1cd4
    • Jürg Billeter's avatar
      fix memory management in foreach statements · db016167
      Jürg Billeter authored
      2007-07-27  Juerg Billeter  <j@bitron.ch>
      
      	* vala/parser.y, vala/valaforeachstatement.vala,
      	  vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala,
      	  gobject/valacodegenerator.vala,
      	  gobject/valacodegeneratorassignment.vala: fix memory management in
      	  foreach statements
      
      svn path=/trunk/; revision=402
      db016167
    • Jürg Billeter's avatar
      fix memory leak in cast expressions · 5a485fa0
      Jürg Billeter authored
      2007-07-27  Juerg Billeter  <j@bitron.ch>
      
      	* vala/valasemanticanalyzer.vala: fix memory leak in cast expressions
      
      svn path=/trunk/; revision=400
      5a485fa0
  2. 26 Jul, 2007 1 commit
    • Jürg Billeter's avatar
      support element access for types implementing Gee.List or Gee.Map · 223fcec2
      Jürg Billeter authored
      2007-07-26  Juerg Billeter  <j@bitron.ch>
      
      	* vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala,
      	  gobject/valacodegenerator.vala,
      	  gobject/valacodegeneratorassignment.vala,
      	  gobject/valacodegeneratorinvocationexpression.vala: support element
      	  access for types implementing Gee.List or Gee.Map
      
      svn path=/trunk/; revision=390
      223fcec2
  3. 24 Jul, 2007 2 commits
  4. 23 Jul, 2007 2 commits
  5. 22 Jul, 2007 1 commit
  6. 21 Jul, 2007 1 commit
    • Jürg Billeter's avatar
      derive from Symbol class where appropriate and move symbol table into · db24aa20
      Jürg Billeter authored
      2007-07-21  Juerg Billeter  <j@bitron.ch>
      
      	* vala/Makefile.am, vala/parser.y, vala/scanner.l, vala/vala.h,
      	  vala/valaarray.vala, vala/valaarraylengthfield.vala,
      	  vala/valaarrayresizemethod.vala, vala/valaattributeprocessor.vala,
      	  vala/valablock.vala, vala/valabreakstatement.vala,
      	  vala/valacallback.vala, vala/valaclass.vala,
      	  vala/valacodecontext.vala, vala/valacodenode.vala,
      	  vala/valacodevisitor.vala, vala/valaconstant.vala,
      	  vala/valaconstructor.vala, vala/valacontinuestatement.vala,
      	  vala/valacreationmethod.vala, vala/valadatatype.vala,
      	  vala/valadeclarationstatement.vala, vala/valadestructor.vala,
      	  vala/valadostatement.vala, vala/valaemptystatement.vala,
      	  vala/valaenum.vala, vala/valaenumvalue.vala,
      	  vala/valaexpressionstatement.vala, vala/valafield.vala,
      	  vala/valaflags.vala, vala/valaflagsvalue.vala,
      	  vala/valaforeachstatement.vala, vala/valaformalparameter.vala,
      	  vala/valaforstatement.vala, vala/valaifstatement.vala,
      	  vala/valainterface.vala, vala/valainterfacewriter.vala,
      	  vala/valalockstatement.vala, vala/valamember.vala,
      	  vala/valamemorymanager.vala, vala/valamethod.vala,
      	  vala/valanamespace.vala, vala/valaproperty.vala,
      	  vala/valapropertyaccessor.vala, vala/valareturnstatement.vala,
      	  vala/valascope.vala, vala/valasemanticanalyzer.vala,
      	  vala/valasignal.vala, vala/valasourcefile.vala,
      	  vala/valastatement.vala, vala/valastruct.vala,
      	  vala/valaswitchstatement.vala, vala/valasymbol.vala,
      	  vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala,
      	  vala/valathrowstatement.vala, vala/valatrystatement.vala,
      	  vala/valatypeparameter.vala, vala/valatypereference.vala,
      	  vala/valavariabledeclarator.vala, vala/valawhilestatement.vala,
      	  gobject/valacodegenerator.vala,
      	  gobject/valacodegeneratorassignment.vala,
      	  gobject/valacodegeneratorclass.vala,
      	  gobject/valacodegeneratorinterface.vala,
      	  gobject/valacodegeneratorinvocationexpression.vala,
      	  gobject/valacodegeneratormemberaccess.vala,
      	  gobject/valacodegeneratormethod.vala,
      	  gobject/valacodegeneratorsignal.vala,
      	  gobject/valacodegeneratorstruct.vala, compiler/valacompiler.vala,
      	  vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gio-standalone.vala,
      	  vapi/glib-2.0.vala, vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
      	  vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala,
      	  vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala, vapi/pango.vala,
      	  vapi/vte.vala, vapigen/valagidlparser.vala, vapigen/valavapigen.vala:
      	  derive from Symbol class where appropriate and move symbol table into
      	  separate Scope class
      
      svn path=/trunk/; revision=366
      db24aa20
  7. 17 Jul, 2007 2 commits
    • Jürg Billeter's avatar
      convert the CodeContext.get_root method to a property · 5301e466
      Jürg Billeter authored
      2007-07-17  Juerg Billeter  <j@bitron.ch>
      
      	* vala/valaarraylengthfield.vala, vala/valaarrayresizemethod.vala,
      	  vala/valacodecontext.vala, vala/valasemanticanalyzer.vala,
      	  vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala,
      	  gobject/valacodegenerator.vala: convert the CodeContext.get_root
      	  method to a property
      
      svn path=/trunk/; revision=361
      5301e466
    • Jürg Billeter's avatar
      move namespaces from SourceFile to CodeContext · efb72750
      Jürg Billeter authored
      2007-07-17  Juerg Billeter  <j@bitron.ch>
      
      	* vala/parser.y, vala/valaattributeprocessor.vala,
      	  vala/valacodecontext.vala, vala/valadatatype.vala,
      	  vala/valainterfacewriter.vala, vala/valamemorymanager.vala,
      	  vala/valanamespace.vala, vala/valasemanticanalyzer.vala,
      	  vala/valasourcefile.vala, vala/valasymbolbuilder.vala,
      	  vala/valasymbolresolver.vala, gobject/valacodegenerator.vala,
      	  gobject/valacodegeneratorsourcefile.vala, vapigen/valagidlparser.vala,
      	  vapigen/valavapigen.vala: move namespaces from SourceFile to
      	  CodeContext
      
      svn path=/trunk/; revision=360
      efb72750
  8. 13 Jul, 2007 1 commit
    • Jürg Billeter's avatar
      move iteration of throw statements, try statements, and catch clauses from · 83363b2b
      Jürg Billeter authored
      2007-07-13  Juerg Billeter  <j@bitron.ch>
      
      	* vala/valacatchclause.vala, vala/valacodevisitor.vala,
      	  vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala,
      	  vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala,
      	  vala/valathrowstatement.vala, vala/valatrystatement.vala,
      	  gobject/valacodegenerator.vala: move iteration of throw statements,
      	  try statements, and catch clauses from accept to accept_children
      	  method, fixes nested try statements
      	* gobject/valacodegenerator.vala: clear unhandled error instead of
      	  returning from the current function
      	* vala/valasemanticanalyzer.vala: generic pointer is compatible with
      	  generic pointer
      	* vapi/glib-2.0.vala: add some more default values
      
      svn path=/trunk/; revision=354
      83363b2b
  9. 12 Jul, 2007 2 commits
    • Jürg Billeter's avatar
      allow construction methods to throw exceptions, fix issue with multiple · bda9e0cf
      Jürg Billeter authored
      2007-07-12  Juerg Billeter  <j@bitron.ch>
      
      	* vala/parser.y, vala/valasemanticanalyzer.vala,
      	  gobject/valacodegenerator.vala: allow construction methods to throw
      	  exceptions, fix issue with multiple catch clauses
      
      svn path=/trunk/; revision=349
      bda9e0cf
    • Jürg Billeter's avatar
      implement simple exception handling for expression and declaration · 08c26be7
      Jürg Billeter authored
      2007-07-12  Juerg Billeter  <j@bitron.ch>
      
      	* vala/parser.y, vala/valacodenode.vala, vala/valaenum.vala,
      	  vala/valaexpression.vala, vala/valamethod.vala,
      	  vala/valasemanticanalyzer.vala, vala/valatrystatement.vala,
      	  ccode/valaccodegotostatement.vala, ccode/valaccodelabel.vala:
      	* gobject/valacodegenerator.vala,
      	  gobject/valacodegeneratorinvocationexpression.vala,
      	  gobject/valacodegeneratormethod.vala: implement simple exception
      	  handling for expression and declaration statements
      	* tests/test-033.vala, tests/test-033.out: test exception handling
      	* README, ccode/Makefile.am, tests/Makefile.am: update
      
      svn path=/trunk/; revision=348
      08c26be7
  10. 11 Jul, 2007 2 commits
  11. 09 Jul, 2007 1 commit
    • Jürg Billeter's avatar
      remove obsolete ref modifier and callback keyword · ffb3d21f
      Jürg Billeter authored
      2007-07-09  Juerg Billeter  <j@bitron.ch>
      
      	* vala/scanner.l, vala/parser.y, vala/valaarray.vala,
      	  vala/valaarraycreationexpression.vala, vala/valaattribute.vala,
      	  vala/valabaseaccess.vala, vala/valablock.vala,
      	  vala/valabooleanliteral.vala, vala/valacallback.vala,
      	  vala/valaclass.vala, vala/valacodecontext.vala,
      	  vala/valacodenode.vala, vala/valacreationmethod.vala,
      	  vala/valadatatype.vala, vala/valaelementaccess.vala,
      	  vala/valaenum.vala, vala/valafield.vala, vala/valaflags.vala,
      	  vala/valaformalparameter.vala, vala/valaforstatement.vala,
      	  vala/valainitializerlist.vala, vala/valaintegerliteral.vala,
      	  vala/valainterface.vala, vala/valainterfacewriter.vala,
      	  vala/valainvocationexpression.vala, vala/valainvokable.vala,
      	  vala/valalambdaexpression.vala, vala/valaliteralexpression.vala,
      	  vala/valalocalvariabledeclaration.vala, vala/valamemberaccess.vala,
      	  vala/valamemorymanager.vala, vala/valamethod.vala,
      	  vala/valanamespace.vala, vala/valanullliteral.vala,
      	  vala/valaobjectcreationexpression.vala, vala/valaparser.vala,
      	  vala/valapointer.vala, vala/valaproperty.vala,
      	  vala/valasemanticanalyzer.vala, vala/valasignal.vala,
      	  vala/valasourcefile.vala, vala/valasourcereference.vala,
      	  vala/valastringliteral.vala, vala/valastruct.vala,
      	  vala/valaswitchsection.vala, vala/valaswitchstatement.vala,
      	  vala/valasymbol.vala, vala/valasymbolresolver.vala,
      	  vala/valatypereference.vala, vala/valavariabledeclarator.vala,
      	  gobject/valaclassregisterfunction.vala,
      	  gobject/valacodegenerator.vala,
      	  gobject/valacodegeneratorassignment.vala,
      	  gobject/valacodegeneratorclass.vala,
      	  gobject/valacodegeneratorinterface.vala,
      	  gobject/valacodegeneratorinvocationexpression.vala,
      	  gobject/valacodegeneratormemberaccess.vala,
      	  gobject/valacodegeneratormethod.vala,
      	  gobject/valacodegeneratorsignal.vala,
      	  gobject/valacodegeneratorsourcefile.vala,
      	  gobject/valainterfaceregisterfunction.vala,
      	  gobject/valatyperegisterfunction.vala, ccode/valaccodefragment.vala,
      	  ccode/valaccodefunction.vala, compiler/valacompiler.vala,
      	  vapi/cairo.vala, vapi/glib-2.0.vala, vapi/libxml-2.0.vala,
      	  tests/test-023.vala, gobject-introspection/gidl.vala,
      	  vapigen/valagidlparser.vala, vapigen/valavapigen.vala: remove obsolete
      	  ref modifier and callback keyword
      
      svn path=/trunk/; revision=334
      ffb3d21f
  12. 15 Jun, 2007 3 commits
    • Jürg Billeter's avatar
      move iteration of symbol nodes from accept to accept_children method · 5cfdd606
      Jürg Billeter authored
      2007-06-15  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valaattributeprocessor.vala, vala/valacodevisitor.vala,
      	  vala/valainterfacewriter.vala, vala/valamemorymanager.vala,
      	  vala/valasemanticanalyzer.vala, vala/valasymbolbuilder.vala,
      	  vala/valasymbolresolver.vala, vala/valaconstant.vala,
      	  vala/valaconstructor.vala, vala/valacreationmethod.vala,
      	  vala/valadestructor.vala, vala/valafield.vala,
      	  vala/valaformalparameter.vala, vala/valamethod.vala,
      	  vala/valaproperty.vala, vala/valapropertyaccessor.vala,
      	  vala/valasignal.vala, gobject/valacodegenerator.vala,
      	  gobject/valacodegeneratormethod.vala,
      	  gobject/valacodegeneratorsignal.vala: move iteration of symbol nodes
      	  from accept to accept_children method
      
      svn path=/trunk/; revision=324
      5cfdd606
    • Jürg Billeter's avatar
      move iteration of data types from accept to accept_children method · 6cbc5a68
      Jürg Billeter authored
      2007-06-15  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valaattributeprocessor.vala, vala/valacodevisitor.vala,
      	  vala/valainterfacewriter.vala, vala/valamemorymanager.vala,
      	  vala/valaparser.vala, vala/valasemanticanalyzer.vala,
      	  vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala,
      	  vala/valacallback.vala, vala/valaclass.vala, vala/valaenum.vala,
      	  vala/valaflags.vala, vala/valainterface.vala, vala/valastruct.vala,
      	  gobject/valacodegenerator.class, gobject/valacodegeneratorclass.vala,
      	  gobject/valacodegeneratorinterface.vala,
      	  gobject/valacodegeneratorstruct.vala: move iteration of data types
      	  from accept to accept_children method
      
      svn path=/trunk/; revision=323
      6cbc5a68
    • Jürg Billeter's avatar
      move iteration of source files and namespaces from accept to · 0233ba69
      Jürg Billeter authored
      2007-06-15  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valaattributeprocessor.vala, vala/valacodevisitor.vala,
      	  vala/valainterfacewriter.vala, vala/valamemorymanager.vala,
      	  vala/valaparser.vala, vala/valasemanticanalyzer.vala,
      	  vala/valasourcefile.vala, vala/valasymbolbuilder.vala,
      	  vala/valasymbolresolver.vala, vala/valacodenode.vala,
      	  vala/valanamespace.vala, gobject/valacodegenerator.vala,
      	  gobject/valacodegeneratorsourcefile.vala, vapigen/valagidlparser.vala:
      	  move iteration of source files and namespaces from accept to
      	  accept_children method
      
      svn path=/trunk/; revision=322
      0233ba69
  13. 31 May, 2007 1 commit
    • Jürg Billeter's avatar
      support sizeof expression update add struct_size param to GLib.Source · c9f266a1
      Jürg Billeter authored
      2007-05-31  Jürg Billeter  <j@bitron.ch>
      
      	* vala/scanner.l, vala/parser.y, vala/valasemanticanalyzer.vala,
      	  vala/valacodevisitor.vala, vala/valasizeofexpression.vala,
      	  gobject/valacodegenerator.vala: support sizeof expression
      	* vala/vala.h, vala/Makefile.am: update
      	* vapi/glib-2.0.vala: add struct_size param to GLib.Source construction
      	  method
      
      svn path=/trunk/; revision=317
      c9f266a1
  14. 14 May, 2007 1 commit
  15. 02 May, 2007 2 commits
  16. 30 Apr, 2007 5 commits
  17. 12 Apr, 2007 1 commit
    • Jürg Billeter's avatar
      add is_null property fix type analysis in conditional and parenthesized · e5f72479
      Jürg Billeter authored
      2007-04-12  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valatypereference.vala: add is_null property
      	* vala/valasemanticanalyzer.vala: fix type analysis in conditional and
      	  parenthesized expressions, fixes bug 428368
      	* vapi/glib-2.0.vala: don't mark GLib.Object and GLib.InitiallyUnowned
      	  as abstract
      
      svn path=/trunk/; revision=284
      e5f72479
  18. 05 Apr, 2007 1 commit
    • Jürg Billeter's avatar
      support temporary variables in initializers and iterators of for · cb55d7ec
      Jürg Billeter authored
      2007-04-05  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodegenerator.vala, vala/valaforstatement.vala: support
      	  temporary variables in initializers and iterators of for statements
      	* vala/valacodegenerator.vala: support freeing generic types
      	* vala/parser.y, vala/valacodevisitor.vala,
      	  vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala,
      	  vala/valareferencetransferexpression.vala: add reference transfer
      	  expressions, e.g. `#var'
      	* vala/vala.h, vala/Makefile.am: update
      
      svn path=/trunk/; revision=281
      cb55d7ec
  19. 04 Apr, 2007 2 commits
    • Jürg Billeter's avatar
      improve cast support fix ownership handling of local arrays skip code · 9ebb2dc1
      Jürg Billeter authored
      2007-04-04  Jürg Billeter  <j@bitron.ch>
      
      	* vala/scanner.l: improve cast support
      	* vala/valasemanticanalyzer.vala: fix ownership handling of local arrays
      	* vala/valacodegenerator.vala: skip code generation for static
      	  interfaces, downgrade generic management support message to warning
      	* vala/valacallback.vala: support callbacks as property type
      
      svn path=/trunk/; revision=278
      9ebb2dc1
    • Jürg Billeter's avatar
      support casts to generic types support arrays of generic types don't take · 5e2730eb
      Jürg Billeter authored
      2007-04-04  Jürg Billeter  <j@bitron.ch>
      
      	* vala/scanner.l: support casts to generic types
      	* vala/valasymbolresolver.vala, vala/valatypereference.vala: support
      	  arrays of generic types
      	* vala/valasymbolresolver.vala: don't take ownership of elements of weak
      	  arrays
      	* vala/valasemanticanalyzer.vala: accept uint as index value
      	* vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala,
      	  vala/valastatement.vala: minor cleanup of creation methods
      	* vala/valacodegenerator.vala: support creation methods for structs, fix
      	  pointer as return type
      	* vapi/glib-2.0.vala: add CLAMP and g_spaced_primes_closest
      
      svn path=/trunk/; revision=277
      5e2730eb
  20. 03 Apr, 2007 1 commit
  21. 20 Mar, 2007 1 commit
    • Jürg Billeter's avatar
      use weak local variables where appropriate default local variables to · 06d51a09
      Jürg Billeter authored
      2007-03-20  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valaparser.vala, vala/valasemanticanalyzer.vala,
      	  vala/valamemorymanager.vala, vala/valacodegenerator.vala,
      	  vala/valacallback.vala, vala/valainvocationexpression.vala,
      	  vala/valamethod.vala, vala/valaobjectcreationexpression.vala: use weak
      	  local variables where appropriate
      	* vala/parser.y, vala/valasemanticanalyzer.vala: default local variables
      	  to strong reference
      	* vala/valasemanticanalyzer.vala: don't promote local variables from
      	  weak to strong reference
      	* vala/valacodegenerator.vala: warn when duplicating non-reference
      	  counted structs implicitly
      
      svn path=/trunk/; revision=247
      06d51a09
  22. 17 Mar, 2007 2 commits
    • Jürg Billeter's avatar
      support creating GTypeModule-based plug-ins with the ModuleInit attribute · dc6d6847
      Jürg Billeter authored
      2007-03-17  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valasemanticanalyzer.vala, vala/valacodegnerator.vala,
      	  vala/valaclassregisterfunction.vala,
      	  vala/valainterfaceregisterfunction.vala,
      	  vala/valatyperegisterfunction.vala, vala/valacodecontext.vala: support
      	  creating GTypeModule-based plug-ins with the ModuleInit attribute
      	* vala/parser.y, vala/valacodegenerator.vala, vala/valaclass.vala:
      	  support static classes
      	* vapi/glib-2.0.vala: add TypePlugin and TypeModule
      
      svn path=/trunk/; revision=242
      dc6d6847
    • Jürg Billeter's avatar
      support pointer indirections support pointer-types, pointer indirections, · 4fe37fe2
      Jürg Billeter authored
      2007-03-17  Jürg Billeter  <j@bitron.ch>
      
      	* ccode/valaccodeunaryexpression.vala: support pointer indirections
      	* vala/parser.y, vala/valacodevisitor.vala,
      	  vala/valasymbolresolver.vala, vala/valasemanticanalyzer.vala,
      	  vala/valamemorymanager.vala, vala/valacodegenerator.vala,
      	  vala/valaaddressofexpression.vala, vala/valadatatype.vala,
      	  vala/valapointer.vala, vala/valapointerindirection.vala,
      	  vala/valatypereference.vala: support pointer-types, pointer
      	  indirections, and address-of expressions
      	* vala/vala.h, vala/Makefile.am: update
      
      svn path=/trunk/; revision=239
      4fe37fe2
  23. 11 Mar, 2007 1 commit
    • Jürg Billeter's avatar
      resolve generic return values fix check for generic method parameters to · fd83c9fb
      Jürg Billeter authored
      2007-03-11  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valasemanticanalyzer.vala: resolve generic return values
      	* vala/valamemorymanager.vala: fix check for generic method parameters
      	  to support derived types
      	* vala/valainterface.vala: implement get_type_parameter_index
      	* vala/valamemberaccess.vala: visit type arguments
      	* vala/valaclassregisterfunction.vala,
      	  vala/valainterfaceregisterfunction.vala,
      	  vala/valatyperegisterfunction.vala: pass base_init function pointer
      	  for interfaces
      	* vala/valacodegenerator.vala: fix initialization check in interface
      	  base_init function
      	* vala/valasemanticanalyzer.vala: fix prerequisite check to also accept
      	  derived types of prerequisites
      
      svn path=/trunk/; revision=234
      fd83c9fb
  24. 10 Mar, 2007 1 commit