rename errors.js to errors-tmp.js

pull/11294/head
Rich Harris 2 years ago
parent 05ac8f4322
commit 6671dd68f0

@ -1,6 +1,6 @@
import { getLocator } from 'locate-character';
import { walk as zimmerframe_walk } from 'zimmerframe';
import { CompileError } from './errors.js';
import { CompileError } from './errors-tmp.js';
import { convert } from './legacy.js';
import { parse as parse_acorn } from './phases/1-parse/acorn.js';
import { parse as _parse } from './phases/1-parse/index.js';
@ -157,6 +157,6 @@ export function walk() {
);
}
export { CompileError } from './errors.js';
export { CompileError } from './errors-tmp.js';
export { VERSION } from '../version.js';

@ -4,7 +4,7 @@ import fragment from './state/fragment.js';
import { regex_whitespace } from '../patterns.js';
import { reserved } from './utils/names.js';
import full_char_code_at from './utils/full_char_code_at.js';
import { error } from '../../errors.js';
import { error } from '../../errors-tmp.js';
import { create_fragment } from './utils/create.js';
import read_options from './read/options.js';
import { getLocator } from 'locate-character';

@ -9,7 +9,7 @@ import {
} from '../utils/bracket.js';
import { parse_expression_at } from '../acorn.js';
import { regex_not_newline_characters } from '../../patterns.js';
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
/**
* @param {import('../index.js').Parser} parser

@ -1,6 +1,6 @@
import { parse_expression_at } from '../acorn.js';
import { regex_whitespace } from '../../patterns.js';
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
/**
* @param {import('../index.js').Parser} parser

@ -1,5 +1,5 @@
import { namespace_svg } from '../../../../constants.js';
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
const regex_valid_tag_name = /^[a-zA-Z][a-zA-Z0-9]*-[a-zA-Z0-9-]+$/;

@ -1,6 +1,6 @@
import * as acorn from '../acorn.js';
import { regex_not_newline_characters } from '../../patterns.js';
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
const regex_closing_script_tag = /<\/script\s*>/;
const regex_starts_with_closing_script_tag = /^<\/script\s*>/;

@ -1,4 +1,4 @@
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
const REGEX_MATCHER = /^[~^$*|]?=/;
const REGEX_CLOSING_BRACKET = /[\s\]]/;

@ -5,7 +5,7 @@ import read_expression from '../read/expression.js';
import { read_script } from '../read/script.js';
import read_style from '../read/style.js';
import { closing_tag_omitted, decode_character_references } from '../utils/html.js';
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
import { create_fragment } from '../utils/create.js';
import { create_attribute } from '../../nodes.js';

@ -1,6 +1,6 @@
import read_pattern from '../read/context.js';
import read_expression from '../read/expression.js';
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
import { create_fragment } from '../utils/create.js';
import { walk } from 'zimmerframe';

@ -1,5 +1,5 @@
import { walk } from 'zimmerframe';
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
import { is_keyframes_node } from '../../css.js';
import { merge } from '../../visitors.js';

@ -1,6 +1,6 @@
import is_reference from 'is-reference';
import { walk } from 'zimmerframe';
import { error } from '../../errors.js';
import { error } from '../../errors-tmp.js';
import {
extract_identifiers,
extract_all_identifiers_from_expression,

@ -3,7 +3,7 @@ import {
interactive_elements,
is_tag_valid_with_parent
} from '../../../constants.js';
import { error } from '../../errors.js';
import { error } from '../../errors-tmp.js';
import {
extract_identifiers,
get_parent,

@ -1,5 +1,5 @@
import { walk } from 'zimmerframe';
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
import * as b from '../../../utils/builders.js';
import { set_scope } from '../../scope.js';
import { template_visitors } from './visitors/template.js';

@ -5,7 +5,7 @@ import {
is_simple_expression,
object
} from '../../../utils/ast.js';
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
import {
PROPS_IS_LAZY_INITIAL,
PROPS_IS_IMMUTABLE,

@ -16,7 +16,7 @@ import {
import { DOMProperties, PassiveEvents, VoidElements } from '../../../constants.js';
import { is_custom_element_node, is_element_node } from '../../../nodes.js';
import * as b from '../../../../utils/builders.js';
import { error } from '../../../../errors.js';
import { error } from '../../../../errors-tmp.js';
import {
with_loc,
function_visitor,

@ -22,7 +22,7 @@ import {
transform_inspect_rune
} from '../utils.js';
import { create_attribute, is_custom_element_node, is_element_node } from '../../nodes.js';
import { error } from '../../../errors.js';
import { error } from '../../../errors-tmp.js';
import { binding_properties } from '../../bindings.js';
import { regex_starts_with_newline, regex_whitespaces_strict } from '../../patterns.js';
import {

@ -2,7 +2,7 @@ import is_reference from 'is-reference';
import { walk } from 'zimmerframe';
import { is_element_node } from './nodes.js';
import * as b from '../utils/builders.js';
import { error } from '../errors.js';
import { error } from '../errors-tmp.js';
import { extract_identifiers, extract_identifiers_from_destructuring } from '../utils/ast.js';
import { JsKeywords, Runes } from './constants.js';

@ -1,4 +1,4 @@
import { error } from '../errors.js';
import { error } from '../errors-tmp.js';
/**
* @template T

@ -1,4 +1,4 @@
import { error } from './errors.js';
import { error } from './errors-tmp.js';
/**
* @template [Input=any]

Loading…
Cancel
Save