Skip to content

Commit 5c4d04e

Browse files
committed
add fullName property
1 parent ea5da73 commit 5c4d04e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/common/properties.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ export function name({ item }: DocItemContext, original?: unknown): string {
2626
}
2727
}
2828

29+
export function fullName({ item, contract }: DocItemContext): string {
30+
if (contract) {
31+
return `${contract.name}.${item.name}`;
32+
} else {
33+
return `${item.name}`;
34+
}
35+
}
36+
2937
export function signature({ item }: DocItemContext): string | undefined {
3038
switch (item.nodeType) {
3139
case 'ContractDefinition':

0 commit comments

Comments
 (0)