✨ feat(vscode): 代码阅读把说明里的 @param / @return / @throws 拆到参数表、输出、异常表
This commit is contained in:
1 parent
c2982537d7
commit
0958506681
43 files changed
+1300
-323
No files matched your search
@@ -352,7 +352,7 @@ function columnItem({ member, call }: Column, env: Env): PropertyItem {
|
||||
for (const foreign of calls.filter((found): found is Call => found?.name === 'ForeignKey'))
|
||||
constraints.push(foreignKey(foreign, env))
|
||||
const comment = keywords.get('comment')
|
||||
const doc = member.doc && context.doc(member.doc)
|
||||
const doc = member.doc && context.doc(member.doc)?.body
|
||||
return {
|
||||
cells: [
|
||||
[name(member.name, 'variable')],
|
||||
@@ -409,7 +409,7 @@ function tableBlock(block: ClassBlock, model: Model, env: Env): RuleCard {
|
||||
const { labels } = words
|
||||
const { options, items } = tableArgs(model.args?.value)
|
||||
const comment = dictValue(options, 'comment')
|
||||
const doc = (comment && context.doc(comment)) ?? (facts.doc && context.doc(facts.doc))
|
||||
const doc = (comment && context.doc(comment)?.body) ?? (facts.doc && context.doc(facts.doc)?.body)
|
||||
const indexes: PropertyItem[] = []
|
||||
const uniques: PropertyItem[] = []
|
||||
for (const item of items) {
|
||||
|
||||
Reference in new issue
Block a user