Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brianrourkeboll committed Jul 3, 2024
1 parent f5e0f60 commit b4d3224
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Compiler/Checking/CheckExpressions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6973,7 +6973,7 @@ and TcIndexingThen cenv env overallTy mWholeExpr mDot tpenv setInfo synLeftExprO
| (_, Array) & (ArrayIndexerOrSlicer (path, meth, args), _)
| (_, String) & (StringIndexerOrSlicer (path, meth, args), _) -> tcArrayOrStringIndexing (path, meth, args)

// Look for an indexer property or method, or delay lookup while assuming `Item`.
// Look for an indexer property, or else assume `Item`.
| (Indexing, Getting), Indexable indexer
| (Indexing, Getting), (Array | Nominal) & PossiblyIndexable indexer ->
propagateThenTcDelayed tpenv expr exprTy (mkDelayedIndexedGet indexer decodedIndexArgs @ delayed)
Expand All @@ -6986,16 +6986,16 @@ and TcIndexingThen cenv env overallTy mWholeExpr mDot tpenv setInfo synLeftExprO
| ((Slicing, Getting), Nominal) & Sliceable (tpenv, expr, exprTy) ->
propagateThenTcDelayed tpenv expr exprTy delayed

// In the immediate absence of either, delay lookup while assuming `GetSlice`.
// In the immediate absence of either, assume `GetSlice`.
| (Slicing, Getting), PossiblyGetSliceable slicer ->
propagateThenTcDelayed tpenv expr exprTy (mkDelayedGetSlice slicer decodedIndexArgs @ delayed)

// Look for an indexer property or method, or delay lookup while assuming `Item`.
// Look for an indexer property, or else assume `Item`.
| (Indexing, Setting (setArg, mOfLeftOfSet)), Indexable indexer
| (Indexing, Setting (setArg, mOfLeftOfSet)), (Array | Nominal) & PossiblyIndexable indexer ->
propagateThenTcDelayed tpenv expr exprTy (mkDelayedIndexedSet indexer decodedIndexArgs setArg mOfLeftOfSet @ delayed)

// Delay lookup of `SetSlice`.
// Assume `SetSlice`.
| (Slicing, Setting (setArg, mOfLeftOfSet)), (Array | Nominal) ->
propagateThenTcDelayed tpenv expr exprTy (mkDelayedSetSlice decodedIndexArgs setArg mOfLeftOfSet @ delayed)

Expand Down

0 comments on commit b4d3224

Please sign in to comment.