Skip to content

Commit

Permalink
Link return type (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
karimi authored Oct 8, 2024
1 parent 8c1df28 commit acd029a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 10 deletions.
7 changes: 3 additions & 4 deletions quasar_site/src/components/MemberSignature.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ export default {
return {
ViewModel,
memberName: null,
members: {},
version: mostRecent,
activeId: null,
forScriptEditor: false,
Expand All @@ -148,12 +147,13 @@ export default {
chunks.push({ name: tokens[0] + ' ' })
tokens.shift()
}
if (this.members.isEvent) {
if (member.isEvent) {
chunks.push({ name: tokens[0]+ ' ' })
chunks.push({ name: tokens[1] })
return chunks
}
if (this.members.isProperty || this.members.isMethod || this.members.isOperator) {
if (member.isProperty || member.isMethod || member.isOperator) {
// try to get a link for the return type
// const tokenPath = this.tokenPath(tokens[0])
// const link = tokenPath ? this.baseUrl + tokenPath : null
Expand Down Expand Up @@ -250,7 +250,6 @@ export default {
//WWW-2098: try looking for enums which have . separated names in this dictionary
type = typeMap[`${this.datatype.name}.${token}`];
if (!type){
console.log(`typeFromToken: ${token} type: ${type}`)
//WWW-2523 RhinoCommon docs: Some method argument type links are disabled
type = typeMap[token.split(".").slice(-1)[0]];
if (!type){
Expand Down
42 changes: 36 additions & 6 deletions quasar_site/src/pages/MemberDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ export default {
// });
return {
isConstructor: true,
items: datatype.constructors,
items: datatype.constructors.map((c) => {
return {
...c,
isConstructor: true,
};
}),
};
}
if (datatype.properties) {
Expand All @@ -262,7 +267,12 @@ export default {
);
return {
isProperty: true,
items: props,
items: props.map((p) => {
return {
...p,
isProperty: true,
};
}),
};
}
}
Expand All @@ -282,7 +292,12 @@ export default {
);
return {
isMethod: true,
items: methods,
items: methods.map((m) => {
return {
...m,
isMethod: true,
};
}),
};
}
}
Expand All @@ -302,7 +317,12 @@ export default {
// );
return {
isEvent: true,
items: events,
items: events.map((e) => {
return {
...e,
isEvent: true,
};
}),
};
}
}
Expand All @@ -322,7 +342,12 @@ export default {
// );
return {
isOperator: true,
items: operators,
items: operators.map((o) => {
return {
...o,
isOperator: true,
};
}),
};
}
}
Expand All @@ -343,7 +368,12 @@ export default {
// );
return {
isField: true,
items: fields,
items: fields.map((f) => {
return {
...f,
isField: true,
};
}),
};
}
}
Expand Down

0 comments on commit acd029a

Please sign in to comment.