python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
`recast` - adding a properties to an object
I want to modify properties to a particular typescript object with the library recast.
This is the file content:
// /path/to/my/file.ts
...
import somelib from 'somelib';
...
export const theobj:My...
47ndr
Votes: 0
Answers: 1
In Java 8 compiler, what is nameexpr field in JCVariableDecl for
In java compiler JCTree.java the JCVariableDecl is defined as the following:
public static class JCVariableDecl extends JCStatement implements VariableTree {
/** variable modifiers */
...
Capital S
Votes: 0
Answers: 1
C++ Source-to-Source Transformation with Clang
I am working on a project for which I need to "combine" code distributed over multiple C++ files into one file. Due to the nature of the project, I only need one entry function (the function...
Sam
Votes: 0
Answers: 0
ast nodes not preserving some properties (lineno or/and col_offset)
I'm trying to convert every break statement with exec('break') in a code. So far I've got this:
import ast
source = '''some_list = [2, 3, 4, 5]
for i in some_list:
if i == 4:
p = 0
...
musava_ribica
Votes: 0
Answers: 1