Example #1
0
        public override Expression InstantiateTemplate(Dictionary <string, TypeName> parameters)
        {
            AsTypeExpression result = new AsTypeExpression(this, type.InstantiateTemplate(parameters));

            result.SetParent(parent.InstantiateTemplate(parameters));
            return(result);
        }
Example #2
0
 public IsTypeExpression(ILocation location, TypeName type)
     : base(location)
 {
     inner = new AsTypeExpression(location, type);
 }
Example #3
0
 public IsTypeExpression(ILocation location, AsTypeExpression inner)
     : base(location)
 {
     Require.Assigned(inner);
     this.inner = inner;
 }