_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
TypeScript/tests/cases/conformance/es6/templates/templateStringInArray.ts_3_36 | r x = [1, 2, `abc${ 123 }def`]; | {
"end_byte": 36,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInArray.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInIndexExpressionES6.ts_3_37 | @target: ES6
`abc${0}abc`[`0`]; | {
"end_byte": 37,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInIndexExpressionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInModuleNameES6.ts_3_70 | @target: ES6
declare module `M1` {
}
declare module `M${2}` {
} | {
"end_byte": 70,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInModuleNameES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringMultiline3.ts_5_31 | newlines are <CR>
`
\
` | {
"end_byte": 31,
"start_byte": 5,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringMultiline3.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithOpenCommentInStringPortionES6.ts_3_78 | @target: ES6
` /**head ${ 10 } // still middle ${ 20 } /* still tail ` | {
"end_byte": 78,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithOpenCommentInStringPortionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInParenthesesES6.ts_3_42 | @target: ES6
var x = (`abc${0}abc`); | {
"end_byte": 42,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInParenthesesES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringBinaryOperationsES6.ts_3_1370 | @target: ES6
var a = 1 + `${ 3 }`;
var b = 1 + `2${ 3 }`;
var c = 1 + `${ 3 }4`;
var d = 1 + `2${ 3 }4`;
var e = `${ 3 }` + 5;
var f = `2${ 3 }` + 5;
var g = `${ 3 }4` + 5;
var h = `2${ 3 }4` + 5;
var i = 1 + `${ 3 }` + 5;
var j = 1 + `2${ 3 }` + 5;
var k = 1 + `${ 3 }4` + 5;
var l = 1 + `2${ 3 }4` + 5;
var a2 = 1 + ... | {
"end_byte": 1370,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringBinaryOperationsES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInMultiplication.ts_3_30 | r x = 1 * `abc${ 1 }def`; | {
"end_byte": 30,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInMultiplication.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedConditionalES6.ts_3_59 | @target: ES6
var x = `abc${ true ? false : " " }def`; | {
"end_byte": 59,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedConditionalES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolution1_ES6.ts_3_843 | @target: es6
function foo(strs: TemplateStringsArray): number;
function foo(strs: TemplateStringsArray, x: number): string;
function foo(strs: TemplateStringsArray, x: number, y: number): boolean;
function foo(strs: TemplateStringsArray, x: number, y: string): {};
function foo(...stuff: any[]): any {
return undefin... | {
"end_byte": 843,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolution1_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInUnaryPlusES6.ts_3_45 | @target: ES6
var x = +`abc${ 123 }def`; | {
"end_byte": 45,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInUnaryPlusES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedTemplateString.ts_3_77 | r x = `123${ `456 ${ " | " } 654` }321 123${ `456 ${ " | " } 654` }321`; | {
"end_byte": 77,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedTemplateString.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedArrowFunction.ts_3_31 | r x = `abc${ x => x }def`; | {
"end_byte": 31,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedArrowFunction.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInPropertyNameES6_2.ts_3_67 | @target: ES6
var x = {
`abc${ 123 }def${ 456 }ghi`: 321
} | {
"end_byte": 67,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInPropertyNameES6_2.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInFunctionExpression.ts_0_71 | var x = function y() {
`abc${ 0 }def`
return `abc${ 0 }def`;
}; | {
"end_byte": 71,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInFunctionExpression.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.ts_5_47 | {function (x: number) { x = "bad"; } }`; | {
"end_byte": 47,
"start_byte": 5,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringMultiline2.ts_5_31 | newlines are <LF>
`
\
` | {
"end_byte": 31,
"start_byte": 5,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringMultiline2.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagNamedDeclare.ts_5_77 | nction declare(x: any, ...ys: any[]) {
}
declare `Hello ${0} world!`; | {
"end_byte": 77,
"start_byte": 5,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagNamedDeclare.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedMultiplicationES6.ts_3_46 | @target: ES6
var x = `abc${ 7 * 6 }def`; | {
"end_byte": 46,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedMultiplicationES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedInOperator.ts_3_53 | r x = `abc${ "hi" in { hi: 10, hello: 20} }def`; | {
"end_byte": 53,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedInOperator.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedDivisionES6.ts_3_46 | @target: ES6
var x = `abc${ 1 / 1 }def`; | {
"end_byte": 46,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedDivisionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedModuloES6.ts_3_46 | @target: ES6
var x = `abc${ 1 % 1 }def`; | {
"end_byte": 46,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedModuloES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts_0_888 | // @target: esnext
// @strict: true
// @useDefineForClassFields: false
export interface SomethingTaggable {
<T>(t: TemplateStringsArray, ...args: T[]): SomethingNewable;
}
export interface SomethingNewable {
new <T>(...args: T[]): any;
}
declare const tag: SomethingTaggable;
const a = new tag `${100} ${200}... | {
"end_byte": 888,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringTermination5_ES6.ts_3_27 | @target: ES6
`\\\\\\` | {
"end_byte": 27,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringTermination5_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringPlainCharactersThatArePartsOfEscapes01_ES6.ts_3_101 | @target: es6
`0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n` | {
"end_byte": 101,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringPlainCharactersThatArePartsOfEscapes01_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedUnaryPlusES6.ts_3_50 | @target: ES6
var x = `abc${ +Infinity }def`; | {
"end_byte": 50,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedUnaryPlusES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolution3_ES6.ts_3_2762 | @target: es6
// Ambiguous call picks the first overload in declaration order
function fn1(strs: TemplateStringsArray, s: string): string;
function fn1(strs: TemplateStringsArray, n: number): number;
function fn1() { return null; }
var s: string = fn1 `${ undefined }`;
// No candidate overloads found
fn1 `${ {} }`; //... | {
"end_byte": 2762,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolution3_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInConditional.ts_3_66 | r x = `abc${ " " }def` ? `abc${ " " }def` : `abc${ " " }def`; | {
"end_byte": 66,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInConditional.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringMultiline2_ES6.ts_3_45 | @target: es6
// newlines are <LF>
`
\
` | {
"end_byte": 45,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringMultiline2_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringTermination3.ts_4_8 | `` | {
"end_byte": 8,
"start_byte": 4,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringTermination3.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmptyLiteralPortions.ts_3_307 | r a = ``;
var b = `${ 0 }`;
var c = `1${ 0 }`;
var d = `${ 0 }2`;
var e = `1${ 0 }2`;
var f = `${ 0 }${ 0 }`;
var g = `1${ 0 }${ 0 }`;
var h = `${ 0 }2${ 0 }`;
var i = `1${ 0 }2${ 0 }`;
var j = `${ 0 }${ 0 }3`;
var k = `1${ 0 }${ 0 }3`;
var l = `${ 0 }2${ 0 }3`;
var m = `1${ 0 }2${ 0 }3`;
| {
"end_byte": 307,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmptyLiteralPortions.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedTypeOfOperator.ts_3_36 | r x = `abc${ typeof "hi" }def`; | {
"end_byte": 36,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedTypeOfOperator.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringBinaryOperationsInvalid.ts_3_2598 | r a = 1 - `${ 3 }`;
var b = 1 - `2${ 3 }`;
var c = 1 - `${ 3 }4`;
var d = 1 - `2${ 3 }4`;
var e = `${ 3 }` - 5;
var f = `2${ 3 }` - 5;
var g = `${ 3 }4` - 5;
var h = `2${ 3 }4` - 5;
var a2 = 1 * `${ 3 }`;
var b2 = 1 * `2${ 3 }`;
var c2 = 1 * `${ 3 }4`;
var d2 = 1 * `2${ 3 }4`;
var e2 = `${ 3 }` * 5;
var f2 = `2${ 3 }`... | {
"end_byte": 2598,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringBinaryOperationsInvalid.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.ts_5_118 | nction f(...x: any[]) {
}
f `0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n` | {
"end_byte": 118,
"start_byte": 5,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedAddition.ts_3_32 | r x = `abc${ 10 + 10 }def`; | {
"end_byte": 32,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedAddition.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInPropertyName2.ts_3_51 | r x = {
`abc${ 123 }def${ 456 }ghi`: 321
} | {
"end_byte": 51,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInPropertyName2.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInPropertyAssignmentES6.ts_3_65 | @target: ES6
var x = {
a: `abc${ 123 }def${ 456 }ghi`
} | {
"end_byte": 65,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInPropertyAssignmentES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInModuleName.ts_3_54 | clare module `M1` {
}
declare module `M${2}` {
} | {
"end_byte": 54,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInModuleName.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInPropertyNameES6_1.ts_3_43 | @target: ES6
var x = {
`a`: 321
} | {
"end_byte": 43,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInPropertyNameES6_1.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithOpenCommentInStringPortion.ts_3_62 | /**head ${ 10 } // still middle ${ 20 } /* still tail ` | {
"end_byte": 62,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithOpenCommentInStringPortion.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringTermination4.ts_4_10 | \\\` | {
"end_byte": 10,
"start_byte": 4,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringTermination4.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringMultiline1.ts_5_35 | newlines are <CR><LF>
`
\
` | {
"end_byte": 35,
"start_byte": 5,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringMultiline1.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInFunctionExpressionES6.ts_0_87 | // @target: ES6
var x = function y() {
`abc${ 0 }def`
return `abc${ 0 }def`;
}; | {
"end_byte": 87,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInFunctionExpressionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInIndexExpression.ts_3_21 | bc${0}abc`[`0`]; | {
"end_byte": 21,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInIndexExpression.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedMultiplication.ts_3_30 | r x = `abc${ 7 * 6 }def`; | {
"end_byte": 30,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedMultiplication.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInConditionalES6.ts_3_82 | @target: ES6
var x = `abc${ " " }def` ? `abc${ " " }def` : `abc${ " " }def`; | {
"end_byte": 82,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInConditionalES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated5_ES6.ts_3_26 | @target: ES6
`\\\\\` | {
"end_byte": 26,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringUnterminated5_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6.ts_3_336 | @target: es6
function f(...x: any[]) {
}
f `0${ " " }1${ " " }2${ " " }3${ " " }4${ " " }5${ " " }6${ " " }7${ " " }8${ " " }9${ " " }10${ " " }11${ " " }12${ " " }13${ " " }14${ " " }15${ " " }16${ " " }17${ " " }18${ " " }19${ " " }20${ " " }2028${ " " }2029${ " " }0085${ " " }t${ " " }v${ " " }f${ " " }b${ " " }... | {
"end_byte": 336,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInInOperatorES6.ts_3_63 | @target: ES6
var x = `${ "hi" }` in { hi: 10, hello: 20}; | {
"end_byte": 63,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInInOperatorES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments1.ts_0_983 | // @target: esnext
declare function f<T>(strs: TemplateStringsArray, ...callbacks: Array<(x: T) => any>): void;
interface Stuff {
x: number;
y: string;
z: boolean;
}
export const a = f<Stuff> `
hello
${stuff => stuff.x}
brave
${stuff => stuff.y}
world
${stuff => stuff.z}
`;
decla... | {
"end_byte": 983,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments1.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringBinaryOperationsES6Invalid.ts_3_2614 | @target: ES6
var a = 1 - `${ 3 }`;
var b = 1 - `2${ 3 }`;
var c = 1 - `${ 3 }4`;
var d = 1 - `2${ 3 }4`;
var e = `${ 3 }` - 5;
var f = `2${ 3 }` - 5;
var g = `${ 3 }4` - 5;
var h = `2${ 3 }4` - 5;
var a2 = 1 * `${ 3 }`;
var b2 = 1 * `2${ 3 }`;
var c2 = 1 * `${ 3 }4`;
var d2 = 1 * `2${ 3 }4`;
var e2 = `${ 3 }` * 5;
va... | {
"end_byte": 2614,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringBinaryOperationsES6Invalid.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInDivision.ts_3_30 | r x = `abc${ 1 }def` / 1; | {
"end_byte": 30,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInDivision.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringControlCharacterEscapes02_ES6.ts_3_44 | @target: es6
var x = `\x19\u0019 19`; | {
"end_byte": 44,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringControlCharacterEscapes02_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedNewOperator.ts_3_41 | r x = `abc${ new String("Hi") }def`; | {
"end_byte": 41,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedNewOperator.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithPropertyAccessES6.ts_3_47 | @target: ES6
`abc${0}abc`.indexOf(`abc`); | {
"end_byte": 47,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithPropertyAccessES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInTypeAssertionES6.ts_3_49 | @target: ES6
var x = <any>`abc${ 123 }def`; | {
"end_byte": 49,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInTypeAssertionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInTypeOf.ts_3_35 | r x = typeof `abc${ 123 }def`; | {
"end_byte": 35,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInTypeOf.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02.ts_5_289 | ${ " " }1${ " " }2${ " " }3${ " " }4${ " " }5${ " " }6${ " " }7${ " " }8${ " " }9${ " " }10${ " " }11${ " " }12${ " " }13${ " " }14${ " " }15${ " " }16${ " " }17${ " " }18${ " " }19${ " " }20${ " " }2028${ " " }2029${ " " }0085${ " " }t${ " " }v${ " " }f${ " " }b${ " " }r${ " " }n` | {
"end_byte": 289,
"start_byte": 5,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInPropertyName1.ts_3_27 | r x = {
`a`: 321
} | {
"end_byte": 27,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInPropertyName1.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedTypeAssertionOnAdditionES6.ts_3_55 | @target: ES6
var x = `abc${ <any>(10 + 10) }def`; | {
"end_byte": 55,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedTypeAssertionOnAdditionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsWithTypedTags.ts_3_482 | terface I {
(stringParts: TemplateStringsArray, ...rest: number[]): I;
g: I;
h: I;
member: I;
thisIsNotATag(x: string): void
[x: number]: I;
}
var f: I;
f `abc`
f `abc${1}def${2}ghi`;
f `abc`.member
f `abc${1}def${2}ghi`.member;
f `abc`["member"];
f `abc${1}def${2}ghi`["member"];
f `abc`... | {
"end_byte": 482,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsWithTypedTags.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWhitespaceEscapes1_ES6.ts_3_32 | @target: es6
`\t\n\v\f\r`; | {
"end_byte": 32,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWhitespaceEscapes1_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInObjectLiteralES6.ts_3_68 | @target: ES6
var x = {
a: `abc${ 123 }def`,
`b`: 321
} | {
"end_byte": 68,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInObjectLiteralES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedArrowFunctionES6.ts_3_47 | @target: ES6
var x = `abc${ x => x }def`; | {
"end_byte": 47,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedArrowFunctionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInParentheses.ts_3_26 | r x = (`abc${0}abc`); | {
"end_byte": 26,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInParentheses.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedObjectLiteral.ts_3_41 | r x = `abc${ { x: 10, y: 20 } }def`; | {
"end_byte": 41,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedObjectLiteral.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringTermination2_ES6.ts_3_23 | @target: ES6
`\\` | {
"end_byte": 23,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringTermination2_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedInstanceOf.ts_3_50 | r x = `abc${ "hello" instanceof String }def`; | {
"end_byte": 50,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedInstanceOf.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedInstanceOfES6.ts_3_66 | @target: ES6
var x = `abc${ "hello" instanceof String }def`; | {
"end_byte": 66,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedInstanceOfES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInNewExpressionES6.ts_3_73 | @target: ES6
new `abc${0}abc`(`hello ${0} world`, ` `, `1${2}3`); | {
"end_byte": 73,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInNewExpressionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringTermination5.ts_4_12 | \\\\\` | {
"end_byte": 12,
"start_byte": 4,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringTermination5.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedFunctionExpressionES6.ts_0_64 | // @target: ES6
var x = `abc${ function y() { return y; } }def`; | {
"end_byte": 64,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedFunctionExpressionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInTaggedTemplateES6.ts_3_94 | @target: ES6
`I AM THE ${ `${ `TAG` } ` } PORTION` `I ${ "AM" } THE TEMPLATE PORTION` | {
"end_byte": 94,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInTaggedTemplateES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInUnaryPlus.ts_3_29 | r x = +`abc${ 123 }def`; | {
"end_byte": 29,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInUnaryPlus.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.ts_3_306 | @target: ES6
interface I {
(strs: TemplateStringsArray, ...subs: number[]): I;
member: {
new (s: string): {
new (n: number): {
new (): boolean;
}
}
};
}
var f: I;
var x = new new new f `abc${ 0 }def`.member("hello")(42) === true;
| {
"end_byte": 306,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringMultiline1_ES6.ts_3_49 | @target: es6
// newlines are <CR><LF>
`
\
` | {
"end_byte": 49,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringMultiline1_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInCallExpressionES6.ts_3_69 | @target: ES6
`abc${0}abc`(`hello ${0} world`, ` `, `1${2}3`); | {
"end_byte": 69,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInCallExpressionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringPlainCharactersThatArePartsOfEscapes02_ES6.ts_3_304 | @target: es6
`0${ " " }1${ " " }2${ " " }3${ " " }4${ " " }5${ " " }6${ " " }7${ " " }8${ " " }9${ " " }10${ " " }11${ " " }12${ " " }13${ " " }14${ " " }15${ " " }16${ " " }17${ " " }18${ " " }19${ " " }20${ " " }2028${ " " }2029${ " " }0085${ " " }t${ " " }v${ " " }f${ " " }b${ " " }r${ " " }n` | {
"end_byte": 304,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringPlainCharactersThatArePartsOfEscapes02_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInPropertyAssignment.ts_3_49 | r x = {
a: `abc${ 123 }def${ 456 }ghi`
} | {
"end_byte": 49,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInPropertyAssignment.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInMultiplicationES6.ts_3_46 | @target: ES6
var x = 1 * `abc${ 1 }def`; | {
"end_byte": 46,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInMultiplicationES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringControlCharacterEscapes01.ts_5_38 | r x = `\0\x00\u0000 0 00 0000`; | {
"end_byte": 38,
"start_byte": 5,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringControlCharacterEscapes01.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagNamedDeclareES6.ts_3_91 | @target: es6
function declare(x: any, ...ys: any[]) {
}
declare `Hello ${0} world!`; | {
"end_byte": 91,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagNamedDeclareES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringControlCharacterEscapes04_ES6.ts_3_44 | @target: es6
var x = `\x20\u0020 20`; | {
"end_byte": 44,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringControlCharacterEscapes04_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInArrowFunction.ts_3_31 | r x = x => `abc${ x }def`; | {
"end_byte": 31,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInArrowFunction.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolution2.ts_4_438 | nction foo1(strs: TemplateStringsArray, x: number): string;
function foo1(strs: string[], x: number): number;
function foo1(...stuff: any[]): any {
return undefined;
}
var a = foo1 `${1}`;
var b = foo1([], 1);
function foo2(strs: string[], x: number): number;
function foo2(strs: TemplateStringsArray, x: number): ... | {
"end_byte": 438,
"start_byte": 4,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolution2.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedUnaryPlus.ts_3_34 | r x = `abc${ +Infinity }def`; | {
"end_byte": 34,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedUnaryPlus.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedAdditionES6.ts_3_48 | @target: ES6
var x = `abc${ 10 + 10 }def`; | {
"end_byte": 48,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedAdditionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedConditional.ts_3_43 | r x = `abc${ true ? false : " " }def`; | {
"end_byte": 43,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedConditional.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedArrayES6.ts_3_48 | @target: ES6
var x = `abc${ [1,2,3] }def`; | {
"end_byte": 48,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedArrayES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithBackslashEscapes01.ts_5_102 | r a = `hello\world`;
var b = `hello\\world`;
var c = `hello\\\world`;
var d = `hello\\\\world`; | {
"end_byte": 102,
"start_byte": 5,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithBackslashEscapes01.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInTypeAssertion.ts_3_33 | r x = <any>`abc${ 123 }def`; | {
"end_byte": 33,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInTypeAssertion.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated3_ES6.ts_3_22 | @target: ES6
`\\ | {
"end_byte": 22,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringUnterminated3_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInTaggedTemplate.ts_3_78 | AM THE ${ `${ `TAG` } ` } PORTION` `I ${ "AM" } THE TEMPLATE PORTION` | {
"end_byte": 78,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInTaggedTemplate.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedModulo.ts_3_30 | r x = `abc${ 1 % 1 }def`; | {
"end_byte": 30,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedModulo.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/taggedTemplateStringsTypeArgumentInference.ts_5_3910 | Generic tag with one parameter
function noParams<T>(n: T) { }
noParams ``;
// Generic tag with parameter which does not use type parameter
function noGenericParams<T>(n: TemplateStringsArray) { }
noGenericParams ``;
// Generic tag with multiple type parameters and only one used in parameter type annotation
function ... | {
"end_byte": 3910,
"start_byte": 5,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/taggedTemplateStringsTypeArgumentInference.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedFunctionExpression.ts_0_48 | var x = `abc${ function y() { return y; } }def`; | {
"end_byte": 48,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedFunctionExpression.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedTypeAssertionOnAddition.ts_3_39 | r x = `abc${ <any>(10 + 10) }def`; | {
"end_byte": 39,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedTypeAssertionOnAddition.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInEqualityChecksES6.ts_3_159 | @target: ES6
var x = `abc${0}abc` === `abc` ||
`abc` !== `abc${0}abc` &&
`abc${0}abc` == "abc0abc" &&
"abc0abc" !== `abc${0}abc`; | {
"end_byte": 159,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInEqualityChecksES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringInArrowFunctionES6.ts_3_47 | @target: ES6
var x = x => `abc${ x }def`; | {
"end_byte": 47,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringInArrowFunctionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedObjectLiteralES6.ts_3_57 | @target: ES6
var x = `abc${ { x: 10, y: 20 } }def`; | {
"end_byte": 57,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/templates/templateStringWithEmbeddedObjectLiteralES6.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.