Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Ragdoc Builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
Ragdoc Builder
Commits
e0b10d26
Commit
e0b10d26
authored
7 years ago
by
Jesper
Browse files
Options
Downloads
Patches
Plain Diff
Don't document synthetic stuff
parent
48c6b433
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
extendj
+1
-1
1 addition, 1 deletion
extendj
src/main/jastadd/Inheritance.jrag
+1
-2
1 addition, 2 deletions
src/main/jastadd/Inheritance.jrag
src/main/java/org/extendj/ragdoc/JsonBuilder.java
+9
-3
9 additions, 3 deletions
src/main/java/org/extendj/ragdoc/JsonBuilder.java
with
11 additions
and
6 deletions
extendj
@
b3bb5e2e
Subproject commit
1829cf5620db5d9d729f6aa16f109d7ad1b59e7a
Subproject commit
b3bb5e2e978320d58af250b073ac42fac954b82d
This diff is collapsed.
Click to expand it.
src/main/jastadd/Inheritance.jrag
+
1
−
2
View file @
e0b10d26
...
@@ -75,8 +75,7 @@ aspect Inheritance {
...
@@ -75,8 +75,7 @@ aspect Inheritance {
eq InterfaceDecl.inheritedMethodsNameMap() {
eq InterfaceDecl.inheritedMethodsNameMap() {
Map<String, Collection<MethodDecl>> result = new HashMap<>();
Map<String, Collection<MethodDecl>> result = new HashMap<>();
for (Iterator<TypeDecl> outerIter = interfacesIterator(); outerIter.hasNext(); ) {
for (TypeDecl typeDecl : superInterfaces()) {
TypeDecl typeDecl = outerIter.next();
for (SimpleSet<MethodDecl> supertypeMethods : typeDecl.methodsSignatureMap().values()) {
for (SimpleSet<MethodDecl> supertypeMethods : typeDecl.methodsSignatureMap().values()) {
for (MethodDecl method : supertypeMethods) {
for (MethodDecl method : supertypeMethods) {
if (!method.isPrivate()) {
if (!method.isPrivate()) {
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/extendj/ragdoc/JsonBuilder.java
+
9
−
3
View file @
e0b10d26
...
@@ -176,10 +176,16 @@ public class JsonBuilder {
...
@@ -176,10 +176,16 @@ public class JsonBuilder {
}
}
public
static
boolean
shouldDocument
(
BodyDecl
member
,
JsonObject
doc
)
{
public
static
boolean
shouldDocument
(
BodyDecl
member
,
JsonObject
doc
)
{
if
(
member
.
isSynthetic
())
{
return
false
;
}
return
doc
==
null
||
!
doc
.
get
(
"apilevel"
).
stringValue
(
""
).
equals
(
"internal"
);
return
doc
==
null
||
!
doc
.
get
(
"apilevel"
).
stringValue
(
""
).
equals
(
"internal"
);
}
}
public
static
boolean
isHighLevelApi
(
BodyDecl
member
,
JsonObject
doc
)
{
public
static
boolean
isHighLevelApi
(
BodyDecl
member
,
JsonObject
doc
)
{
if
(
member
.
isSynthetic
())
{
return
false
;
}
if
(
doc
==
null
)
{
if
(
doc
==
null
)
{
return
true
;
return
true
;
}
}
...
@@ -451,9 +457,9 @@ public class JsonBuilder {
...
@@ -451,9 +457,9 @@ public class JsonBuilder {
JsonArray
fieldArray
=
new
JsonArray
();
JsonArray
fieldArray
=
new
JsonArray
();
for
(
Iterable
<
Variable
>
vars
:
superclass
.
localFieldsMap
().
values
())
{
for
(
Iterable
<
Variable
>
vars
:
superclass
.
localFieldsMap
().
values
())
{
for
(
Variable
var
:
vars
)
{
for
(
Variable
var
:
vars
)
{
if
(
!
declaredFields
.
contains
(
var
.
name
())
if
(
shouldDocument
(
var
.
fieldDecl
())
&&
!
var
.
isPrivat
e
()
&&
!
declaredFields
.
contains
(
var
.
nam
e
()
)
&&
shouldDocument
(
var
.
fieldDecl
()
))
{
&&
!
var
.
isPrivate
(
))
{
declaredFields
.
add
(
var
.
name
());
declaredFields
.
add
(
var
.
name
());
fieldArray
.
add
(
var
.
name
());
fieldArray
.
add
(
var
.
name
());
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment