Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit981f5a4

Browse files
authored
Update TypeChecker.fs
1 parent457c406 commit981f5a4

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

‎src/fsharp/TypeChecker.fs‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -447,26 +447,6 @@ let OpenModulesOrNamespaces tcSink g amap scopem root env mvvs openDeclaration =
447447
ModifyNameResEnv (fun nenv -> AddModulesAndNamespacesContentsToNameEnv g amap env.eAccessRights scopem root nenv mvvs) env
448448
CallEnvSink tcSink (scopem, env.NameEnv, env.eAccessRights)
449449
CallOpenDeclarationSink tcSink openDeclaration
450-
match openDeclaration.Range with
451-
| None -> ()
452-
| Some _ ->
453-
let rec loop (acc: (Item * range) list) (idents: Ident list) =
454-
match idents with
455-
| [] -> acc
456-
| [id] when id.idText = MangledGlobalName -> acc
457-
| id :: rest ->
458-
let idents = List.rev idents
459-
let range = id.idRange
460-
let acc =
461-
match ResolveLongIndentAsModuleOrNamespace ResultCollectionSettings.AllResults amap range OpenQualified env.NameEnv env.eAccessRights idents with
462-
| Result modrefs ->
463-
(acc, modrefs) ||> List.fold (fun acc (_, modref, _) ->
464-
(Item.ModuleOrNamespaces [modref], range) :: acc)
465-
| _ -> acc
466-
loop acc rest
467-
468-
for item, range in loop [] (List.rev openDeclaration.LongId) do
469-
CallNameResolutionSink tcSink (range, env.NameEnv, item, item, emptyTyparInst, ItemOccurence.Open, env.DisplayEnv, env.eAccessRights)
470450
env
471451

472452
let AddRootModuleOrNamespaceRefs g amap m env modrefs =

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp