Community
Participate
Working Groups
Title pretty much says it all - we should augment CSSlint (its backing parser) to produce an AST we can use to ask questions of - to help us find the context we want to propose things for. We already have a reliable token stream we could use, but it would be much easier to have the AST computed once and walk it rather than reverse build AST node(s) on the fly to compute assist contexts (using only the token stream).
I committed the first part of the fix + tests: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=a16aa119f3741ca70128cc2c2b1131b5fff273cf The AST is available as the 'ast' property on the CSSLint result. In its current state it is not tolerant / recoverable.
Here is a visitor for the AST, and the hooks to check the AST for node context: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=0465926fc303458282a67cc8ecb630268232e7e9 There are still a few missing nodes in the AST.
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg04002.html