11 instantiations of UnaryOperatorSignature
Microsoft.CodeAnalysis.CSharp (8)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (7)
202inferredCandidate = new UnaryOperatorSignature(UnaryOperatorKind.Lifted | UnaryOperatorKind.UserDefined | kind, MakeNullable(operandType), MakeNullable(resultType), method, constrainedToTypeOpt: null); 206inferredCandidate = new UnaryOperatorSignature(UnaryOperatorKind.UserDefined | kind, operandType, resultType, method, constrainedToTypeOpt: null); 565operators.Add(new UnaryOperatorSignature(kind | UnaryOperatorKind.Enum, enumType, enumType)); 566operators.Add(new UnaryOperatorSignature(kind | UnaryOperatorKind.Lifted | UnaryOperatorKind.Enum, nullableEnum, nullableEnum)); 588op = new UnaryOperatorSignature(kind | UnaryOperatorKind.Pointer, pointerType, pointerType); 801operators.Add(new UnaryOperatorSignature(UnaryOperatorKind.UserDefined | kind, operandType, resultType, op, constrainedToTypeOpt)); 833operators.Add(new UnaryOperatorSignature(
Compilation\BuiltInOperators.cs (1)
287return new UnaryOperatorSignature(kind, opType, opType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\OperatorTests.cs (3)
7578signature = new UnaryOperatorSignature(op | UnaryOperatorKind.Dynamic, type, type); 7584signature = new UnaryOperatorSignature(op | UnaryOperatorKind.Pointer, type, type); 7604signature = new UnaryOperatorSignature(signature.Kind, type, type);
51 references to UnaryOperatorSignature
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Operators.cs (2)
3240var signature = best.Signature; 4213var signature = best.Signature;
Binder\Binder_Statements.cs (1)
2730UnaryOperatorSignature signature = best.Signature;
Binder\Binder_TupleOperators.cs (2)
108out UnaryOperatorSignature boolOperator); 126out BoundExpression conversionForBool, out BoundValuePlaceholder conversionForBoolPlaceholder, out UnaryOperatorSignature boolOperator)
Binder\Semantics\Operators\UnaryOperatorAnalysisResult.cs (4)
13public readonly UnaryOperatorSignature Signature; 17private UnaryOperatorAnalysisResult(OperatorAnalysisResultKind kind, UnaryOperatorSignature signature, Conversion conversion) 37public static UnaryOperatorAnalysisResult Applicable(UnaryOperatorSignature signature, Conversion conversion) 42public static UnaryOperatorAnalysisResult Inapplicable(UnaryOperatorSignature signature, Conversion conversion)
Binder\Semantics\Operators\UnaryOperatorEasyOut.cs (1)
112UnaryOperatorSignature signature = this.Compilation.BuiltInOperators.GetSignature(easyOut);
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (23)
85var operators = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 113static void getDeclaredUserDefinedUnaryOperatorsInScope(ArrayBuilder<NamedTypeSymbol> extensionDeclarationsInSingleScope, UnaryOperatorKind kind, string name1, string? name2Opt, ArrayBuilder<UnaryOperatorSignature> operators) 124var operators2 = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 127foreach (var op in operators2) 144static void getDeclaredUserDefinedUnaryOperators(ArrayBuilder<NamedTypeSymbol> extensionDeclarationsInSingleScope, UnaryOperatorKind kind, string name, ArrayBuilder<UnaryOperatorSignature> operators) 159void inferTypeArgumentsAndRemoveInapplicableToReceiverType(UnaryOperatorKind kind, BoundExpression operand, ArrayBuilder<UnaryOperatorSignature> operators, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 163var candidate = operators[i]; 198UnaryOperatorSignature inferredCandidate; 224bool isApplicableToReceiver(in UnaryOperatorSignature candidate, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 418private BetterResult BetterOperator(UnaryOperatorSignature op1, UnaryOperatorSignature op2, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 504var operators = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 520private bool CandidateOperators(bool isChecked, ArrayBuilder<UnaryOperatorSignature> operators, BoundExpression operand, ArrayBuilder<UnaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 523foreach (var op in operators) 540private void GetEnumOperations(UnaryOperatorKind kind, BoundExpression operand, ArrayBuilder<UnaryOperatorSignature> operators) 571private static UnaryOperatorSignature? GetPointerOperation(UnaryOperatorKind kind, BoundExpression operand) 581UnaryOperatorSignature? op = null; 643var operators = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 749ArrayBuilder<UnaryOperatorSignature> operators) 757var operators2 = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 767foreach (UnaryOperatorSignature signature1 in operators) 785private static void GetDeclaredUserDefinedUnaryOperators(TypeSymbol? constrainedToTypeOpt, NamedTypeSymbol type, UnaryOperatorKind kind, string name, ArrayBuilder<UnaryOperatorSignature> operators) 807private void AddLiftedUserDefinedUnaryOperators(TypeSymbol? constrainedToTypeOpt, UnaryOperatorKind kind, ArrayBuilder<UnaryOperatorSignature> operators)
Binder\Semantics\Operators\UnaryOperatorSignature.cs (2)
15public static UnaryOperatorSignature Error = default(UnaryOperatorSignature);
BoundTree\TupleBinaryOperatorInfo.cs (2)
54internal readonly UnaryOperatorSignature BoolOperator; // Information for op_true or op_false 64UnaryOperatorSignature boolOperator) : base(leftConvertedTypeOpt, rightConvertedTypeOpt)
Compilation\BuiltInOperators.cs (9)
28private ImmutableArray<UnaryOperatorSignature>[] _builtInUnaryOperators; 39private ImmutableArray<UnaryOperatorSignature> GetSignaturesFromUnaryOperatorKinds(int[] operatorKinds) 41var builder = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 50internal void GetSimpleBuiltInOperators(UnaryOperatorKind kind, ArrayBuilder<UnaryOperatorSignature> operators, bool skipNativeIntegerOperators) 54var allOperators = new ImmutableArray<UnaryOperatorSignature>[] 237ImmutableArray<UnaryOperatorSignature>.Empty, 238ImmutableArray<UnaryOperatorSignature>.Empty, 244foreach (var op in _builtInUnaryOperators[kind.OperatorIndex()]) 259internal UnaryOperatorSignature GetSignature(UnaryOperatorKind kind)
Compilation\CSharpCompilation.cs (1)
4544var signature = this.BuiltInOperators.GetSignature(easyOutUnaryKind);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
573UnaryOperatorSignature boolOperator = single.BoolOperator;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\NumericIntPtrTests.cs (1)
1579var builder = ArrayBuilder<UnaryOperatorSignature>.GetInstance();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NativeIntegerTests.cs (1)
4819var builder = ArrayBuilder<UnaryOperatorSignature>.GetInstance();
Semantics\OperatorTests.cs (1)
7572UnaryOperatorSignature signature;