Comparing version 0.0.54 to 0.0.55
@@ -133,3 +133,2 @@ import { Token } from './ast/token'; | ||
}; | ||
lastChar: number; | ||
} | ||
@@ -136,0 +135,0 @@ export declare function isValidDirective(state: ParserState): boolean; |
@@ -6,4 +6,4 @@ import { ParserState, Context } from '../common'; | ||
export declare function scanTemplateSpan(state: ParserState, context: Context): Token; | ||
export declare function parseTemplateEscape(state: ParserState, context: Context, source: string, cp: number): string | number; | ||
export declare function parseTemplateEscape(state: ParserState, context: Context, source: string, isTagged: boolean, cp: number): string | number; | ||
export declare function scanTemplateTail(state: ParserState, context: Context): any; | ||
//# sourceMappingURL=template.d.ts.map |
{ | ||
"name": "escaya", | ||
"version": "0.0.54", | ||
"version": "0.0.55", | ||
"description": "A blazing fast 100% spec compliant, self-hosted incremental javascript parser written in Typescript", | ||
@@ -5,0 +5,0 @@ "main": "dist/escaya.umd.min.js", |
@@ -62,6 +62,3 @@ <h1 align="center">Escaya</h1> | ||
Comments can be extracted with either `extractCommentsScript` or `extractCommentsModule` and let you extract leading and trailing | ||
comments from a given position. It takes the source code you are parsing as it's first argument. The second argument is the position | ||
within the source code you want to extract the comments from, and the last argument is if you want to extract leading or | ||
trailing comments. | ||
`Escaya` lets you extract leading and trailing comments from a given position with either `extractCommentsScript` or `extractCommentsModule`. It takes the source code as it's first argument, the position within the source code where you want to extract the comments from as it's second argument. The last argument let's you decide if you want to extract leading or trailing comments - `collectCommentsScript(source, start, boolean);` | ||
@@ -71,5 +68,5 @@ Here is an example on how to get all trailing comments belonging to `bar` | ||
```ts | ||
import { collectCommentsScript } from './escaya'; | ||
import { extractCommentsScript } from './escaya'; | ||
collectCommentsScript('/* MultieLine */ bar /* trailing */', 20, true); | ||
extractCommentsScript('/* MultieLine */ bar /* trailing */', 20, true); | ||
@@ -76,0 +73,0 @@ ``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
458990
3678
176