public SealedPartialClassOperatorOverloadWithCodeAnalysis( ClassMemberVisibilityModifier visibility, ITypeReferenceWithCodeAnalysis returnType, OperatorOverloadType operatorType, IEnumerable <OperatorParameterWithCodeAnalysis> parameters, MethodBodyWithCodeAnalysis body) : this(new SealedClassOperatorOverloadWithCodeAnalysis(visibility, returnType, operatorType, parameters, body)) { }
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); }
public WriteOperatorOverloadType(OperatorOverloadType operatorType) { OperatorType = operatorType; }