Tag

AST

0 views collected around this technical thread.

大转转FE
大转转FE
Apr 3, 2025 · Frontend Development

Code Impact Range Analysis and Dependency‑Tree Construction for Large Frontend Projects

This article explains how to analyse the impact range of code changes in large frontend projects, describes the architecture and core techniques—including project dependency‑tree building, AST parsing, GitLab diff extraction, and change propagation—provides concrete JavaScript/TypeScript examples, and discusses visualization of the results.

ASTGitLab diffcode analysis
0 likes · 29 min read
Code Impact Range Analysis and Dependency‑Tree Construction for Large Frontend Projects
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 13, 2025 · Backend Development

Master Java Code Analysis with JavaParser: Real‑World Examples

This article introduces JavaParser, an open‑source library for parsing Java source code into an AST, and walks through practical cases covering dependency setup, basic parsing, class and method extraction, code modification, class generation, and comprehensive analysis with code snippets and output screenshots.

ASTJavaJavaParser
0 likes · 10 min read
Master Java Code Analysis with JavaParser: Real‑World Examples
DeWu Technology
DeWu Technology
Nov 11, 2024 · Backend Development

Precise Testing Platform: Architecture, Recommendation Engine, and Graph Database Implementation

The Precise Testing Platform combines a recommendation engine—featuring a link analyzer, diff analyzer, and knowledge base—to automatically construct detailed method‑call graphs from source code, extract HTTP and Dubbo APIs, handle reflections and inheritance, and store billions of nodes in Nebula Graph, thereby eliminating blind, missed, and redundant tests while boosting coverage and reducing testing costs.

ASTJavabackend development
0 likes · 54 min read
Precise Testing Platform: Architecture, Recommendation Engine, and Graph Database Implementation
Bilibili Tech
Bilibili Tech
Oct 15, 2024 · Frontend Development

AST‑Based Visual Programming for Vue SFC: Design, Implementation, and Demo

By binding a Vue single‑file component’s AST to a visual UI, this project parses templates with node‑html‑parser, transforms scripts via Babel, and processes styles with standard loaders, allowing developers to edit component properties visually, automatically regenerate synchronized source code, and preview changes, with a prototype demo and planned drag‑and‑drop, styling, state, AI, and CI/CD extensions.

ASTBabelVue
0 likes · 10 min read
AST‑Based Visual Programming for Vue SFC: Design, Implementation, and Demo
vivo Internet Technology
vivo Internet Technology
Sep 25, 2024 · Frontend Development

Automated AST-Based Code Migration for Vue Front‑End Projects

To simplify large‑scale Vue upgrades such as Vue 2→Vue 3, Webpack 4→Webpack 5, or migration to Vite, the author presents an automated AST‑based migration scaffold that parses JavaScript, Vue, and style files, applies transformation rules with GoGoCode and PostCSS, and rewrites code, reducing manual effort and error risk.

ASTJavaScriptVue
0 likes · 20 min read
Automated AST-Based Code Migration for Vue Front‑End Projects
Java Tech Enthusiast
Java Tech Enthusiast
Sep 15, 2024 · Fundamentals

How Source Code Is Transformed into Machine Instructions

A compiler transforms source code into executable machine instructions by first tokenizing the text into keywords, identifiers and literals, then parsing these tokens into an abstract syntax tree, generating and optimizing intermediate code, and finally assembling and linking the output for the target architecture or LLVM IR.

ASTCompilerLLVM
0 likes · 4 min read
How Source Code Is Transformed into Machine Instructions
Test Development Learning Exchange
Test Development Learning Exchange
Aug 25, 2024 · Fundamentals

Understanding Python's Abstract Syntax Tree (AST) with Practical Examples

This article introduces Python's Abstract Syntax Tree (AST), explains its purpose for code analysis and transformation, and provides ten detailed examples that demonstrate building, inspecting, modifying, and generating code using the ast module in a standard Python environment.

ASTAbstract Syntax TreeTutorial
0 likes · 9 min read
Understanding Python's Abstract Syntax Tree (AST) with Practical Examples
Test Development Learning Exchange
Test Development Learning Exchange
Jun 24, 2024 · Fundamentals

Python Standard Library: 9 Essential Modules for Efficient Development

This article introduces nine powerful Python standard library modules that enhance code efficiency and readability, covering context management, iterators, concurrency, file operations, functional programming, AST parsing, type hints, data classes, and async programming.

ASTPythonasyncio
0 likes · 4 min read
Python Standard Library: 9 Essential Modules for Efficient Development
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 19, 2024 · Backend Development

Designing Visual Workflow Orchestration with LiteFlow: From Basic Components to Advanced AST Generation

This article explains how to use the LiteFlow rule‑engine framework to define reusable Java components, express execution flows with EL expressions, design a visual canvas that converts JSON into an abstract syntax tree, generate valid EL code via DFS, and manage workflow updates through push‑pull refresh mechanisms, while also outlining benefits and future plans.

ASTEL ExpressionJava
0 likes · 18 min read
Designing Visual Workflow Orchestration with LiteFlow: From Basic Components to Advanced AST Generation
JD Tech
JD Tech
May 6, 2024 · Fundamentals

Static and Runtime Code Scanning to Detect Unused Java Methods

This article presents a design and implementation of both static AST‑based scanning and runtime JaCoCo coverage analysis to automatically detect unused (zombie) Java methods, describing the workflow, required dependencies, code snippets, and how to visualize active versus dead code in the IDE.

