Skip to content

Commit 1126e23

Browse files
authored
Replace LongIdentWithDots with SynLongIdent. (#13103)
1 parent 01e5bbb commit 1126e23

File tree

9 files changed

+52
-53
lines changed

9 files changed

+52
-53
lines changed

src/fsharp/CheckComputationExpressions.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ let TcComputationExpression (cenv: cenv) env (overallTy: OverallTy) tpenv (mWhol
12321232

12331233
// 'use! pat = e1 in e2' --> build.Bind(e1, (function _argN -> match _argN with pat -> build.Using(x, (fun _argN -> match _argN with pat -> e2))))
12341234
| SynExpr.LetOrUseBang (bindDebugPoint=spBind; isUse=true; isFromSource=isFromSource; pat=SynPat.Named (ident=SynIdent(id,_); isThisVal=false) as pat; rhs=rhsExpr; andBangs=[]; body=innerComp)
1235-
| SynExpr.LetOrUseBang (bindDebugPoint=spBind; isUse=true; isFromSource=isFromSource; pat=SynPat.LongIdent (longDotId=LongIdentWithDots([id], _)) as pat; rhs=rhsExpr; andBangs=[]; body=innerComp) ->
1235+
| SynExpr.LetOrUseBang (bindDebugPoint=spBind; isUse=true; isFromSource=isFromSource; pat=SynPat.LongIdent (longDotId=SynLongIdent([id], _, _)) as pat; rhs=rhsExpr; andBangs=[]; body=innerComp) ->
12361236

12371237
let mBind = match spBind with DebugPointAtBinding.Yes m -> m | _ -> rhsExpr.Range
12381238
if isQuery then error(Error(FSComp.SR.tcBindMayNotBeUsedInQueries(), mBind))

src/fsharp/CheckDeclarations.fs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3182,7 +3182,7 @@ module EstablishTypeDefinitionCores =
31823182

31833183
let private (|TyconCoreAbbrevThatIsReallyAUnion|_|) (hasMeasureAttr, envinner: TcEnv, id: Ident) synTyconRepr =
31843184
match synTyconRepr with
3185-
| SynTypeDefnSimpleRepr.TypeAbbrev(_, StripParenTypes (SynType.LongIdent(LongIdentWithDots([unionCaseName], _))), m)
3185+
| SynTypeDefnSimpleRepr.TypeAbbrev(_, StripParenTypes (SynType.LongIdent(SynLongIdent([unionCaseName], _, _))), m)
31863186
when
31873187
(not hasMeasureAttr &&
31883188
(isNil (LookupTypeNameInEnvNoArity OpenQualified unionCaseName.idText envinner.NameEnv) ||
@@ -3531,9 +3531,9 @@ module EstablishTypeDefinitionCores =
35313531
/// Get the items on the r.h.s. of a 'type X = ABC<...>' definition
35323532
let private TcTyconDefnCore_GetGenerateDeclaration_Rhs (StripParenTypes rhsType) =
35333533
match rhsType with
3534-
| SynType.App (StripParenTypes (SynType.LongIdent(LongIdentWithDots(tc, _))), _, args, _commas, _, _postfix, m) -> Some(tc, args, m)
3535-
| SynType.LongIdent (LongIdentWithDots(tc, _) as lidwd) -> Some(tc, [], lidwd.Range)
3536-
| SynType.LongIdentApp (StripParenTypes (SynType.LongIdent (LongIdentWithDots(tc, _))), LongIdentWithDots(longId, _), _, args, _commas, _, m) -> Some(tc@longId, args, m)
3534+
| SynType.App (StripParenTypes (SynType.LongIdent(SynLongIdent(tc, _, _))), _, args, _commas, _, _postfix, m) -> Some(tc, args, m)
3535+
| SynType.LongIdent (SynLongIdent(tc, _, _) as lidwd) -> Some(tc, [], lidwd.Range)
3536+
| SynType.LongIdentApp (StripParenTypes (SynType.LongIdent (SynLongIdent(tc, _, _))), SynLongIdent(longId, _, _), _, args, _commas, _, m) -> Some(tc@longId, args, m)
35373537
| _ -> None
35383538

35393539
/// Check whether 'type X = ABC<...>' is a generative provided type definition
@@ -5071,7 +5071,7 @@ module TcDeclarations =
50715071
memberFlags.MemberKind=SynMemberKind.Constructor &&
50725072
// REVIEW: This is a syntactic approximation
50735073
(match valSpfn.SynType, valSpfn.SynInfo.CurriedArgInfos with
5074-
| StripParenTypes (SynType.Fun (StripParenTypes (SynType.LongIdent (LongIdentWithDots([id], _))), _, _)), [[_]] when id.idText = "unit" -> true
5074+
| StripParenTypes (SynType.Fun (StripParenTypes (SynType.LongIdent (SynLongIdent([id], _, _))), _, _)), [[_]] when id.idText = "unit" -> true
50755075
| _ -> false)
50765076
| _ -> false)
50775077

src/fsharp/CheckExpressions.fs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@ module BindingNormalization =
24742474
// of available items, to the point that you can't even define a function with the same name as an existing union case.
24752475
match pat with
24762476
| SynPat.FromParseError(p, _) -> normPattern p
2477-
| SynPat.LongIdent (LongIdentWithDots(longId, _), _, toolId, tyargs, SynArgPats.Pats args, vis, m) ->
2477+
| SynPat.LongIdent (SynLongIdent(longId, _, _), _, toolId, tyargs, SynArgPats.Pats args, vis, m) ->
24782478
let typars = match tyargs with None -> inferredTyparDecls | Some typars -> typars
24792479
match memberFlagsOpt with
24802480
| None ->
@@ -3152,12 +3152,12 @@ let (|SimpleEqualsExpr|_|) expr =
31523152
/// Detect a named argument at a callsite
31533153
let TryGetNamedArg expr =
31543154
match expr with
3155-
| SimpleEqualsExpr(LongOrSingleIdent(isOpt, LongIdentWithDots([a], _), None, _), b) -> Some(isOpt, a, b)
3155+
| SimpleEqualsExpr(LongOrSingleIdent(isOpt, SynLongIdent([a], _, _), None, _), b) -> Some(isOpt, a, b)
31563156
| _ -> None
31573157

31583158
let inline IsNamedArg expr =
31593159
match expr with
3160-
| SimpleEqualsExpr(LongOrSingleIdent(_, LongIdentWithDots([_], _), None, _), _) -> true
3160+
| SimpleEqualsExpr(LongOrSingleIdent(_, SynLongIdent([_], _, _), None, _), _) -> true
31613161
| _ -> false
31623162

31633163
/// Get the method arguments at a callsite, taking into account named and optional arguments
@@ -4316,11 +4316,11 @@ and TcTypeOrMeasure optKind cenv newOk checkCxs occ env (tpenv: UnscopedTyparEnv
43164316
let g = cenv.g
43174317

43184318
match ty with
4319-
| SynType.LongIdent(LongIdentWithDots([], _)) ->
4319+
| SynType.LongIdent(SynLongIdent([], _, _)) ->
43204320
// special case when type name is absent - i.e. empty inherit part in type declaration
43214321
g.obj_ty, tpenv
43224322

4323-
| SynType.LongIdent(LongIdentWithDots(tc, _) as lidwd) ->
4323+
| SynType.LongIdent(SynLongIdent(tc, _, _) as lidwd) ->
43244324
let m = lidwd.Range
43254325
let ad = env.eAccessRights
43264326
let tinstEnclosing, tcref = ForceRaise(ResolveTypeLongIdent cenv.tcSink cenv.nameResolver occ OpenQualified env.NameEnv ad tc TypeNameResolutionStaticArgsInfo.DefiniteEmpty PermitDirectReferenceToGeneratedType.No)
@@ -4336,7 +4336,7 @@ and TcTypeOrMeasure optKind cenv newOk checkCxs occ env (tpenv: UnscopedTyparEnv
43364336
| _, TyparKind.Type ->
43374337
TcTypeApp cenv newOk checkCxs occ env tpenv m tcref tinstEnclosing []
43384338

4339-
| SynType.App (StripParenTypes (SynType.LongIdent(LongIdentWithDots(tc, _))), _, args, _commas, _, postfix, m) ->
4339+
| SynType.App (StripParenTypes (SynType.LongIdent(SynLongIdent(tc, _, _))), _, args, _commas, _, postfix, m) ->
43404340
let ad = env.eAccessRights
43414341

43424342
let tinstEnclosing, tcref =
@@ -4367,7 +4367,7 @@ and TcTypeOrMeasure optKind cenv newOk checkCxs occ env (tpenv: UnscopedTyparEnv
43674367
errorR(Error(FSComp.SR.tcUnitsOfMeasureInvalidInTypeConstructor(), m))
43684368
NewErrorType (), tpenv
43694369

4370-
| SynType.LongIdentApp (ltyp, LongIdentWithDots(longId, _), _, args, _commas, _, m) ->
4370+
| SynType.LongIdentApp (ltyp, SynLongIdent(longId, _, _), _, args, _commas, _, m) ->
43714371
let ad = env.eAccessRights
43724372
let ltyp, tpenv = TcType cenv newOk checkCxs occ env tpenv ltyp
43734373
match ltyp with
@@ -4631,7 +4631,7 @@ and TcStaticConstantParameter cenv (env: TcEnv) tpenv kind (StripParenTypes v) i
46314631
and CrackStaticConstantArgs cenv env tpenv (staticParameters: Tainted<ProvidedParameterInfo>[], args: SynType list, container, containerName, m) =
46324632
let args =
46334633
args |> List.map (function
4634-
| StripParenTypes (SynType.StaticConstantNamed(StripParenTypes (SynType.LongIdent(LongIdentWithDots([id], _))), v, _)) -> Some id, v
4634+
| StripParenTypes (SynType.StaticConstantNamed(StripParenTypes (SynType.LongIdent(SynLongIdent([id], _, _))), v, _)) -> Some id, v
46354635
| v -> None, v)
46364636

46374637
let unnamedArgs = args |> Seq.takeWhile (fst >> Option.isNone) |> Seq.toArray |> Array.map snd
@@ -5197,7 +5197,7 @@ and IsNameOf (cenv: cenv) (env: TcEnv) ad m (id: Ident) =
51975197

51985198
/// Check a long identifier in a pattern
51995199
and TcPatLongIdent warnOnUpper cenv env ad topValInfo vFlags (tpenv, names, takenNames) ty (longDotId, tyargs, args, vis, m) =
5200-
let (LongIdentWithDots(longId, _)) = longDotId
5200+
let (SynLongIdent(longId, _, _)) = longDotId
52015201

52025202
if tyargs.IsSome then errorR(Error(FSComp.SR.tcInvalidTypeArgumentUsage(), m))
52035203

@@ -5688,7 +5688,7 @@ and TcExprThen cenv (overallTy: OverallTy) env tpenv isArg synExpr delayed =
56885688
// e1.id1
56895689
// e1.id1.id2
56905690
// etc.
5691-
| SynExpr.DotGet (e1, _, LongIdentWithDots(longId, _), _) ->
5691+
| SynExpr.DotGet (e1, _, SynLongIdent(longId, _, _), _) ->
56925692
TcNonControlFlowExpr env <| fun env ->
56935693
TcExprThen cenv overallTy env tpenv false e1 ((DelayedDotLookup (longId, synExpr.RangeWithoutAnyExtraDot)) :: delayed)
56945694

@@ -6407,7 +6407,7 @@ and TcExprStaticOptimization cenv overallTy env tpenv (constraints, e2, e3, m) =
64076407

64086408
/// e1.longId <- e2
64096409
and TcExprDotSet cenv overallTy env tpenv (e1, lidwd, e2, mStmt) =
6410-
let (LongIdentWithDots(longId, _)) = lidwd
6410+
let (SynLongIdent(longId, _, _)) = lidwd
64116411

64126412
if lidwd.ThereIsAnExtraDotAtTheEnd then
64136413
// just drop rhs on the floor
@@ -6419,7 +6419,7 @@ and TcExprDotSet cenv overallTy env tpenv (e1, lidwd, e2, mStmt) =
64196419

64206420
/// e1.longId(e2) <- e3, very rarely used named property setters
64216421
and TcExprDotNamedIndexedPropertySet cenv overallTy env tpenv (e1, lidwd, e2, e3, mStmt) =
6422-
let (LongIdentWithDots(longId, _)) = lidwd
6422+
let (SynLongIdent(longId, _, _)) = lidwd
64236423
if lidwd.ThereIsAnExtraDotAtTheEnd then
64246424
// just drop rhs on the floor
64256425
let mExprAndDotLookup = unionRanges e1.Range (rangeOfLid longId)
@@ -8253,7 +8253,7 @@ and TcNameOfExpr cenv env tpenv (synArg: SynExpr) =
82538253
let m = cleanSynArg.Range
82548254
let rec check overallTyOpt resultOpt expr (delayed: DelayedItem list) =
82558255
match expr with
8256-
| LongOrSingleIdent (false, LongIdentWithDots(longId, _), _, _) ->
8256+
| LongOrSingleIdent (false, SynLongIdent(longId, _, _), _, _) ->
82578257

82588258
let ad = env.eAccessRights
82598259
let result = defaultArg resultOpt (List.last longId)
@@ -8333,7 +8333,7 @@ and TcNameOfExpr cenv env tpenv (synArg: SynExpr) =
83338333
check overallTyOpt resultOpt hd (DelayedTypeApp(types, m, m) :: delayed)
83348334

83358335
// expr.ID allowed
8336-
| SynExpr.DotGet (hd, _, LongIdentWithDots(longId, _), _) ->
8336+
| SynExpr.DotGet (hd, _, SynLongIdent(longId, _, _), _) ->
83378337
let result = defaultArg resultOpt (List.last longId)
83388338
check overallTyOpt (Some result) hd ((DelayedDotLookup (longId, expr.RangeWithoutAnyExtraDot)) :: delayed)
83398339

@@ -8489,7 +8489,7 @@ and GetLongIdentTypeNameInfo delayed =
84898489
| _ ->
84908490
TypeNameResolutionInfo.Default
84918491

8492-
and TcLongIdentThen cenv (overallTy: OverallTy) env tpenv (LongIdentWithDots(longId, _)) delayed =
8492+
and TcLongIdentThen cenv (overallTy: OverallTy) env tpenv (SynLongIdent(longId, _, _)) delayed =
84938493

84948494
let ad = env.eAccessRights
84958495
let typeNameResInfo = GetLongIdentTypeNameInfo delayed
@@ -10114,7 +10114,7 @@ and CheckRecursiveBindingIds binds =
1011410114
match b with
1011510115
| SynPat.Named(SynIdent(id,_), _, _, _)
1011610116
| SynPat.As(_, SynPat.Named(SynIdent(id,_), _, _, _), _)
10117-
| SynPat.LongIdent(longDotId=LongIdentWithDots([id], _)) -> id.idText
10117+
| SynPat.LongIdent(longDotId=SynLongIdent([id], _, _)) -> id.idText
1011810118
| _ -> ""
1011910119
if nm <> "" && not (hashOfBinds.Add nm) then
1012010120
error(Duplicate("value", nm, m))
@@ -10641,7 +10641,7 @@ and TcAttributeEx canFail cenv (env: TcEnv) attrTgt attrEx (synAttr: SynAttribut
1064110641

1064210642
let g = cenv.g
1064310643

10644-
let (LongIdentWithDots(tycon, _)) = synAttr.TypeName
10644+
let (SynLongIdent(tycon, _, _)) = synAttr.TypeName
1064510645
let arg = synAttr.ArgExpr
1064610646
let targetIndicator = synAttr.Target
1064710647
let isAppliedToGetterOrSetter = synAttr.AppliesToGetterAndSetter

src/fsharp/SyntaxTreeOps.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ let (|LongOrSingleIdent|_|) inp =
6767

6868
let (|SingleIdent|_|) inp =
6969
match inp with
70-
| SynExpr.LongIdent (false, LongIdentWithDots([id], _), None, _) -> Some id
70+
| SynExpr.LongIdent (false, SynLongIdent([id], _, _), None, _) -> Some id
7171
| SynExpr.Ident id -> Some id
7272
| _ -> None
7373

@@ -171,7 +171,7 @@ let mkSynPatMaybeVar lidwd vis m = SynPat.LongIdent (lidwd, None, None, None, S
171171
/// Extract the argument for patterns corresponding to the declaration of 'new ... = ...'
172172
let (|SynPatForConstructorDecl|_|) x =
173173
match x with
174-
| SynPat.LongIdent (longDotId=LongIdentWithDots([_], _); argPats=SynArgPats.Pats [arg]) -> Some arg
174+
| SynPat.LongIdent (longDotId=SynLongIdent([_], _, _); argPats=SynArgPats.Pats [arg]) -> Some arg
175175
| _ -> None
176176

177177
/// Recognize the '()' in 'new()'
@@ -225,7 +225,7 @@ let rec SimplePatOfPat (synArgNameGenerator: SynArgNameGenerator) p =
225225
let m = p.Range
226226
let isCompGen, altNameRefCell, id, item =
227227
match p with
228-
| SynPat.LongIdent(longDotId=LongIdentWithDots([id], _); typarDecls=None; argPats=SynArgPats.Pats []; accessibility=None) ->
228+
| SynPat.LongIdent(longDotId=SynLongIdent([id], _, _); typarDecls=None; argPats=SynArgPats.Pats []; accessibility=None) ->
229229
// The pattern is 'V' or some other capitalized identifier.
230230
// It may be a real variable, in which case we want to maintain its name.
231231
// But it may also be a nullary union case or some other identifier.

src/fsharp/service/ServiceInterfaceStubGenerator.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ type InterfaceData =
125125
Some ("'" + s.idText)
126126
| TyparStaticReq.HeadType ->
127127
Some ("^" + s.idText)
128-
| SynType.LongIdent(LongIdentWithDots(xs, _)) ->
128+
| SynType.LongIdent(SynLongIdent(xs, _, _)) ->
129129
xs |> Seq.map (fun x -> x.idText) |> String.concat "." |> Some
130130
| SynType.App(t, _, ts, _, _, isPostfix, _) ->
131131
match t, ts with
@@ -503,7 +503,7 @@ module InterfaceStubGenerator =
503503
GetInterfaceMembers entity |> Seq.isEmpty
504504

505505
let internal (|LongIdentPattern|_|) = function
506-
| SynPat.LongIdent(longDotId=LongIdentWithDots(xs, _)) ->
506+
| SynPat.LongIdent(longDotId=SynLongIdent(xs, _, _)) ->
507507
// let (name, range) = xs |> List.map (fun x -> x.idText, x.idRange) |> List.last
508508
let last = List.last xs
509509
Some(last.idText, last.idRange)

src/fsharp/service/ServiceNavigation.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ module NavigationImpl =
142142
| _ -> synExpr.Range
143143

144144
match synPat, memberOpt with
145-
| SynPat.LongIdent(longDotId=LongIdentWithDots(lid,_); accessibility=access), Some(flags) when isMember ->
145+
| SynPat.LongIdent(longDotId=SynLongIdent(lid,_,_); accessibility=access), Some(flags) when isMember ->
146146
let icon, kind =
147147
match flags.MemberKind with
148148
| SynMemberKind.ClassConstructor
@@ -158,7 +158,7 @@ module NavigationImpl =
158158
| hd :: _ -> (lid, hd.idRange)
159159
| _ -> (lid, m)
160160
[ createMemberLid(lidShow, kind, icon, unionRanges rangeMerge m, enclosingEntityKind, isAbstract, access) ]
161-
| SynPat.LongIdent(longDotId=LongIdentWithDots(lid,_); accessibility=access), _ ->
161+
| SynPat.LongIdent(longDotId=SynLongIdent(lid,_,_); accessibility=access), _ ->
162162
[ createMemberLid(lid, NavigationItemKind.Field, FSharpGlyph.Field, unionRanges (List.head lid).idRange m, enclosingEntityKind, isAbstract, access) ]
163163
| SynPat.Named (SynIdent(id,_), _, access, _), _ | SynPat.As(_, SynPat.Named (SynIdent(id,_), _, access, _), _), _ ->
164164
let glyph = if isMember then FSharpGlyph.Method else FSharpGlyph.Field
@@ -574,10 +574,10 @@ module NavigateTo =
574574
| _ -> NavigableItemKind.ModuleValue
575575

576576
match headPat with
577-
| SynPat.LongIdent(longDotId=LongIdentWithDots([_; id], _)) ->
577+
| SynPat.LongIdent(longDotId=SynLongIdent([_; id], _,_)) ->
578578
// instance members
579579
addIdent kind id false container
580-
| SynPat.LongIdent(longDotId=LongIdentWithDots([id], _)) ->
580+
| SynPat.LongIdent(longDotId=SynLongIdent([id], _,_)) ->
581581
// functions
582582
addIdent kind id false container
583583
| SynPat.Named (SynIdent(id,_), _, _, _) | SynPat.As(_, SynPat.Named (SynIdent(id,_), _, _, _), _) ->

src/fsharp/service/ServiceParamInfoLocations.fs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ open FSharp.Compiler.Text
66
open FSharp.Compiler.Text.Position
77
open FSharp.Compiler.Text.Range
88
open FSharp.Compiler.Syntax
9-
open FSharp.Compiler.SyntaxTrivia
109
open FSharp.Compiler.SyntaxTreeOps
1110

1211
type TupledArgumentLocation = { IsNamedArgument: bool; ArgumentRange: range }
@@ -61,8 +60,8 @@ module internal ParameterLocationsImpl =
6160
match synExpr with
6261
| SynExpr.Ident id -> Some ([id.idText], id.idRange)
6362
| SynExpr.LongIdent(_, SynLongIdent([id], [], [ Some _ ]), _, _) -> Some ([id.idText], id.idRange)
64-
| SynExpr.LongIdent (_, LongIdentWithDots(lid, _), _, lidRange)
65-
| SynExpr.DotGet (_, _, LongIdentWithDots(lid, _), lidRange) -> Some (pathOfLid lid, lidRange)
63+
| SynExpr.LongIdent (_, SynLongIdent(lid, _, _), _, lidRange)
64+
| SynExpr.DotGet (_, _, SynLongIdent(lid, _, _), lidRange) -> Some (pathOfLid lid, lidRange)
6665
| SynExpr.TypeApp (synExpr, _, _synTypeList, _commas, _, _, _range) -> digOutIdentFromFuncExpr synExpr
6766
| SynExpr.Paren(expr = expr) -> digOutIdentFromFuncExpr expr
6867
| _ -> None
@@ -73,8 +72,8 @@ module internal ParameterLocationsImpl =
7372

7473
let digOutIdentFromStaticArg (StripParenTypes synType) =
7574
match synType with
76-
| SynType.StaticConstantNamed(SynType.LongIdent(LongIdentWithDots([id], _)), _, _) -> Some id.idText
77-
| SynType.LongIdent(LongIdentWithDots([id], _)) -> Some id.idText // NOTE: again, not a static constant, but may be a prefix of a Named in incomplete code
75+
| SynType.StaticConstantNamed(SynType.LongIdent(SynLongIdent([id], _, _)), _, _) -> Some id.idText
76+
| SynType.LongIdent(SynLongIdent([id], _, _)) -> Some id.idText // NOTE: again, not a static constant, but may be a prefix of a Named in incomplete code
7877
| _ -> None
7978

8079
let getNamedParamName e =
@@ -90,13 +89,13 @@ module internal ParameterLocationsImpl =
9089
| SynExpr.App (ExprAtomicFlag.NonAtomic, _,
9190
SynExpr.App (ExprAtomicFlag.NonAtomic, true,
9291
SynExpr.LongIdent(longDotId = SynLongIdent(id = [op])),
93-
SynExpr.LongIdent (true(*isOptional*), LongIdentWithDots([n], _), _ref, _lidrange), _range),
92+
SynExpr.LongIdent (true(*isOptional*), SynLongIdent([n], _, _), _ref, _lidrange), _range),
9493
_, _) when op.idText="op_Equality" -> Some n.idText
9594
| _ -> None
9695

9796
let getTypeName synType =
9897
match synType with
99-
| SynType.LongIdent(LongIdentWithDots(ids, _)) -> ids |> pathOfLid
98+
| SynType.LongIdent(SynLongIdent(ids, _, _)) -> ids |> pathOfLid
10099
| _ -> [""] // TODO type name for other cases, see also unit test named "ParameterInfo.LocationOfParams.AfterQuicklyTyping.CallConstructorViaLongId.Bug94333"
101100

102101
let handleSingleArg traverseSynExpr (pos, synExpr, parenRange, rpRangeOpt : _ option) =
@@ -171,7 +170,7 @@ module internal ParameterLocationsImpl =
171170

172171
let (|StaticParameters|_|) pos (StripParenTypes synType) =
173172
match synType with
174-
| SynType.App(StripParenTypes (SynType.LongIdent(LongIdentWithDots(lid, _) as lidwd)), Some(openm), args, commas, closemOpt, _pf, wholem) ->
173+
| SynType.App(StripParenTypes (SynType.LongIdent(SynLongIdent(lid, _, _) as lidwd)), Some(openm), args, commas, closemOpt, _pf, wholem) ->
175174
let lidm = lidwd.Range
176175
let betweenTheBrackets = mkRange wholem.FileName openm.Start wholem.End
177176
if SyntaxTraversal.rangeContainsPosEdgesExclusive betweenTheBrackets pos && args |> List.forall isStaticArg then

0 commit comments

Comments
 (0)