@@ -2884,11 +2884,6 @@ let isSizeOfValRef g vref =
28842884 // There is an internal version of typeof defined in prim-types.fs that needs to be detected
28852885 || ( g.compilingFslib && vref.LogicalName = " sizeof" )
28862886
2887- let isNameOfValRef g vref =
2888- valRefEq g vref g.nameof_ vref
2889- // There is an internal version of typeof defined in prim-types.fs that needs to be detected
2890- || ( g.compilingFslib && vref.LogicalName = " nameof" )
2891-
28922887let isTypeDefOfValRef g vref =
28932888 valRefEq g vref g.typedefof_ vref
28942889 // There is an internal version of typedefof defined in prim-types.fs that needs to be detected
@@ -2914,11 +2909,6 @@ let (|TypeDefOfExpr|_|) g expr =
29142909 | Expr.App( Expr.Val( vref,_,_),_,[ ty],[],_) when isTypeDefOfValRef g vref -> Some ty
29152910 | _ -> None
29162911
2917- let (| NameOfExpr | _ |) g expr =
2918- match expr with
2919- | Expr.App( Expr.Val( vref,_,_),_,[ ty],[],_) when isNameOfValRef g vref -> Some ty
2920- | _ -> None
2921-
29222912let (| SeqExpr | _ |) g expr =
29232913 match expr with
29242914 | Expr.App( Expr.Val( vref,_,_),_,_,_,_) when valRefEq g vref g.seq_ vref -> Some()
@@ -7753,8 +7743,7 @@ let IsSimpleSyntacticConstantExpr g inputExpr =
77537743 | Expr.Op ( TOp.UnionCase _,_,[],_) // Nullary union cases
77547744 | UncheckedDefaultOfExpr g _
77557745 | SizeOfExpr g _
7756- | TypeOfExpr g _
7757- | NameOfExpr g _ -> true
7746+ | TypeOfExpr g _ -> true
77587747 // All others are not simple constant expressions
77597748 | _ -> false
77607749
0 commit comments