Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B2B0185B4 for ; Wed, 30 Dec 2015 11:09:58 +0000 (UTC) Received: (qmail 6287 invoked by uid 500); 30 Dec 2015 11:09:52 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 6235 invoked by uid 500); 30 Dec 2015 11:09:52 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 6213 invoked by uid 99); 30 Dec 2015 11:09:52 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Dec 2015 11:09:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2BF971A0290 for ; Wed, 30 Dec 2015 11:09:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ye6G8hd-M4Db for ; Wed, 30 Dec 2015 11:09:51 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 9E45F42BD8 for ; Wed, 30 Dec 2015 11:09:47 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id l65so56732828wmf.1 for ; Wed, 30 Dec 2015 03:09:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=ZRbRWY3kKzuCUKewbfKqkloojLY8r1Xls4lsC+2Aazo=; b=JHMmayj/i0qi6oBCKwOLg1UXNBq2wMGJZjYNphWzjsWmPHEDnnL5e4jGbYfKLWUn+C lB/pORdaBjgXH2C3qGJ3UxF/c64Vfm6gF56OcErK5zYjFr0ARo6Q7BD9/t7PQ2FM2arT 3CRuHoWYS1kYg0mwslU7oARdxgMFzB7SQSu1e7hCeade9Gkz5tVhPhBdW+6XbzvFP6LR XP3dvWfngbJUWgJQ7k6UtrW53Jhis+7FS/jcK+10lbBNpq2g9zlbLnq/QKGAk9jPEjfs vA3Pk5TpmlQ6etJaWTGq0oo8zzeQsTqXGYScpdrJ2XyKmmTWzFtMtO6TFqIC1CVkmJsZ V2Hg== X-Received: by 10.28.21.19 with SMTP id 19mr11831891wmv.43.1451473786819; Wed, 30 Dec 2015 03:09:46 -0800 (PST) Received: from [127.0.0.1] ([185.120.126.24]) by smtp.gmail.com with ESMTPSA id c203sm40604269wmd.5.2015.12.30.03.09.45 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Dec 2015 03:09:46 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port) From: Harbs In-Reply-To: Date: Wed, 30 Dec 2015 13:09:40 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <5BF0141F-B047-412E-A144-80D996329DAD@gmail.com> References: <390A28B3-CD8A-404D-98F3-66378A7C32A9@gmail.com> <0E3B1560-BCEC-44E6-81ED-7F775C0AC901@gmail.com> <75DB4888-147A-43BF-AFC0-5B07EA608674@gmail.com> <2A23BA36-39F4-4098-A1FC-AC0C47F6D621@gmail.com> <2AD96C25-0B7B-40E3-9C2E-71D67421D907@gmail.com> <350273DB-024B-4893-981D-3BC5B7F363F4@gmail.com> <013AEB62-9386-47F5-A04D-99F7CFE08B3C@gmail.com> <4105D0ED-E900-4607-995F-3EDB57BFC007@gmail.com> <97AB540A-3257-44F8-98A4-D043D3BA790C@gmail.com> <026B991E-C4C5-461C-877A-03867B753519@gmail.com> <8BAEC5AE-DC92-4C6B-9DC5-6F1DEF3C83B7@gmail.com> <172946EF-12E9-4057-8F52-EA130389C409@gmail.com> <69675112-4E03-47EC-B005-AB55DB32644D@gmail.com> <69C7D29F-880E-4D44-88EE-0A886C4564C0@gmail.com> <92900145-A1AF-4E1C-8DEC-8B8A6C518B59@gmail.com> To: dev@flex.apache.org X-Mailer: Apple Mail (2.1878.6) The past month or so, I=92ve been side-tracked with lots of things, but = I=92m finally back on this. I=92m not sure what we decided in terms of assignment. AFAIK, there=92s = no assignment method in XML for replacing XML with a specific name with = an XMLList. The closest we have is replace() which takes an XML object = and not an XMLLIst. I=92m not even sure what it does. (I guess I can try = it and see.) Harbs On Nov 19, 2015, at 9:06 AM, Alex Harui wrote: > OK, I've pushed changes that handle basic for loops and setting > properties. And even +=3D on XMLLists. >=20 > You can get a sense of what works by looking at the unit tests in > = compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/= T > estFlexJSGlobalClasses.java >=20 >=20 > I'm sure there are lots of cases I haven't thought of, but it will > hopefully get you started. >=20 > -Alex >=20 > On 11/18/15, 3:12 PM, "Alex Harui" wrote: >=20 >> I pushed changes to not use _as3_ on XML function calls and use = child() >> for "." access. >>=20 >> I'm going to look into: >> -for and foreach >> -setting properties on XML/XMLList >>=20 >> -Alex >>=20 >> On 11/16/15, 11:47 AM, "Alex Harui" wrote: >>=20 >>>=20 >>>=20 >>> On 11/16/15, 11:43 AM, "Harbs" wrote: >>>=20 >>>>=20 >>>> On Nov 16, 2015, at 9:40 PM, Harbs wrote: >>>>=20 >>>>>=20 >>>>> On Nov 16, 2015, at 9:14 PM, Alex Harui wrote: >>>>>=20 >>>>>> Hmm. I wonder what other operators work. Like =93-=3D=93. >>>>>=20 >>>>> It looks like -=3D does not work. >>>>>=20 >>>>>> And does xmlList1 + xmlList2 concatenate them? >>>>>=20 >>>>> Yes. >>>>=20 >>>> +=3D also works for this. >>>=20 >>> Hmm. Easiest for the compiler might be an operator(op:String, = data:*) >>> method. Let=92s table this stuff for now. I might have a better = idea once >>> I=92m actually doing the other compiler work. >>>=20 >>> -Alex >>>=20 >>=20 >=20