示例#1
0
        private static JObject Categorize(SymbolDisplayPart part)
        {
            var kind = part.Kind.ToString();
            kind = capital.Replace(kind, "$1-$2").ToLowerInvariant();

            return new JObject(
                new JProperty("kind", new JValue(kind)),
                new JProperty("val", new JValue(part.ToString()))
            );
        }
示例#2
0
 public static bool IncludeOnlyPartsThatAreName(SymbolDisplayPart displayPart) =>
     displayPart.IsAnyKind(SymbolDisplayPartKind.ClassName, SymbolDisplayPartKind.DelegateName, SymbolDisplayPartKind.EnumName, SymbolDisplayPartKind.EventName, SymbolDisplayPartKind.FieldName, SymbolDisplayPartKind.InterfaceName, SymbolDisplayPartKind.LocalName, SymbolDisplayPartKind.MethodName, SymbolDisplayPartKind.NamespaceName, SymbolDisplayPartKind.ParameterName, SymbolDisplayPartKind.PropertyName, SymbolDisplayPartKind.StructName);