-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* update antlr4 * fix grammar * generate grammar * update antlr4 (amend) * update gitignore * add test * remove complete jar due to maven problem * adjust gitignore * adjust due to antlr-runtime upgrade
- Loading branch information
mmews-n4
authored
May 22, 2024
1 parent
0675e08
commit 7f27b50
Showing
17 changed files
with
3,122 additions
and
2,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
plugins/org.eclipse.n4js.dts/grammar/.antlr/TypeScriptLexer.interp
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
plugins/org.eclipse.n4js.dts/grammar/.antlr/TypeScriptParser.interp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
* | ||
!.gitignore | ||
!antlr4-runtime-4.7.2.jar | ||
!antlr-runtime-4.13.1.jar | ||
#!antlr-4.13.1-complete.jar comment out due to conflict in maven build |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,725 changes: 1,055 additions & 670 deletions
1,725
plugins/org.eclipse.n4js.dts/src-gen-antlr/org/eclipse/n4js/dts/TypeScriptLexer.java
Large diffs are not rendered by default.
Oops, something went wrong.
3,341 changes: 2,009 additions & 1,332 deletions
3,341
plugins/org.eclipse.n4js.dts/src-gen-antlr/org/eclipse/n4js/dts/TypeScriptParser.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ins/org.eclipse.n4js.dts/src-gen-antlr/org/eclipse/n4js/dts/TypeScriptParserListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
plugins/org.eclipse.n4js.dts/src-gen-antlr/org/eclipse/n4js/dts/TypeScriptParserVisitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
tests/org.eclipse.n4js.xpect.tests/xt-tests/dts-import/user-tests/GH-2627.n4js.xt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) 2022 NumberFour AG. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* NumberFour AG - Initial API and implementation | ||
*/ | ||
|
||
/* XPECT_SETUP org.eclipse.n4js.xpect.tests.N4jsXtTest | ||
File "tslib.d.ts" { | ||
export const uniqueSymbol: unique symbol; | ||
export type PropertyName = string | number | symbol; | ||
export interface LoDashStaticX { | ||
has<T, K extends PropertyName>(object: T, path: K): object is T & { [P in K]: P extends keyof T ? T[P] : Record<string, unknown> extends T ? T[keyof T] : unknown} & {[Symbol.uniqueSymbol]: unknown}; | ||
has<T>(object: T, path: string): boolean; | ||
} | ||
export const aa : {[uniqueSymbol]: unknown}; | ||
export interface Other {} | ||
} | ||
END_SETUP | ||
*/ | ||
|
||
|
||
// XPECT noerrors --> | ||
import * as tslib from "tslib" | ||
|
||
|
||
tslib.uniqueSymbol; | ||
|
||
let x : tslib.LoDashStaticX; | ||
x.has(); | ||
|
||
|
||
let y : tslib.Other; | ||
|
||
let z = tslib.aa; |