How to use the caffeine-script-runtime.exists function in caffeine-script-runtime

To help you get started, we’ve selected a few caffeine-script-runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github caffeine-suite / caffeine-script / source / CaffeineScript / SemanticTree / FunctionDefinitionStn.js View on Github external
argumentNames: function() {
          let cafBase;
          return Caf.exists(cafBase = this.arguments) &&
            cafBase.argumentNames || [];
        },
        childrenToUpdateScope: function() {
github caffeine-suite / caffeine-script / source / CaffeineScript / Rules / Expressions.js View on Github external
stnProps: function() {
                let base;
                return {
                  operand: (this.prefix || this.postfix).toString(),
                  tail: !!(Caf.exists((base = this.postfix)) && base.toString())
                };
              }
            }
github caffeine-suite / caffeine-script / source / CaffeineScript / SemanticTree / SimpleToJs / AccessorStn.js View on Github external
this.prototype.toJs = function() {
        let identierString, cafBase;
        return this.value && this.key.isIdentifier
          ? (identierString = this.key.toJs()).match(/['"`]/)
              ? `${Caf.toString(
                  this.value.toJsExpressionWithParens()
                )}[${Caf.toString(identierString)}]`
              : `${Caf.toString(
                  this.value.toJsExpressionWithParens({ dotBase: true })
                )}.${Caf.toString(identierString)}`
          : `${Caf.toString(
              Caf.exists(cafBase = this.value) &&
                cafBase.toJsExpressionWithParens() ||
                ""
            )}[${Caf.toString(this.key.toJsExpression())}]`;
      };
    }
github caffeine-suite / caffeine-script / source / CaffeineScript / SemanticTree / BaseStn.js View on Github external
sourceFile: function() {
              let temp, base;
              return (temp =
                Caf.exists((base = this.parseTreeNode)) && base.sourceFile) !=
                null
                ? temp
                : "caffeine-script";
            }
          });
github caffeine-suite / caffeine-script / source / CaffeineScript / SemanticTree / StnsGeneratingJs / ReferenceStn.js View on Github external
this.prototype.updateScope = function(scope) {
          let base;
          this.scope = scope;
          if (this.props.identifierHandle) {
            this.scope.addUniqueIdentifierHandle(this.props.identifierHandle);
          } else {
            if (
              !(Caf.exists((base = this.identifier)) && base.isUniqueIdentifier)
            ) {
              this.scope.addIdentifierUsed(this.propName);
            }
          }
          return instanceSuper.updateScope.apply(this, arguments);
        };
        this.getter({

caffeine-script-runtime

Runtime library for CaffeineScript

ISC
Latest version published 4 years ago

Package Health Score

45 / 100
Full package analysis

Similar packages