Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link return type #142

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading