public SealedPartialClassOperatorOverloadWithCodeAnalysis(
     ClassMemberVisibilityModifier visibility,
     ITypeReferenceWithCodeAnalysis returnType,
     OperatorOverloadType operatorType,
     IEnumerable <OperatorParameterWithCodeAnalysis> parameters,
     MethodBodyWithCodeAnalysis body)
     : this(new SealedClassOperatorOverloadWithCodeAnalysis(visibility, returnType, operatorType, parameters, body))
 {
 }
コード例 #2
0
 public ClassOperatorOverloadWithCodeAnalysis(
     ClassMemberVisibilityModifier visibility,
     ITypeReferenceWithCodeAnalysis returnType,
     OperatorOverloadType operatorType,
     IEnumerable <OperatorParameterWithCodeAnalysis> parameters,
     MethodBodyWithCodeAnalysis body)
     : this()
 {
     Syntax = SyntaxFactory.OperatorDeclaration(
         default(SyntaxList <AttributeListSyntax>),
         default(SyntaxTokenList).WithClassMemberVisibilityModifier(visibility).Add(SyntaxKind.StaticKeyword),
         returnType.Syntax,
         SyntaxFactory.Token(OperatorOverloadWithCodeAnalysis.OperatorMap[operatorType]),
         SyntaxFactory.ParameterList(SyntaxFactory.SeparatedList(parameters.Select(parameter => parameter.Syntax))),
         body.Syntax,
         null);
 }
コード例 #3
0
 public WriteOperatorOverloadType(OperatorOverloadType operatorType)
 {
     OperatorType = operatorType;
 }