You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

glsl-token-assignments

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glsl-token-assignments

Take an array of GLSL tokens and determine which tokens are either assignments or variable declarations.

2.0.2
latest
Version published
Weekly downloads
237K
-7.37%
Maintainers
11
Weekly downloads
 
Created

glsl-token-assignments

experimental

Take an array of GLSL tokens and determine which tokens are either assignments or variable declarations.

Usage

NPM

assignments(tokens)

Takes an array of GLSL tokens from glsl-tokenizer and sets the following boolean values for each ident token, i.e. any variable names:

token.assignment

If the value of the variable is being changed here.

token.declaration

If a new variable is being defined here for this scope.

token.structMember

If this token is specifying a new struct member, e.g.:

struct X {
  float member1;
  float member2;
};

The tokens array will be modified in-place.

License

MIT. See LICENSE.md for details.

FAQs

Package last updated on 28 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts