6 instantiations of UnaryOperatorSignature
Microsoft.CodeAnalysis.CSharp (6)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (5)
317operators.Add(new UnaryOperatorSignature(kind | UnaryOperatorKind.Enum, enumType, enumType)); 318operators.Add(new UnaryOperatorSignature(kind | UnaryOperatorKind.Lifted | UnaryOperatorKind.Enum, nullableEnum, nullableEnum)); 340op = new UnaryOperatorSignature(kind | UnaryOperatorKind.Pointer, pointerType, pointerType); 528operators.Add(new UnaryOperatorSignature(UnaryOperatorKind.UserDefined | kind, operandType, resultType, op, constrainedToTypeOpt)); 558operators.Add(new UnaryOperatorSignature(
Compilation\BuiltInOperators.cs (1)
287return new UnaryOperatorSignature(kind, opType, opType);
38 references to UnaryOperatorSignature
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder_Operators.cs (2)
2330var signature = best.Signature; 2786var signature = best.Signature;
Binder\Binder_Statements.cs (1)
2716UnaryOperatorSignature 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) 36public static UnaryOperatorAnalysisResult Applicable(UnaryOperatorSignature signature, Conversion conversion) 41public 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 (13)
183private BetterResult BetterOperator(UnaryOperatorSignature op1, UnaryOperatorSignature op2, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 256var operators = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 272private bool CandidateOperators(bool isChecked, ArrayBuilder<UnaryOperatorSignature> operators, BoundExpression operand, ArrayBuilder<UnaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 292private void GetEnumOperations(UnaryOperatorKind kind, BoundExpression operand, ArrayBuilder<UnaryOperatorSignature> operators) 323private static UnaryOperatorSignature? GetPointerOperation(UnaryOperatorKind kind, BoundExpression operand) 333UnaryOperatorSignature? op = null; 388var operators = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 477ArrayBuilder<UnaryOperatorSignature> operators) 488var operators2 = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 498foreach (UnaryOperatorSignature signature1 in operators) 515static void getDeclaredOperators(TypeSymbol constrainedToTypeOpt, NamedTypeSymbol type, UnaryOperatorKind kind, string name, ArrayBuilder<UnaryOperatorSignature> operators) 532void addLiftedOperators(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)
4471var signature = this.BuiltInOperators.GetSignature(easyOutUnaryKind);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
573UnaryOperatorSignature boolOperator = single.BoolOperator;