Skip to content

Commit

Permalink
fix: imports should explicitly add the extension of the imported file
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan MASSUCHETTI <jonathan.massuchetti@dappit.fr>
  • Loading branch information
JesusTheHun committed May 1, 2024
1 parent bf00759 commit 40bb02c
Show file tree
Hide file tree
Showing 52 changed files with 165 additions and 165 deletions.
4 changes: 2 additions & 2 deletions runtime/JavaScript/src/antlr4/BufferedTokenStream.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TokenStream } from './TokenStream';
import { Lexer } from "./Lexer";
import { TokenStream } from './TokenStream.js';
import { Lexer } from "./Lexer.js";

export declare class BufferedTokenStream extends TokenStream {

Expand Down
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/CharStreams.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CharStream} from "./CharStream";
import {CharStream} from './CharStream.js';

export declare class CharStreams {
static fromString(data: string, decodeToUnicodeCodePoints?: boolean): CharStream;
Expand Down
6 changes: 3 additions & 3 deletions runtime/JavaScript/src/antlr4/CommonToken.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Token } from "./Token";
import {InputStream} from "./InputStream";
import {TokenSource} from "./TokenSource";
import { Token } from './Token.js';
import {InputStream} from './InputStream.js';
import {TokenSource} from './TokenSource.js';

export declare class CommonToken extends Token {
constructor(source: [ TokenSource, InputStream ], type: number, channel: number, start: number, stop: number);
Expand Down
6 changes: 3 additions & 3 deletions runtime/JavaScript/src/antlr4/CommonTokenStream.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Lexer} from "./Lexer";
import {BufferedTokenStream} from "./BufferedTokenStream";
import {Token} from "./Token";
import {Lexer} from './Lexer.js';
import {BufferedTokenStream} from './BufferedTokenStream.js';
import {Token} from './Token.js';

export declare class CommonTokenStream extends BufferedTokenStream {
// properties
Expand Down
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/FileStream.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CharStream} from "./CharStream";
import {CharStream} from './CharStream.js';

export declare class FileStream extends CharStream {

Expand Down
8 changes: 4 additions & 4 deletions runtime/JavaScript/src/antlr4/Lexer.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Recognizer} from "./Recognizer";
import {LexerATNSimulator} from "./atn";
import {CharStream} from "./CharStream";
import {Token} from "./Token";
import {Recognizer} from './Recognizer.js';
import {LexerATNSimulator} from './atn/index.js';
import {CharStream} from './CharStream.js';
import {Token} from './Token.js';

export declare class Lexer extends Recognizer<number> {

Expand Down
18 changes: 9 additions & 9 deletions runtime/JavaScript/src/antlr4/Parser.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {TokenStream} from "./TokenStream";
import {Recognizer} from "./Recognizer";
import {ErrorStrategy, RecognitionException} from "./error";
import {IntervalSet} from "./misc";
import {ParserATNSimulator} from "./atn";
import {Token} from "./Token";
import {ParserRuleContext} from "./context";
import {Printer} from "./utils";
import {ParseTreeListener} from "./tree";
import {TokenStream} from "./TokenStream.js";
import {Recognizer} from "./Recognizer.js";
import {ErrorStrategy, RecognitionException} from "./error/index.js";
import {IntervalSet} from "./misc/index.js";
import {ParserATNSimulator} from "./atn/index.js";
import {Token} from "./Token.js";
import {ParserRuleContext} from "./context/index.js";
import {Printer} from "./utils/index.js";
import {ParseTreeListener} from "./tree/index.js";

export declare class Parser extends Recognizer<Token> {

Expand Down
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/Recognizer.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ErrorListener} from "./error";
import {ErrorListener} from './error/index.js';

export declare class Recognizer<TSymbol> {

Expand Down
4 changes: 2 additions & 2 deletions runtime/JavaScript/src/antlr4/Token.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TokenSource } from "./TokenSource";
import { CharStream } from "./CharStream";
import { TokenSource } from './TokenSource.js';
import { CharStream } from './CharStream.js';

export declare class Token {

Expand Down
4 changes: 2 additions & 2 deletions runtime/JavaScript/src/antlr4/TokenStream.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Interval} from "./misc";
import {Token} from "./Token";
import {Interval} from './misc/index.js';
import {Token} from './Token.js';

export declare class TokenStream {

Expand Down
6 changes: 3 additions & 3 deletions runtime/JavaScript/src/antlr4/TokenStreamRewriter.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommonTokenStream } from "./CommonTokenStream";
import { Token } from "./Token";
import { Interval } from "./misc/Interval";
import { CommonTokenStream } from './CommonTokenStream.js';
import { Token } from './Token.js';
import { Interval } from './misc/Interval.js';

type Rewrites = Array<RewriteOperation | undefined>;
type Text = unknown;
Expand Down
6 changes: 3 additions & 3 deletions runtime/JavaScript/src/antlr4/atn/ATN.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IntervalSet} from "../misc";
import {RuleContext} from "../context";
import {ATNState, DecisionState, RuleStartState, RuleStopState} from "../state";
import {IntervalSet} from "../misc/index.js";
import {RuleContext} from "../context/index.js";
import {ATNState, DecisionState, RuleStartState, RuleStopState} from "../state/index.js";

