Make name and alias for target. Replace any previous definition of name.
(Token aliasT, Token targetT)
| 385 | /** Make name and alias for target. Replace any previous definition of name. */ |
| 386 | |
| 387 | public CompiledST defineTemplateAlias(Token aliasT, Token targetT) { |
| 388 | String alias = aliasT.getText(); |
| 389 | String target = targetT.getText(); |
| 390 | CompiledST targetCode = rawGetTemplate("/"+target); |
| 391 | if ( targetCode==null ) { |
| 392 | errMgr.compileTimeError(ErrorType.ALIAS_TARGET_UNDEFINED, null, aliasT, alias, target); |
| 393 | return null; |
| 394 | } |
| 395 | rawDefineTemplate("/"+alias, targetCode, aliasT); |
| 396 | return targetCode; |
| 397 | } |
| 398 | |
| 399 | public CompiledST defineRegion(String enclosingTemplateName, Token regionT, String template, Token templateToken) { |
| 400 | String name = regionT.getText(); |
nothing calls this directly
no test coverage detected