test(compiler): codegen tests for Sequence & Conditional expressions

This commit is contained in:
Evan You
2019-10-01 15:43:59 -04:00
parent ed111cd37b
commit aa134e7a4f
4 changed files with 176 additions and 109 deletions

View File

@@ -217,7 +217,7 @@ export interface ConditionalExpression extends Node {
// Some expressions, e.g. sequence and conditional expressions, are never
// associated with template nodes, so their source locations are just a stub.
// Container types like CompoundExpression also don't need a real location.
const locStub: SourceLocation = {
export const locStub: SourceLocation = {
source: '',
start: { line: 1, column: 1, offset: 0 },
end: { line: 1, column: 1, offset: 0 }