Skip to content

Commit 5fac3e7

Browse files
committed
Merge pull request #549 from dsyme/fix-exprs
fix expressions
2 parents 4482d67 + fceaceb commit 5fac3e7

File tree

3 files changed

+141
-75
lines changed

3 files changed

+141
-75
lines changed

src/fsharp/vs/Exprs.fs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ module FSharpExprConvert =
429429
let contf2 =
430430
match laterArgs with
431431
| [] -> contf
432-
| _ -> (fun subCallR -> (subCallR, laterArgs) ||> List.fold (fun fR arg -> E.Application (Mk2 cenv arg fR,[],[ConvExpr cenv env arg])))
432+
| _ -> (fun subCallR -> (subCallR, laterArgs) ||> List.fold (fun fR arg -> E.Application (Mk2 cenv arg fR,[],[ConvExpr cenv env arg])) |> contf)
433433

434434
if isMember then
435435
let callArgs = (objArgs::untupledCurriedArgs) |> List.concat
@@ -466,13 +466,13 @@ module FSharpExprConvert =
466466
| Expr.Sequential _ ->
467467
ConvExprPrimLinear cenv env expr (fun e -> e)
468468

469-
| Expr.Val(vref,_vFlags,m) ->
470-
ConvValRef cenv env m vref
471-
472-
| ModuleValueOrMemberUse cenv.g (vref,vFlags,_f,_fty,tyargs,curriedArgs) when (nonNil tyargs || nonNil curriedArgs) && vref.IsMemberOrModuleBinding ->
469+
| ModuleValueOrMemberUse cenv.g (vref,vFlags,_f,_fty,tyargs,curriedArgs) when (* (nonNil tyargs || nonNil curriedArgs) && *) vref.IsMemberOrModuleBinding ->
473470
// Process applications of top-level values in a tail-recursive way
474471
ConvModuleValueOrMemberUseLinear cenv env (expr,vref,vFlags,tyargs,curriedArgs) (fun e -> e)
475472

473+
| Expr.Val(vref,_vFlags,m) ->
474+
ConvValRef cenv env m vref
475+
476476
// Simple applications
477477
| Expr.App(f,_fty,tyargs,args,_m) ->
478478
E.Application (ConvExpr cenv env f, ConvTypes cenv tyargs, ConvExprs cenv env args)

src/fsharp/vs/Symbols.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ type FSharpSymbol(cenv:cenv, item: (unit -> Item), access: (FSharpSymbol -> CcuT
168168
member x.FullName = ItemDescriptionsImpl.FullNameOfItem cenv.g x.Item
169169

170170
member x.DeclarationLocation = ItemDescriptionsImpl.rangeOfItem cenv.g None x.Item
171-
171+
172172
member x.ImplementationLocation = ItemDescriptionsImpl.rangeOfItem cenv.g (Some(false)) x.Item
173173

174174
member x.SignatureLocation = ItemDescriptionsImpl.rangeOfItem cenv.g (Some(true)) x.Item

0 commit comments

Comments
 (0)