ASTCode CoverageJaCoCo
0 likes · 8 min read
Static and Runtime Code Scanning to Detect Unused Java Methods
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 16, 2024 · Frontend Development

Rax2Taro: Building a Compiler to Convert Rax Components into Taro

This article walks through the design and implementation of a compiler that automatically transforms Rax components into Taro components, covering the background, Babel‑based AST processing, import rewriting, component attribute mapping, project structure, automated end‑to‑end testing, and future enhancements.

ASTBabelCompiler
0 likes · 15 min read
Rax2Taro: Building a Compiler to Convert Rax Components into Taro
Tencent Music Tech Team
Tencent Music Tech Team
Jan 3, 2024 · Frontend Development

Automated Upgrade of Taro Mini‑Program from 1.x to 3.x Using AST

The article describes an AST‑driven command‑line tool that automatically upgrades a Taro 1.x mini‑program to 3.x by updating dependencies, converting imports, restructuring files, consolidating styles, replacing deprecated APIs, and adjusting build settings, offering faster, more reliable migration than the labor‑intensive manual approach.

ASTTaroautomation
0 likes · 9 min read
Automated Upgrade of Taro Mini‑Program from 1.x to 3.x Using AST
DeWu Technology
DeWu Technology
Nov 27, 2023 · Operations

Precise Testing Platform: Practice, Data, and Insights

A precise testing platform built on AST analysis and a recommendation engine was deployed across four core applications, enabling automated test execution with 100% pass rates, at least 75% service coverage, around 80% precision, early defect interception, and up to one hour per‑iteration time savings while planning further expansion and precision improvements.

ASTcode analysisplatform
0 likes · 11 min read
Precise Testing Platform: Practice, Data, and Insights
Baidu Geek Talk
Baidu Geek Talk
Oct 9, 2023 · Artificial Intelligence

Code Understanding Technology: Building White-Box Software Knowledge Graph at Baidu

Baidu’s white‑box code understanding platform combines static, dynamic, non‑code and LLM‑based analyses in a three‑layer architecture that accelerates C/C++ processing ninefold, supports multiple languages, and powers applications such as intelligent unit testing, orphan‑function cleanup and AI‑driven risk detection, while future integration with models like GPT‑4 aims to enable multi‑turn code Q&A, automated refactoring and predictive testing.

ASTBaiduCI/CD
0 likes · 15 min read
Code Understanding Technology: Building White-Box Software Knowledge Graph at Baidu
政采云技术
政采云技术
Sep 26, 2023 · Backend Development

Understanding Lombok: Introduction, Compilation Principles, and a Manual @Getter Implementation

This article introduces Lombok, explains how it leverages Java's annotation‑processing (JSR‑269) and abstract syntax tree (AST) modifications to generate boilerplate code at compile time, and provides a step‑by‑step guide to manually implement a @Getter annotation processor with full Maven project examples.

ASTJavaLombok
0 likes · 21 min read
Understanding Lombok: Introduction, Compilation Principles, and a Manual @Getter Implementation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 26, 2023 · Frontend Development

A Comprehensive Guide to Code Modification (Codemod) Tools and AST Transformations

This article explains the concept of codemod, outlines typical migration scenarios, details a step‑by‑step AST‑based workflow, and compares popular JavaScript code‑mod libraries such as Recast, jscodeshift, gogocode, and ast‑grep, helping developers choose the right tool for automated code upgrades.

ASTGoGoCodeJavaScript
0 likes · 13 min read
A Comprehensive Guide to Code Modification (Codemod) Tools and AST Transformations
Baidu App Technology
Baidu App Technology
Aug 29, 2023 · Mobile Development

iOS App Package Size Optimization: A Technical Approach

To accurately trim iOS app binaries, the article discards low‑precision Mach‑O/LinkMap methods and instead builds a custom compilation pipeline using libtooling and the Swift compiler to analyze full abstract syntax trees, enabling reliable detection of unused methods across complex language features and inheritance hierarchies.

ASTcode analysisios-optimization
0 likes · 14 min read
iOS App Package Size Optimization: A Technical Approach
Tencent Cloud Developer
Tencent Cloud Developer
Jul 24, 2023 · Artificial Intelligence

Building an Internal Code Knowledge Base with Embedding and AST Interpreter

The author builds an internal code knowledge base for the TDesign Vue‑Next library by scraping documentation, chunking and embedding texts with OpenAI’s ada model into a vector store, then retrieving relevant chunks for LLM answers, and enhances context continuity using a JavaScript AST interpreter, achieving up to 90 % query accuracy and a 20 % productivity boost.

ASTKnowledge BaseLLM
0 likes · 11 min read
Building an Internal Code Knowledge Base with Embedding and AST Interpreter
Sohu Tech Products
Sohu Tech Products
Jul 19, 2023 · Backend Development

Analyzing TypeScript AST to Track API Usage and Build a Visualized Plugin

This article explains how to convert TypeScript source code into an AST, traverse it to collect import statements, distinguish various import forms, and use the TypeScript compiler API to locate identifier symbols, enabling accurate counting of API calls and line numbers for a given dependency.

ASTCompiler APIImport Tracking
0 likes · 12 min read
Analyzing TypeScript AST to Track API Usage and Build a Visualized Plugin