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 c071c6fdcfb5a75ebf483c12c82352b686c7baa0 Author: Josh Tynjala <[email protected]> AuthorDate: Thu Apr 17 15:33:24 2025 -0700 ASDoc: add ASDocInterface for JSONReviver --- .../royale/ASDoc/src/main/royale/ASDocInterface.as | 26 ++++++++++++++++++++++ .../ASDoc/src/main/royale/models/ASDocModel.as | 5 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/examples/royale/ASDoc/src/main/royale/ASDocInterface.as b/examples/royale/ASDoc/src/main/royale/ASDocInterface.as new file mode 100644 index 0000000000..1a68918f3d --- /dev/null +++ b/examples/royale/ASDoc/src/main/royale/ASDocInterface.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='ASDocInterface')] +public class ASDocInterface extends ASDocClass +{ + public static const key:String = "baseInterfaceNames:object;description:string;members:object;qname: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 f0bd9eae89..9a75d9e9b5 100644 --- a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as +++ b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as @@ -629,10 +629,13 @@ else if (m.type == "field") private var extensions:Array; + /** + * @royaleignorecoercion ASDocInterface + */ private function completeInterfaceHandler(event:Event):void { app.service.removeEventListener("complete", completeInterfaceHandler); - var data:ASDocClass = app.reviver.parse(app.service.data) as ASDocClass; + var data:ASDocInterface = app.reviver.parse(app.service.data) as ASDocInterface; if (_currentClassData == null) { _currentClassData = data;
