You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2013/01/18 11:35:05 UTC

svn commit: r1435072 - in /flex/falcon/trunk/compiler.jx.tests/test-files: get-set.as get-set_result.js

Author: erikdebruin
Date: Fri Jan 18 10:35:05 2013
New Revision: 1435072

URL: http://svn.apache.org/viewvc?rev=1435072&view=rev
Log:
- adding two test files to show the issue with accessor scope nodes being empty

Added:
    flex/falcon/trunk/compiler.jx.tests/test-files/get-set.as   (with props)
    flex/falcon/trunk/compiler.jx.tests/test-files/get-set_result.js   (with props)

Added: flex/falcon/trunk/compiler.jx.tests/test-files/get-set.as
URL: http://svn.apache.org/viewvc/flex/falcon/trunk/compiler.jx.tests/test-files/get-set.as?rev=1435072&view=auto
==============================================================================
--- flex/falcon/trunk/compiler.jx.tests/test-files/get-set.as (added)
+++ flex/falcon/trunk/compiler.jx.tests/test-files/get-set.as Fri Jan 18 10:35:05 2013
@@ -0,0 +1,22 @@
+package org.apache.flex
+{
+
+public class A
+{
+
+	public function A() {}
+
+	private var _a:int = -1;
+	
+	public function get a():int
+	{
+		return -1;
+	}
+
+	public function set a(value:int):void
+	{
+		_a = value;
+	}
+	
+}
+}
\ No newline at end of file

Propchange: flex/falcon/trunk/compiler.jx.tests/test-files/get-set.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: flex/falcon/trunk/compiler.jx.tests/test-files/get-set_result.js
URL: http://svn.apache.org/viewvc/flex/falcon/trunk/compiler.jx.tests/test-files/get-set_result.js?rev=1435072&view=auto
==============================================================================
--- flex/falcon/trunk/compiler.jx.tests/test-files/get-set_result.js (added)
+++ flex/falcon/trunk/compiler.jx.tests/test-files/get-set_result.js Fri Jan 18 10:35:05 2013
@@ -0,0 +1,34 @@
+goog.provide('org.apache.flex.A');
+
+/**
+ * @constructor
+ */
+org.apache.flex.A = function() {
+};
+
+/**
+ * @private
+ * @type {number}
+ */
+org.apache.flex.A.prototype._a = -1;
+
+/**
+ * @type {number}
+ */
+org.apache.flex.A.prototype.a;
+
+Object.defineProperty(
+	org.apache.flex.A.prototype, 
+	'a', 
+	{get:function() {
+		return -1;
+	}, configurable:true}
+);
+
+Object.defineProperty(
+	org.apache.flex.A.prototype, 
+	'a', 
+	{set:function(value) {
+		_a = value;
+	}, configurable:true}
+);
\ No newline at end of file

Propchange: flex/falcon/trunk/compiler.jx.tests/test-files/get-set_result.js
------------------------------------------------------------------------------
    svn:eol-style = native