forked from Vertispan/jsinterop-ts-defs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit consistent jsdocs for inherited members
Mark method as deprecated if recursively it overrides a deprecated method, and adds inheritDoc tag if the overriding method does not provide its own documentation. fix Vertispan#106
- Loading branch information
Showing
8 changed files
with
168 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...et/src/test/java/com/vertispan/tsdefs/tests/tsdocs/doclet/links/issue106/ChildJsType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright © 2024 Vertispan | ||
* | ||
* Licensed 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 com.vertispan.tsdefs.tests.tsdocs.doclet.links.issue106; | ||
|
||
import jsinterop.annotations.JsType; | ||
|
||
@JsType | ||
public class ChildJsType extends SuperJsType implements SuperInterface { | ||
/** This method is documented in the child */ | ||
@Override | ||
public void doSomething() {} | ||
|
||
/** This method is documented in the child and inherits the parent docs. {@inheritDoc} */ | ||
@Override | ||
public void doSomethingElse() {} | ||
|
||
@Override | ||
public void doSomethingDifferent() { | ||
super.doSomethingDifferent(); | ||
} | ||
|
||
@Override | ||
public void deprecatedDoSomething() { | ||
super.deprecatedDoSomething(); | ||
} | ||
|
||
@Override | ||
public void doFoo() {} | ||
|
||
@Override | ||
public void doBarDeprecated() {} | ||
} |
25 changes: 25 additions & 0 deletions
25
...src/test/java/com/vertispan/tsdefs/tests/tsdocs/doclet/links/issue106/SuperInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright © 2024 Vertispan | ||
* | ||
* Licensed 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 com.vertispan.tsdefs.tests.tsdocs.doclet.links.issue106; | ||
|
||
public interface SuperInterface { | ||
|
||
/** This is documented in the super interface */ | ||
void doFoo(); | ||
|
||
@Deprecated | ||
void doBarDeprecated(); | ||
} |
33 changes: 33 additions & 0 deletions
33
...et/src/test/java/com/vertispan/tsdefs/tests/tsdocs/doclet/links/issue106/SuperJsType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright © 2024 Vertispan | ||
* | ||
* Licensed 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 com.vertispan.tsdefs.tests.tsdocs.doclet.links.issue106; | ||
|
||
import jsinterop.annotations.JsType; | ||
|
||
@JsType | ||
public class SuperJsType { | ||
|
||
public void doSomething() {} | ||
|
||
/** This is the super type documentation */ | ||
public void doSomethingElse() {} | ||
|
||
/** This is documented in the super type */ | ||
public void doSomethingDifferent() {} | ||
|
||
@Deprecated | ||
public void deprecatedDoSomething() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters