Example #1
0
 public static CastDefinitionSyntax CastDefinition(FileScope pScope, TypedIdentifierSyntax pFromType, BlockSyntax pBody, TypeSyntax pToType)
 {
     return(new CastDefinitionSyntax(pScope, pFromType, pBody, pToType));
 }
 internal CastDefinitionSyntax(FileScope pScope, TypedIdentifierSyntax pFromType, BlockSyntax pBody, TypeSyntax pToType)
     : base(pScope, "", new List <TypeSyntax>() { pToType }, new List <TypedIdentifierSyntax>() { pFromType }, pBody, false)
 {
     Name = MethodCache.CAST_METHOD;
 }