summaryrefslogtreecommitdiff
path: root/vala/valapropertyaccessor.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-10-29 08:01:32 +0200
committerJürg Billeter <j@bitron.ch>2010-10-29 08:01:32 +0200
commitd540dfd41156d01f530bfaa9121c19fdc6b25421 (patch)
tree2f2ec2f76ae5a2378e490b9e067df18d9952f1d8 /vala/valapropertyaccessor.vala
parentfb3a31632feda7c36473037dd2e513850e7210de (diff)
downloadvala-d540dfd41156d01f530bfaa9121c19fdc6b25421.tar.gz
Add Subroutine class
Diffstat (limited to 'vala/valapropertyaccessor.vala')
-rw-r--r--vala/valapropertyaccessor.vala27
1 files changed, 1 insertions, 26 deletions
diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala
index 5579e8bd9..678eb4cf9 100644
--- a/vala/valapropertyaccessor.vala
+++ b/vala/valapropertyaccessor.vala
@@ -25,7 +25,7 @@ using GLib;
/**
* Represents a get or set accessor of a property in the source code.
*/
-public class Vala.PropertyAccessor : Symbol {
+public class Vala.PropertyAccessor : Subroutine {
/**
* The corresponding property.
*/
@@ -63,25 +63,6 @@ public class Vala.PropertyAccessor : Symbol {
public bool construction { get; set; }
/**
- * The accessor body.
- */
- public Block? body {
- get { return _body; }
- set {
- _body = value;
- if (_body != null) {
- _body.owner = scope;
- }
- }
- }
-
- public BasicBlock entry_block { get; set; }
-
- public BasicBlock return_block { get; set; }
-
- public BasicBlock exit_block { get; set; }
-
- /**
* True if the body was automatically generated
*/
public bool automatic_body { get; set; }
@@ -91,11 +72,6 @@ public class Vala.PropertyAccessor : Symbol {
*/
public Parameter value_parameter { get; set; }
- /**
- * Specifies the generated `result' variable in a get accessor.
- */
- public LocalVariable? result_var { get; set; }
-
public virtual string get_default_cname () {
var t = (TypeSymbol) prop.parent_symbol;
@@ -119,7 +95,6 @@ public class Vala.PropertyAccessor : Symbol {
private DataType _value_type;
private string? _cname;
- private Block _body;
/**
* Creates a new property accessor.