9 instantiations of UnaryOperatorSignature
Microsoft.CodeAnalysis.CSharp (6)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (5)
315operators.Add(new UnaryOperatorSignature(kind | UnaryOperatorKind.Enum, enumType, enumType)); 316operators.Add(new UnaryOperatorSignature(kind | UnaryOperatorKind.Lifted | UnaryOperatorKind.Enum, nullableEnum, nullableEnum)); 338op = new UnaryOperatorSignature(kind | UnaryOperatorKind.Pointer, pointerType, pointerType); 526operators.Add(new UnaryOperatorSignature(UnaryOperatorKind.UserDefined | kind, operandType, resultType, op, constrainedToTypeOpt)); 556operators.Add(new UnaryOperatorSignature(
Compilation\BuiltInOperators.cs (1)
287return new UnaryOperatorSignature(kind, opType, opType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\OperatorTests.cs (3)
7576signature = new UnaryOperatorSignature(op | UnaryOperatorKind.Dynamic, type, type); 7582signature = new UnaryOperatorSignature(op | UnaryOperatorKind.Pointer, type, type); 7602signature = new UnaryOperatorSignature(signature.Kind, type, type);
42 references to UnaryOperatorSignature
Microsoft.CodeAnalysis.CSharp (39)
Binder\Binder_Operators.cs (2)
2299var signature = best.Signature; 2743var signature = best.Signature;
Binder\Binder_Statements.cs (1)
2615UnaryOperatorSignature 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)
15public readonly UnaryOperatorSignature Signature; 19private 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 (14)
181private BetterResult BetterOperator(UnaryOperatorSignature op1, UnaryOperatorSignature op2, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 254var operators = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 270private bool CandidateOperators(bool isChecked, ArrayBuilder<UnaryOperatorSignature> operators, BoundExpression operand, ArrayBuilder<UnaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 273foreach (var op in operators) 290private void GetEnumOperations(UnaryOperatorKind kind, BoundExpression operand, ArrayBuilder<UnaryOperatorSignature> operators) 321private static UnaryOperatorSignature? GetPointerOperation(UnaryOperatorKind kind, BoundExpression operand) 331UnaryOperatorSignature? op = null; 386var operators = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 475ArrayBuilder<UnaryOperatorSignature> operators) 486var operators2 = ArrayBuilder<UnaryOperatorSignature>.GetInstance(); 496foreach (UnaryOperatorSignature signature1 in operators) 513static void getDeclaredOperators(TypeSymbol constrainedToTypeOpt, NamedTypeSymbol type, UnaryOperatorKind kind, string name, ArrayBuilder<UnaryOperatorSignature> operators) 530void 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)
4182var 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)
1539var builder = ArrayBuilder<UnaryOperatorSignature>.GetInstance();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NativeIntegerTests.cs (1)
4788var builder = ArrayBuilder<UnaryOperatorSignature>.GetInstance();
Semantics\OperatorTests.cs (1)
7570UnaryOperatorSignature signature;