@marko/compiler
Advanced tools
Comparing version 5.39.1 to 5.39.2
@@ -249,10 +249,6 @@ import type { Config, types as t } from "@marko/compiler"; | ||
str: string, | ||
sourceStart?: null | number, | ||
sourceEnd?: null | number, | ||
sourceOffset?: null | number, | ||
): T; | ||
export function parseStatements<T extends t.Statement[]>( | ||
file: t.BabelFile, | ||
str: string, | ||
sourceStart: number, | ||
sourceEnd: number, | ||
sourceOffset?: number, | ||
): T; | ||
@@ -262,10 +258,6 @@ export function parseExpression<T extends t.Expression>( | ||
str: string, | ||
sourceStart?: null | number, | ||
sourceEnd?: null | number, | ||
sourceOffset?: null | number, | ||
): T; | ||
export function parseExpression<T extends t.Expression>( | ||
file: t.BabelFile, | ||
str: string, | ||
sourceStart: number, | ||
sourceEnd: number, | ||
sourceOffset?: number, | ||
): T; | ||
@@ -275,9 +267,5 @@ export function parseParams( | ||
str: string, | ||
sourceStart?: null | number, | ||
sourceEnd?: null | number, | ||
): t.Function["params"]; | ||
export function parseParams( | ||
file: t.BabelFile, | ||
str: string, | ||
sourceStart: number, | ||
sourceEnd: number, | ||
): t.Function["params"]; | ||
@@ -287,9 +275,5 @@ export function parseArgs( | ||
str: string, | ||
sourceStart?: null | number, | ||
sourceEnd?: null | number, | ||
): t.CallExpression["arguments"]; | ||
export function parseArgs( | ||
file: t.BabelFile, | ||
str: string, | ||
sourceStart: number, | ||
sourceEnd: number, | ||
): t.CallExpression["arguments"]; | ||
@@ -299,9 +283,5 @@ export function parseVar( | ||
str: string, | ||
sourceStart?: null | number, | ||
sourceEnd?: null | number, | ||
): t.VariableDeclarator["id"]; | ||
export function parseVar( | ||
file: t.BabelFile, | ||
str: string, | ||
sourceStart: number, | ||
sourceEnd: number, | ||
): t.VariableDeclarator["id"]; | ||
@@ -311,9 +291,5 @@ export function parseTemplateLiteral( | ||
str: string, | ||
sourceStart?: null | number, | ||
sourceEnd?: null | number, | ||
): t.TemplateLiteral; | ||
export function parseTemplateLiteral( | ||
file: t.BabelFile, | ||
str: string, | ||
sourceStart: number, | ||
sourceEnd: number, | ||
): t.TemplateLiteral; | ||
@@ -320,0 +296,0 @@ export function resolveRelativePath(file: t.BabelFile, request: string): string; |
@@ -78,2 +78,9 @@ "use strict";exports.__esModule = true;exports.getEnd = getEnd;exports.getLoc = getLoc;exports.getLocRange = getLocRange;exports.getStart = getStart;exports.withLoc = withLoc;const LINE_INDEX_KEY = Symbol(); | ||
function findLoc(lineIndexes, startLine, index) { | ||
if (index <= 0) { | ||
return { | ||
line: 1, | ||
column: 0 | ||
}; | ||
} | ||
const endLine = lineIndexes.length - 1; | ||
@@ -80,0 +87,0 @@ let max = endLine; |
{ | ||
"name": "@marko/compiler", | ||
"version": "5.39.1", | ||
"version": "5.39.2", | ||
"description": "Marko template to JS compiler.", | ||
@@ -89,3 +89,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"marko": "^5.37.1" | ||
"marko": "^5.37.2" | ||
}, | ||
@@ -92,0 +92,0 @@ "publishConfig": { |
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
519919
12472