🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

glsl-token-assignments

Package Overview
Dependencies
Maintainers
11
Versions
4
Alerts
File Explorer

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
Source
npm
Version published
Weekly downloads
238K
-2.57%
Maintainers
11
Weekly downloads
 
Created
Source

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.

Keywords

ecosystem:stackgl

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