Giter VIP home page Giter VIP logo

analyze_x's Introduction

analyzer_x

基于对Dart语法的Ast分析,提取需求字段并自动生成代码

使用方法

//在测试环境中调用
main(){
    AnalyzerX.instance.generate();
}

调用关系

analyzer => tester => getter => gen

analyzer

通过dart提供的‘analyzer’插件,获取指定文件的Ast并进行遍历

tester

在tester中指明你需要的AstNode路径,当相应路径被访问时,tester会被调用

getter

集成复数个tester,获取需要用于代码生成的信息

gen

通过获取到的信息,构建生成代码

特点

1、自动寻找符合要求的类定义并生成需求文件

2、自动import(目前仅针对自有包)

3、选择使用获取编译单元最多的文件进行扩展并输出

支持

1.Event Factory代码生成

2.Param Factory代码生成

analyze_x's People

Contributors

1623040547 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.