Ejemplo n.º 1
0
 public AbstractClassConversionOperatorWithCodeAnalysis(
     ClassMemberVisibilityModifier visibility,
     ConversionOperatorType operatorType,
     ITypeReferenceWithCodeAnalysis returnType,
     OperatorParameterWithCodeAnalysis parameter,
     MethodBodyWithCodeAnalysis body)
     : this(new ClassConversionOperatorWithCodeAnalysis(visibility, operatorType, returnType, parameter, body))
 {
 }
Ejemplo n.º 2
0
 public ClassConversionOperatorWithCodeAnalysis(
     ClassMemberVisibilityModifier visibility,
     ConversionOperatorType operatorType,
     ITypeReferenceWithCodeAnalysis returnType,
     OperatorParameterWithCodeAnalysis parameter,
     MethodBodyWithCodeAnalysis body)
     : this()
 {
     Syntax = SyntaxFactory.ConversionOperatorDeclaration(
         default(SyntaxList <AttributeListSyntax>),
         default(SyntaxTokenList).WithClassMemberVisibilityModifier(visibility).Add(SyntaxKind.StaticKeyword),
         SyntaxFactory.Token(operatorType == ConversionOperatorType.Implicit ? SyntaxKind.ImplicitKeyword : SyntaxKind.ExplicitKeyword),
         returnType.Syntax,
         SyntaxFactory.ParameterList(SyntaxFactory.SingletonSeparatedList(parameter.Syntax)),
         body.Syntax,
         null);
 }
 public WriteConversionOperatorType(ConversionOperatorType operatorType)
 {
     OperatorType = operatorType;
 }