Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sweet-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sweet-js
  • sweet-core
  • Issues
  • #569
Closed
Open
Issue created Aug 12, 2016 by Administrator@rootContributor

Error when using `fromString`

Created by: jlongster

Trying to take operators like < and return something like { op: "<" }:

syntax foo = function(ctx) {
  const op = ctx.next().value;
  const x = #`dummy`.get(0);
  return #`{ op: ${x.fromString(op.val())} }`;
}

foo +=;

The above fails with Error: [assertion error]: all tokens must have line info.

Just doing #{ op: null } works as well as #${x.fromString(op.val())} } so it's a weird combination of the two.

Assignee
Assign to
Time tracking