src/parse.js
function parseDeclaration($ast, declaration, scope) {
  const variable = {};

  const propertyNode = $ast(declaration)
  .children('property');

  variable.declarationClean = propertyNode.value();
  variable.position = propertyNode.get(0).start;

  variable.declaration = `$${variable.declarationClean}`;

  variable.expression = parseExpression($ast, declaration);
  variable.flags = {
    default: isDefaultDeclaration($ast, declaration),
    global: isExplicitGlobalDeclaration($ast, declaration),
  };

  variable.deps = getDeclarationDeps($ast, declaration, scope);

  return variable;
}
function parseDeclaration($ast, declaration, scope) {
  const variable = {};

  const propertyNode = $ast(declaration)
  .children('property');

  variable.declarationClean = propertyNode.value();
  variable.position = propertyNode.get(0).start;

  variable.declaration = `$${variable.declarationClean}`;

  variable.expression = parseExpression($ast, declaration);
  variable.flags = {
    default: isDefaultDeclaration($ast, declaration),
    global: isExplicitGlobalDeclaration($ast, declaration),
  };

  variable.deps = getDeclarationDeps($ast, declaration, scope);

  return variable;
}
function parseDeclaration ( $ast , declaration , scope ) { const variable = { } ; const propertyNode = $ast ( declaration ) . children ( 'property' ) ; variable . declarationClean = propertyNode . value ( ) ; variable . position = propertyNode . get ( 0 ) . start ; variable . declaration = ` ${ variable . declarationClean } ` ; variable . expression = parseExpression ( $ast , declaration ) ; variable . flags = { default : isDefaultDeclaration ( $ast , declaration ) , global : isExplicitGlobalDeclaration ( $ast , declaration ) , } ; variable . deps = getDeclarationDeps ( $ast , declaration , scope ) ; return variable ; }
Parse declaration node into declaration object
Parse declaration node into declaration object