Q322-037: Implement proper snapping

Users can annotate node that they want to have snapping sloc behavior.
Additionally, incomplete nodes snap at the end.

Change-Id: Ib3b8d3337d1356059b01694b547265386afd814f
This commit is contained in:
Raphael Amiard
2018-02-15 11:43:55 +01:00
parent 54c79a6c39
commit 5e09063757
6 changed files with 129 additions and 47 deletions

View File

@@ -1,18 +1,18 @@
Regular node: <Param 1:1-1:2>
Regular node: <Name 1:1-1:2>
Ghost node: <EnumDefault 2:1-2:1>
Ghost node: <PlusQualifierAbsent 2:1-2:1>
Ghost node: <EnumDefault 1:2-1:2>
Ghost node: <PlusQualifierAbsent 1:2-1:2>
Regular node: <Param 2:1-2:7>
Regular node: <Name 2:1-2:2>
Regular node: <EnumNull 2:3-2:7>
Ghost node: <PlusQualifierAbsent 3:1-3:1>
Ghost node: <PlusQualifierAbsent 2:7-2:7>
Regular node: <Param 3:1-3:2>
Regular node: <Name 3:1-3:2>
Ghost node: <EnumDefault 4:1-4:1>
Ghost node: <PlusQualifierAbsent 4:1-4:1>
Ghost node: <EnumDefault 3:2-3:2>
Ghost node: <PlusQualifierAbsent 3:2-3:2>
Regular node: <Param 4:1-4:7>
Regular node: <Name 4:1-4:2>
Regular node: <EnumNull 4:3-4:7>
Ghost node: <PlusQualifierAbsent 4:8-4:8>
Ghost node: <PlusQualifierAbsent 4:7-4:7>
Done.
Done