Пример #1
0
 /// <summary>
 /// Tries to get operator info for a method specifier.
 /// </summary>
 /// <param name="methodSpecifier">Method specifier to find operator info for.</param>
 /// <param name="operatorInfo">Operator info for the method specifier if found.</param>
 /// <returns></returns>
 public static bool TryGetOperatorInfo(MethodSpecifier methodSpecifier, out OperatorInfo operatorInfo) =>
 operatorSymbols.TryGetValue(methodSpecifier.Name, out operatorInfo);
Пример #2
0
 /// <summary>
 /// Returns whether the method specifier is an operator.
 /// </summary>
 /// <param name="methodName">Name of the method.</param>
 /// <returns></returns>
 public static bool IsOperator(MethodSpecifier methodSpecifier) =>
 operatorSymbols.ContainsKey(methodSpecifier.Name);