提交 b6b7ff9d 编写于 作者: S Steffen Forkmann 提交者: Kevin Ransom (msft)

No need to use substring if we just check first char (#5662)

上级 d5f8d0a6
...@@ -3403,10 +3403,8 @@ let ItemOfTy g x = ...@@ -3403,10 +3403,8 @@ let ItemOfTy g x =
let nm = if isAppTy g x then (tcrefOfAppTy g x).DisplayName else "?" let nm = if isAppTy g x then (tcrefOfAppTy g x).DisplayName else "?"
Item.Types (nm,[x]) Item.Types (nm,[x])
// Filter out 'PrivateImplementationDetail' classes // Filter out 'PrivateImplementationDetail' classes
let IsInterestingModuleName nm = let IsInterestingModuleName nm = not (System.String.IsNullOrEmpty nm) && nm.[0] <> '<'
String.length nm >= 1 &&
String.sub nm 0 1 <> "<"
let rec PartialResolveLookupInModuleOrNamespaceAsModuleOrNamespaceThen f plid (modref:ModuleOrNamespaceRef) = let rec PartialResolveLookupInModuleOrNamespaceAsModuleOrNamespaceThen f plid (modref:ModuleOrNamespaceRef) =
let mty = modref.ModuleOrNamespaceType let mty = modref.ModuleOrNamespaceType
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册