Giter Site home page Giter Site logo

babel-type-descriptions's Introduction

The goal is to have a link to ASTexplorer to demonstrate what each type is. Types have been broken into sections if they are not core parts of javascript (JSX, type annotations, typescript types), however are otherwise in alphabetical order.

WIP - un-added types have a leading ^^^^ while I am working on them.

Important Base Parts

Knowing these will help everywhere

  • identifier A named property, such as a declared variable or object property.
  • blockStatement Anything to be run as part of resolving an expression. (Effectively anything that would go between {} brackets, whether that is in a for statement, or function expression. It will be found as the body property of the expression.
  • file identifies that all code within the AST down from this comes from a single javascript file within the filesystem.
  • program The body type of a file, under which the rest of the file's AST sits. (files may also have comments and tokens)
  • expressionStatement func()
  • variableDeclaration var a = 'a';
  • variableDeclarator var a = 'a';

Literal types

Literal types are javascript primitives. They are normally simple values.

Expressions

Expressions can be seen as taking an action, whether adding a new

(possible other bits)

Declarations (declarators?)

Statements

Patterns

Javascript Properties

JSX Properties

These are parts of JSX syntax. For more information on JSX, please see the react documentation.

Other Types Bits

Type types

These properties are used for typing systems, mostly flow.

Declarations

Type Annotations (most likely flow)

These type annotations are the kind used in flow. I recommend reading the flow documentation to understand these types. Each will be found within a typeAnnotation property for an identifier.

Typescript Types

babel-type-descriptions's People

Contributors

noviny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.