@@ -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
31533153let 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
31583158let 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
46314631and 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
51995199and 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
64096409and 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
64216421and 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
0 commit comments