✨ feat(vscode): 代码阅读加枚举卡片,Python enum 库规则和 TypeScript enum 画成同一张表
This commit is contained in:
1 parent
2251e67ef8
commit
de355661f0
24 files changed
+858
-83
No files matched your search
@@ -26,11 +26,12 @@ function factAttributes(block: CodeBlock): Partial<Record<CommonAttribute, strin
|
||||
return { access: block.facts.access, async: flag(block.facts.async) }
|
||||
case 'class':
|
||||
return { access: block.facts.access, abstract: flag(block.facts.abstract) }
|
||||
case 'import':
|
||||
return { typeOnly: flag(block.facts.typeOnly) }
|
||||
case 'enum':
|
||||
case 'const':
|
||||
case 'variable':
|
||||
return { access: block.facts.access }
|
||||
case 'import':
|
||||
return { typeOnly: flag(block.facts.typeOnly) }
|
||||
default:
|
||||
return {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user