Skip to content

Commit

Permalink
remove spaces between an identifier and a star (nim-lang#19355)
Browse files Browse the repository at this point in the history
It makes search easier by searching `+`* instead of `+` which filter lots of unexported versions.

Follow nim-lang#18681
  • Loading branch information
ringabout authored and PMunch committed Mar 28, 2022
1 parent 039bf70 commit 4c46bc7
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions lib/js/jsffi.nim
Original file line number Diff line number Diff line change
Expand Up @@ -163,28 +163,28 @@ macro jsFromAst*(n: untyped): untyped =
proc `&`*(a, b: cstring): cstring {.importjs: "(# + #)".}
## Concatenation operator for JavaScript strings.

proc `+` *(x, y: JsObject): JsObject {.importjs: "(# + #)".}
proc `-` *(x, y: JsObject): JsObject {.importjs: "(# - #)".}
proc `*` *(x, y: JsObject): JsObject {.importjs: "(# * #)".}
proc `/` *(x, y: JsObject): JsObject {.importjs: "(# / #)".}
proc `%` *(x, y: JsObject): JsObject {.importjs: "(# % #)".}
proc `+=` *(x, y: JsObject): JsObject {.importjs: "(# += #)", discardable.}
proc `-=` *(x, y: JsObject): JsObject {.importjs: "(# -= #)", discardable.}
proc `*=` *(x, y: JsObject): JsObject {.importjs: "(# *= #)", discardable.}
proc `/=` *(x, y: JsObject): JsObject {.importjs: "(# /= #)", discardable.}
proc `%=` *(x, y: JsObject): JsObject {.importjs: "(# %= #)", discardable.}
proc `++` *(x: JsObject): JsObject {.importjs: "(++#)".}
proc `--` *(x: JsObject): JsObject {.importjs: "(--#)".}
proc `>` *(x, y: JsObject): JsObject {.importjs: "(# > #)".}
proc `<` *(x, y: JsObject): JsObject {.importjs: "(# < #)".}
proc `>=` *(x, y: JsObject): JsObject {.importjs: "(# >= #)".}
proc `<=` *(x, y: JsObject): JsObject {.importjs: "(# <= #)".}
proc `**` *(x, y: JsObject): JsObject {.importjs: "((#) ** #)".}
proc `+`*(x, y: JsObject): JsObject {.importjs: "(# + #)".}
proc `-`*(x, y: JsObject): JsObject {.importjs: "(# - #)".}
proc `*`*(x, y: JsObject): JsObject {.importjs: "(# * #)".}
proc `/`*(x, y: JsObject): JsObject {.importjs: "(# / #)".}
proc `%`*(x, y: JsObject): JsObject {.importjs: "(# % #)".}
proc `+=`*(x, y: JsObject): JsObject {.importjs: "(# += #)", discardable.}
proc `-=`*(x, y: JsObject): JsObject {.importjs: "(# -= #)", discardable.}
proc `*=`*(x, y: JsObject): JsObject {.importjs: "(# *= #)", discardable.}
proc `/=`*(x, y: JsObject): JsObject {.importjs: "(# /= #)", discardable.}
proc `%=`*(x, y: JsObject): JsObject {.importjs: "(# %= #)", discardable.}
proc `++`*(x: JsObject): JsObject {.importjs: "(++#)".}
proc `--`*(x: JsObject): JsObject {.importjs: "(--#)".}
proc `>`*(x, y: JsObject): JsObject {.importjs: "(# > #)".}
proc `<`*(x, y: JsObject): JsObject {.importjs: "(# < #)".}
proc `>=`*(x, y: JsObject): JsObject {.importjs: "(# >= #)".}
proc `<=`*(x, y: JsObject): JsObject {.importjs: "(# <= #)".}
proc `**`*(x, y: JsObject): JsObject {.importjs: "((#) ** #)".}
# (#) needed, refs https://github.com/nim-lang/Nim/pull/16409#issuecomment-760550812
proc `and`*(x, y: JsObject): JsObject {.importjs: "(# && #)".}
proc `or` *(x, y: JsObject): JsObject {.importjs: "(# || #)".}
proc `or`*(x, y: JsObject): JsObject {.importjs: "(# || #)".}
proc `not`*(x: JsObject): JsObject {.importjs: "(!#)".}
proc `in` *(x, y: JsObject): JsObject {.importjs: "(# in #)".}
proc `in`*(x, y: JsObject): JsObject {.importjs: "(# in #)".}

proc `[]`*(obj: JsObject, field: cstring): JsObject {.importjs: getImpl.}
## Returns the value of a property of name `field` from a JsObject `obj`.
Expand Down

0 comments on commit 4c46bc7

Please sign in to comment.