![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | LICENSE.md | 2 years ago | 1.2K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | README.md | 2 years ago | 1.0K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | assignments.js | 2 years ago | 217 | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | ignored.js | 2 years ago | 401 | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | index.js | 2 years ago | 4.2K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
![]() | package.json | 2 years ago | 2.2K | 0fb859dc fixed mobile overflwo options [كارل مبارك] |
Take an array of GLSL tokens and determine which tokens are either assignments or variable declarations.
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.
MIT. See LICENSE.md for details.