import * as ts from 'typescript' ; import { isJsxElement } from '../TypeGuard' ; Returns function getImplicitRoleForLi ( node ) { const parentNode = node . parent ; let parentTagName ; if ( isJsxElement ( parentNode ) ) { parentTagName = parentNode . openingElement . tagName . getText ( ) ; } return parentTagName === 'ol' || parentTagName === 'ul' ? 'listitem' : undefined ; } export { getImplicitRoleForLi as li } ;