import { Replacement } from "tslint" ; import { JsxTagNameExpression } from "typescript" ; /** Replace the name of a JSX tag. */ export function replaceTagName ( tagName , newTagName ) { return new Replacement ( tagName . getFullStart ( ) , tagName . getFullWidth ( ) , newTagName ) ; }