Sha256: f07dfd44093212396c3a5d645011c3675a514dc94153ce3a345e6064cc059f30

Contents?: true

Size: 595 Bytes

Versions: 12

Compression:

Stored size: 595 Bytes

Contents

import {tokenizer, SourceLocation, tokTypes as tt} from ".."

export function LooseParser(input, options) {
  this.toks = tokenizer(input, options)
  this.options = this.toks.options
  this.input = this.toks.input
  this.tok = this.last = {type: tt.eof, start: 0, end: 0}
  if (this.options.locations) {
    let here = this.toks.curPosition()
    this.tok.loc = new SourceLocation(this.toks, here, here)
  }
  this.ahead = []; // Tokens ahead
  this.context = []; // Indentation contexted
  this.curIndent = 0
  this.curLineStart = 0
  this.nextLineStart = this.lineEnd(this.curLineStart) + 1
}

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/acorn/src/loose/state.js
minimum_viable_product-0.0.11 test/dummy/node_modules/acorn/src/loose/state.js
brwy_rails-0.0.6 test/dummy/node_modules/acorn/src/loose/state.js
brwy_rails-0.0.5 test/dummy/node_modules/acorn/src/loose/state.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/acorn/src/loose/state.js
brwy_rails-0.0.4 test/dummy/node_modules/acorn/src/loose/state.js
brwy_rails-0.0.3 test/dummy/node_modules/acorn/src/loose/state.js
brwy_rails-0.0.2 test/dummy/node_modules/acorn/src/loose/state.js
brwy_rails-0.0.1 test/dummy/node_modules/acorn/src/loose/state.js
gulp_assets-1.0.0.pre.5 template/node_modules/babel-core/node_modules/acorn-jsx/node_modules/acorn/src/loose/state.js
gulp_assets-1.0.0.pre.4 template/node_modules/babel-core/node_modules/acorn-jsx/node_modules/acorn/src/loose/state.js
gulp_assets-1.0.0.pre.3 template/node_modules/babel-core/node_modules/acorn-jsx/node_modules/acorn/src/loose/state.js