36 references to OperatorPosition
Microsoft.CodeAnalysis.CSharp.Features (36)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (36)
41private static readonly ImmutableArray<(string name, OperatorPosition position)> s_operatorInfo = 43(WellKnownMemberNames.EqualityOperatorName, OperatorPosition.Infix), 44(WellKnownMemberNames.InequalityOperatorName, OperatorPosition.Infix), 45(WellKnownMemberNames.GreaterThanOperatorName, OperatorPosition.Infix), 46(WellKnownMemberNames.GreaterThanOrEqualOperatorName, OperatorPosition.Infix), 47(WellKnownMemberNames.LessThanOperatorName, OperatorPosition.Infix), 48(WellKnownMemberNames.LessThanOrEqualOperatorName, OperatorPosition.Infix), 49(WellKnownMemberNames.LogicalNotOperatorName, OperatorPosition.Prefix), 50(WellKnownMemberNames.AdditionOperatorName, OperatorPosition.Infix), 51(WellKnownMemberNames.SubtractionOperatorName, OperatorPosition.Infix), 52(WellKnownMemberNames.MultiplyOperatorName, OperatorPosition.Infix), 53(WellKnownMemberNames.DivisionOperatorName, OperatorPosition.Infix), 54(WellKnownMemberNames.ModulusOperatorName, OperatorPosition.Infix), 55(WellKnownMemberNames.IncrementOperatorName, OperatorPosition.Prefix | OperatorPosition.Postfix), 56(WellKnownMemberNames.DecrementOperatorName, OperatorPosition.Prefix | OperatorPosition.Postfix), 57(WellKnownMemberNames.UnaryPlusOperatorName, OperatorPosition.Prefix), 58(WellKnownMemberNames.UnaryNegationOperatorName, OperatorPosition.Prefix), 59(WellKnownMemberNames.BitwiseAndOperatorName, OperatorPosition.Infix), 60(WellKnownMemberNames.BitwiseOrOperatorName, OperatorPosition.Infix), 61(WellKnownMemberNames.ExclusiveOrOperatorName, OperatorPosition.Infix), 62(WellKnownMemberNames.LeftShiftOperatorName, OperatorPosition.Infix), 63(WellKnownMemberNames.RightShiftOperatorName, OperatorPosition.Infix), 64(WellKnownMemberNames.UnsignedRightShiftOperatorName, OperatorPosition.Infix), 65(WellKnownMemberNames.OnesComplementOperatorName, OperatorPosition.Prefix), 71private static readonly Dictionary<string, (int sortOrder, OperatorPosition position)> s_operatorNameToInfo = []; 127var opPosition = GetOperatorPosition(opName); 129if (opPosition.HasFlag(OperatorPosition.Infix)) 132if (opPosition.HasFlag(OperatorPosition.Postfix)) 135if (opPosition.HasFlag(OperatorPosition.Prefix)) 157private static OperatorPosition GetOperatorPosition(string operatorName) 166var opPosition = GetOperatorPosition(opName); 168if (opPosition.HasFlag(OperatorPosition.Postfix)) 171if (opPosition.HasFlag(OperatorPosition.Infix)) 174if (opPosition.HasFlag(OperatorPosition.Prefix))