-
I am using `@babel/traverse` and I am not able to infer what the "types" are for the enter/exit methods:
```js
traverse(ast, {
enter(arg: ) {
}
});
```
Moreover, using `isNode` returns …
-
也就前两天,面试大厂,其中有那么一个问题:
1. 你了解过Babel吗?
> 了解过抽象语法树,又称AST,有学习过,也写过一个基于AST的[乞丐版模板引擎](https://github.com/axetroy/pag),先是词法解析token,然后生产抽象语法树,然后更改抽象语法树,当然这是插件做的事情,最后根据新的AST生成代码。
2. 写过Babel插件吗
> …
-
When using an AST Plugin (env.syntax.traverse), adding a `TextNode` visitor will match the `AttrNode`'s `value` if the `value` is a string. It seems like this should not be the case since the HTML spe…
-
### Bug Description
The `plainbox.impl.resource.CodeNotAllowed: this kind of python code is not allowed: Sub()` exception be thrown while a template job use template-filter to filter a resource job w…
-
# Error
```
jhammond@Jeff-M2 lfortran % ./build0.sh
+ ci/version.sh
++ git describe --tags --dirty
+ version=v0.30.0-85-g71637ca5b-dirty
+ version=0.30.0-85-g71637ca5b-dirty
+ echo 0.30.0-8…
-
When running 03-matrix-multiply the performance is much lower compared to rocBLAS
```
M N K rocBLAS Triton
0 1024.0 1024.0 1024.0 21.770480 3.301941
1 2048.0 2…
-
Using phan/phan 5.4.1 under php81. I am getting a fatal error of "Implicit conversion from float 1.2 to int loses precision"
PHP code:
```lang=php
-
LibCST would be a better fit for applying changes to the code, like the suggested types from #358. Currently, we have a mechanism that can replace an AST node and decompile it with ast-decompiler, but…
-
Hi,
I am using the pre_visit_relation to extract tables from queries and I found that for some reason,
Drop Table t1 not invoked the pre_visit_relation method.
Do you know if this is the expe…
-
The following code works in Python 2.7 on in macOS 10.13:
```n=4096
y=np.ones([n,n])
x=2*np.ones([n,n])
z=1
out=np.ones_like(x)
@hope.jit
def hope_exp(X,Y,Z,A):
A[:] = hope.exp((…