import { TemplatingBindingLanguage , InterpolationBindingExpression } from "aurelia-templating-binding" ; import { ViewResources , BindingLanguage , BehaviorInstruction } from "aurelia-templating" ; import { Container } from "aurelia-dependency-injection" ; export class AureliaReflection { container : Container ; resources ; bindingLanguage ; constructor ( ) { this . container = new Container ( ) ; this . resources = this . container . get ( ViewResources ) ; this . bindingLanguage = this . container . get ( TemplatingBindingLanguage ) ; } public createAttributeInstruction ( tag , name , value ) { var instruction = null ; let info = this . bindingLanguage . inspectAttribute ( this . resources , tag , name , value ) ; if ( info ) instruction = this . bindingLanguage . createAttributeInstruction ( this . resources , { tagName : tag } , info , undefined ) ; return instruction ; } public createTextExpression ( text ) { var exp = null ; exp = this . bindingLanguage . inspectTextContent ( this . resources , text ) ; return exp ; } }