git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Use 'Is' instead of 'Contains' for instanceof
commit93cf4213feaf4d9bc86fd175e498f688606bf0e1 authorAndy Arvanitis <andyarvanitis@gmail.com> dateMon 5 Oct 2020, 21:44 (6 years ago) parent7884926
2 files changed+2−1
src/CodeGen/IL/Common.hs+1 src/CodeGen/IL/Printer.hs+1−1
src/CodeGen/IL/Common.hs+1
@@ -84,6 +84,7 @@ nameIsILBuiltIn name =
8484 , "Foreign"
8585 , "Get"
8686 , "Index"
87+ , "Is"
8788 , "Length"
8889 , "Once"
8990 , "Run"
src/CodeGen/IL/Printer.hs+1−1
@@ -234,7 +234,7 @@ literals = mkPattern' match'
234234 , return $ emit "]"
235235 ]
236236 match (InstanceOf _ val ty) = mconcat <$> sequence
237− [ return $ emit "Contains("
237+ [ return $ emit "Is("
238238 , prettyPrintIL' val
239239 , return $ emit ", "
240240 , prettyPrintIL' ty