2017-05-29 13:41:28 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
////class C {
|
|
|
|
////<<<<<<< HEAD
|
|
|
|
//// v = 1;
|
|
|
|
////||||||| merged common ancestors
|
|
|
|
//// v = 3;
|
|
|
|
////=======
|
|
|
|
//// v = 2;
|
|
|
|
////>>>>>>> Branch - a
|
|
|
|
////}
|
|
|
|
|
2020-09-11 21:10:55 +02:00
|
|
|
const c = classification("original");
|
2017-05-29 13:41:28 +02:00
|
|
|
verify.syntacticClassificationsAre(
|
|
|
|
c.keyword("class"), c.className("C"), c.punctuation("{"),
|
|
|
|
c.comment("<<<<<<< HEAD"),
|
|
|
|
c.identifier("v"), c.operator("="), c.numericLiteral("1"), c.punctuation(";"),
|
|
|
|
c.comment("||||||| merged common ancestors"),
|
|
|
|
c.identifier("v"), c.punctuation("="), c.numericLiteral("3"), c.punctuation(";"),
|
|
|
|
c.comment("======="),
|
|
|
|
c.identifier("v"), c.punctuation("="), c.numericLiteral("2"), c.punctuation(";"),
|
|
|
|
c.comment(">>>>>>> Branch - a"),
|
2020-09-11 21:10:55 +02:00
|
|
|
c.punctuation("}"));
|
|
|
|
|
|
|
|
const c2 = classification("2020");
|
|
|
|
verify.semanticClassificationsAre("2020",
|
|
|
|
c2.semanticToken("class.declaration", "C"),
|
|
|
|
c2.semanticToken("property.declaration", "v"),
|
|
|
|
);
|