예제 #1
0
 public static CastDefinitionSyntax CastDefinition(FileScope pScope, TypedIdentifierSyntax pFromType, BlockSyntax pBody, TypeSyntax pToType)
 {
     return(new CastDefinitionSyntax(pScope, pFromType, pBody, pToType));
 }
예제 #2
0
 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;
 }