This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 5933d8dc3e03d4de2878e617f1ff87927b74c004 Author: Josh Tynjala <[email protected]> AuthorDate: Thu Apr 17 09:50:12 2025 -0700 ASDoc: add ASDocClassField for non-accessor fields --- .../ASDoc/src/main/royale/ASDocClassField.as | 26 ++++++++++++++++++++++ .../ASDoc/src/main/royale/models/ASDocModel.as | 6 +++++ 2 files changed, 32 insertions(+) diff --git a/examples/royale/ASDoc/src/main/royale/ASDocClassField.as b/examples/royale/ASDoc/src/main/royale/ASDocClassField.as new file mode 100644 index 0000000000..c05d5e86ae --- /dev/null +++ b/examples/royale/ASDoc/src/main/royale/ASDocClassField.as @@ -0,0 +1,26 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// +package +{ +[RemoteClass(alias='ASDocClassField')] +public class ASDocClassField extends ASDocClassFunction +{ + public static const key:String = "bindable:object;deprecated:object;description:string;details:object;namespace:string;qname:string;return:string;tags:object;type:string"; +} +} diff --git a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as index 4612b5b895..f0bd9eae89 100644 --- a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as +++ b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as @@ -360,6 +360,7 @@ package models * @royaleignorecoercion ASDocClass * @royaleignorecoercion ASDocClassMembers * @royaleignorecoercion ASDocClassFunction + * @royaleignorecoercion ASDocClassField */ private function completeClassHandler(event:Event):void { @@ -418,6 +419,11 @@ package models var a:ASDocClassAccessor = m as ASDocClassAccessor; // force link class addIfNeededAndMakeAttributes(_publicProperties, a); } +else if (m.type == "field") + { + var f:ASDocClassField = m as ASDocClassField; // force link class + addIfNeededAndMakeAttributes(_publicProperties, f); + } if (masterData["classnames"].indexOf(m.return) != -1) { var href:String = m.return;
