From 96990800e3f4548ce7b96752b04a0665cb1e0949 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 1 Apr 2019 14:13:09 -0700 Subject: [PATCH] Add new baselines --- ...arserParenthesizedVariableAndFunctionInTernary.js | 8 ++++++++ ...ParenthesizedVariableAndFunctionInTernary.symbols | 8 ++++++++ ...erParenthesizedVariableAndFunctionInTernary.types | 12 ++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.js create mode 100644 tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.symbols create mode 100644 tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.types diff --git a/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.js b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.js new file mode 100644 index 00000000000..dde6826c59c --- /dev/null +++ b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.js @@ -0,0 +1,8 @@ +//// [parserParenthesizedVariableAndFunctionInTernary.ts] +let a: any; +const c = true ? (a) : function() {}; + + +//// [parserParenthesizedVariableAndFunctionInTernary.js] +var a; +var c = true ? (a) : function () { }; diff --git a/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.symbols b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.symbols new file mode 100644 index 00000000000..3b64c950750 --- /dev/null +++ b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.symbols @@ -0,0 +1,8 @@ +=== tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts === +let a: any; +>a : Symbol(a, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 0, 3)) + +const c = true ? (a) : function() {}; +>c : Symbol(c, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 1, 5)) +>a : Symbol(a, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 0, 3)) + diff --git a/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.types b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.types new file mode 100644 index 00000000000..d3cd1f4fbb6 --- /dev/null +++ b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.types @@ -0,0 +1,12 @@ +=== tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts === +let a: any; +>a : any + +const c = true ? (a) : function() {}; +>c : any +>true ? (a) : function() {} : any +>true : true +>(a) : any +>a : any +>function() {} : () => void +