1 | import * as ts from 'typescript';
|
2 | import { getJsxAttributesFromJsxElement } from '../JsxAttribute';
|
3 |
|
4 | const hrefString: string = 'href';
|
5 |
|
6 | /**
|
7 | * @Returns the implicit role for an area tag.
|
8 | */
|
9 | function getImplicitRoleForArea(node: ts.Node): string {
|
10 | return getJsxAttributesFromJsxElement(node)[hrefString] ? 'link' : undefined;
|
11 | }
|
12 |
|
13 | export { getImplicitRoleForArea as area };
|