export declare class ATN {

Expand Down
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/atn/ATNConfig.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ATNState } from "../state";
import { ATNState } from '../state/index.js';

export declare class ATNConfig {
state: ATNState;
Expand Down
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/atn/ATNConfigSet.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ATNConfig} from "./ATNConfig";
import {ATNConfig} from './ATNConfig.js';

export declare class ATNConfigSet {
configs: ATNConfig[];
Expand Down
4 changes: 2 additions & 2 deletions runtime/JavaScript/src/antlr4/atn/ATNDeserializer.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ATNDeserializationOptions} from "./ATNDeserializationOptions";
import {ATN} from "./ATN";
import {ATNDeserializationOptions} from './ATNDeserializationOptions.js';
import {ATN} from './ATN.js';

export declare class ATNDeserializer {
constructor(options?: ATNDeserializationOptions);
Expand Down
12 changes: 6 additions & 6 deletions runtime/JavaScript/src/antlr4/atn/LexerATNSimulator.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {Recognizer} from "../Recognizer";
import {ATNSimulator} from "./ATNSimulator";
import {ATN} from "./ATN";
import {PredictionContextCache} from "./PredictionContextCache";
import {DFA} from "../dfa";
import {CharStream} from "../CharStream";
import {Recognizer} from '../Recognizer.js';
import {ATNSimulator} from './ATNSimulator.js';
import {ATN} from './ATN.js';
import {PredictionContextCache} from './PredictionContextCache.js';
import {DFA} from '../dfa/index.js';
import {CharStream} from '../CharStream.js';

export declare class LexerATNSimulator implements ATNSimulator {

Expand Down
18 changes: 9 additions & 9 deletions runtime/JavaScript/src/antlr4/atn/ParserATNSimulator.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {ATNSimulator} from "./ATNSimulator";
import {ParserRuleContext} from "../context";
import {TokenStream} from "../TokenStream";
import {Recognizer} from "../Recognizer";
import {ATN} from "./ATN";
import {PredictionContextCache} from "./PredictionContextCache";
import {DFA} from "../dfa";
import {PredictionMode} from "./PredictionMode";
import {Token} from "../Token";
import {ATNSimulator} from './ATNSimulator.js';
import {ParserRuleContext} from '../context/index.js';
import {TokenStream} from '../TokenStream.js';
import {Recognizer} from '../Recognizer.js';
import {ATN} from './ATN.js';
import {PredictionContextCache} from './PredictionContextCache.js';
import {DFA} from '../dfa/index.js';
import {PredictionMode} from './PredictionMode.js';
import {Token} from '../Token.js';

export declare class ParserATNSimulator extends ATNSimulator {

Expand Down
16 changes: 8 additions & 8 deletions runtime/JavaScript/src/antlr4/atn/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export * from './ATN';
export * from './ATNConfig';
export * from './ATNConfigSet';
export * from './ATNDeserializer';
export * from './LexerATNSimulator';
export * from './ParserATNSimulator';
export * from './PredictionMode';
export * from './PredictionContextCache';
export * from './ATN.js';
export * from './ATNConfig.js';
export * from './ATNConfigSet.js';
export * from './ATNDeserializer.js';
export * from './LexerATNSimulator.js';
export * from './ParserATNSimulator.js';
export * from './PredictionMode.js';
export * from './PredictionContextCache.js';

10 changes: 5 additions & 5 deletions runtime/JavaScript/src/antlr4/context/ParserRuleContext.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {RuleContext} from "./RuleContext";
import {ParseTree, TerminalNode} from "../tree";
import {RecognitionException} from "../error";
import {Token} from "../Token";
import {Parser} from "../Parser";
import {RuleContext} from './RuleContext.js';
import {ParseTree, TerminalNode} from '../tree/index.js';
import {RecognitionException} from '../error/index.js';
import {Token} from '../Token.js';
import {Parser} from '../Parser.js';

export declare class ParserRuleContext extends RuleContext {
start: Token;
Expand Down
4 changes: 2 additions & 2 deletions runtime/JavaScript/src/antlr4/context/RuleContext.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {RuleNode} from "../tree";
import {Parser} from "../Parser";
import {RuleNode} from '../tree/index.js';
import {Parser} from '../Parser.js';

export declare class RuleContext extends RuleNode {
parentCtx: RuleContext | undefined;
Expand Down
4 changes: 2 additions & 2 deletions runtime/JavaScript/src/antlr4/context/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './RuleContext';
export * from './ParserRuleContext';
export * from './RuleContext.js';
export * from './ParserRuleContext.js';

2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/dfa/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './DFA';
export * from './DFA.js';

2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/error/BailErrorStrategy.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {DefaultErrorStrategy} from "./DefaultErrorStrategy";
import {DefaultErrorStrategy} from './DefaultErrorStrategy.js';

export declare class BailErrorStrategy extends DefaultErrorStrategy {

Expand Down
8 changes: 4 additions & 4 deletions runtime/JavaScript/src/antlr4/error/DefaultErrorStrategy.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ErrorStrategy} from "./ErrorStrategy";
import {RecognitionException} from "./RecognitionException";
import {Parser} from "../Parser";
import {Token} from "../Token";
import {ErrorStrategy} from './ErrorStrategy.js';
import {RecognitionException} from './RecognitionException.js';
import {Parser} from '../Parser.js';
import {Token} from '../Token.js';

export declare class DefaultErrorStrategy implements ErrorStrategy {
recover(recognizer: Parser, e: RecognitionException): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ErrorListener} from "./ErrorListener";
import {Recognizer} from "../Recognizer";
import {RecognitionException} from "./RecognitionException";
import {ErrorListener} from './ErrorListener.js';
import {Recognizer} from '../Recognizer.js';
import {RecognitionException} from './RecognitionException.js';

export declare class DiagnosticErrorListener<TSymbol> implements ErrorListener<TSymbol> {

Expand Down
4 changes: 2 additions & 2 deletions runtime/JavaScript/src/antlr4/error/ErrorListener.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Recognizer} from "../Recognizer";
import {RecognitionException} from "./RecognitionException";
import {Recognizer} from '../Recognizer.js';
import {RecognitionException} from './RecognitionException.js';

export declare class ErrorListener<TSymbol> {
syntaxError(recognizer: Recognizer<TSymbol>, offendingSymbol: TSymbol, line: number, column: number, msg: string, e: RecognitionException | undefined): void;
Expand Down
6 changes: 3 additions & 3 deletions runtime/JavaScript/src/antlr4/error/ErrorStrategy.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {RecognitionException} from "./RecognitionException";
import {Parser} from "../Parser";
import {Token} from "../Token";
import {RecognitionException} from './RecognitionException.js';
import {Parser} from '../Parser.js';
import {Token} from '../Token.js';

export declare class ErrorStrategy {
reset(recognizer: Parser): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {RecognitionException} from "./RecognitionException";
import {Parser} from "../Parser";
import {RecognitionException} from './RecognitionException.js';
import {Parser} from '../Parser.js';

export declare class FailedPredicateException extends RecognitionException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {RecognitionException} from "./RecognitionException";
import {Parser} from "../Parser";
import {RecognitionException} from './RecognitionException.js';
import {Parser} from '../Parser.js';

export declare class InputMismatchException extends RecognitionException {
constructor(recognizer: Parser);
Expand Down
8 changes: 4 additions & 4 deletions runtime/JavaScript/src/antlr4/error/NoViableAltException.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ATNConfigSet} from "../atn";
import {Recognizer} from "../Recognizer";
import { Token } from "../Token";
import {RecognitionException} from "./RecognitionException";
import {ATNConfigSet} from '../atn/index.js';
import {Recognizer} from '../Recognizer.js';
import { Token } from '../Token.js';
import {RecognitionException} from './RecognitionException.js';

export declare class NoViableAltException extends RecognitionException {

Expand Down
10 changes: 5 additions & 5 deletions runtime/JavaScript/src/antlr4/error/RecognitionException.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {ParserRuleContext, RuleContext} from "../context";
import {TokenStream} from "../TokenStream";
import {Recognizer} from "../Recognizer";
import {CharStream} from "../CharStream";
import {Token} from "../Token";
import {ParserRuleContext, RuleContext} from '../context/index.js';
import {TokenStream} from '../TokenStream.js';
import {Recognizer} from '../Recognizer.js';
import {CharStream} from '../CharStream.js';
import {Token} from '../Token.js';

export interface ExceptionParams {
message: string;
Expand Down
18 changes: 9 additions & 9 deletions runtime/JavaScript/src/antlr4/error/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export * from './RecognitionException';
export * from './NoViableAltException';
export * from './FailedPredicateException';
export * from './InputMismatchException';
export * from './ErrorStrategy';
export * from './BailErrorStrategy';
export * from './DefaultErrorStrategy';
export * from './ErrorListener';
export * from './DiagnosticErrorListener';
export * from './RecognitionException.js';
export * from './NoViableAltException.js';
export * from './FailedPredicateException.js';
export * from './InputMismatchException.js';
export * from './ErrorStrategy.js';
export * from './BailErrorStrategy.js';
export * from './DefaultErrorStrategy.js';
export * from './ErrorListener.js';
export * from './DiagnosticErrorListener.js';
21 changes: 0 additions & 21 deletions runtime/JavaScript/src/antlr4/index.d.cts

This file was deleted.

21 changes: 21 additions & 0 deletions runtime/JavaScript/src/antlr4/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export * from "./InputStream.js";
export * from "./FileStream.js";
export * from "./CharStream.js";
export * from "./CharStreams.js";
export * from "./TokenStream.js";
export * from "./BufferedTokenStream.js";
export * from "./CommonToken.js";
export * from "./CommonTokenStream.js";
export * from "./Recognizer.js";
export * from "./Lexer.js";
export * from "./Parser.js";
export * from './Token.js';
export * from "./atn/index.js";
export * from "./dfa/index.js";
export * from "./context/index.js";
export * from './misc/index.js';
export * from './tree/index.js';
export * from './state/index.js';
export * from './error/index.js';
export * from './utils/index.js';
export * from './TokenStreamRewriter.js';
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/misc/Interval.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Token} from "../Token";
import {Token} from '../Token.js';

export declare class Interval {

Expand Down
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/misc/IntervalSet.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Interval} from "./Interval";
import {Interval} from './Interval.js';

export declare class IntervalSet {

Expand Down
4 changes: 2 additions & 2 deletions runtime/JavaScript/src/antlr4/misc/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './Interval'
export * from './IntervalSet';
export * from './Interval.js';
export * from './IntervalSet.js';

2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/state/ATNState.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ATN} from "../atn";
import {ATN} from '../atn/index.js';

export declare class ATNState {
atn: ATN;
Expand Down
Loading

0 comments on commit 40bb02c

Please sign in to comment.