Make name and alias for target. Replace any previous definition of name.
(Token aliasT, Token targetT)
| 372 | /** Make name and alias for target. Replace any previous definition of name. */ |
| 373 | |
| 374 | public CompiledST defineTemplateAlias(Token aliasT, Token targetT) { |
| 375 | String alias = aliasT.getText(); |
| 376 | String target = targetT.getText(); |
| 377 | CompiledST targetCode = rawGetTemplate("/"+target); |
| 378 | if ( targetCode==null ) { |
| 379 | errMgr.compileTimeError(ErrorType.ALIAS_TARGET_UNDEFINED, null, aliasT, alias, target); |
| 380 | return null; |
| 381 | } |
| 382 | rawDefineTemplate("/"+alias, targetCode, aliasT); |
| 383 | return targetCode; |
| 384 | } |
| 385 | |
| 386 | public CompiledST defineRegion(String enclosingTemplateName, Token regionT, String template, Token templateToken) { |
| 387 | String name = regionT.getText(); |
nothing calls this directly
no test coverage detected