@@ -796,6 +796,77 @@ func (e *ExecutePrivilegeOnTableFunction) End() token.Pos { return e.Names[len(e
796796func (r * RolePrivilege ) Pos () token.Pos { return r .Role }
797797func (r * RolePrivilege ) End () token.Pos { return r .Names [len (r .Names )- 1 ].End () }
798798
799+ // ================================================================================
800+ //
801+ // GQL schema statements
802+ //
803+ // ================================================================================
804+
805+ func (c * CreatePropertyGraph ) Pos () token.Pos { return c .Create }
806+ func (c * CreatePropertyGraph ) End () token.Pos { return c .Content .End () }
807+
808+ func (p * PropertyGraphContent ) Pos () token.Pos { return p .Node }
809+ func (p * PropertyGraphContent ) End () token.Pos { return firstValidEnd (p .EdgeTables , p .NodeTables ) }
810+
811+ func (p * PropertyGraphElementList ) Pos () token.Pos { return p .LParen }
812+ func (p * PropertyGraphElementList ) End () token.Pos { return p .RParen + 1 }
813+
814+ func (p * PropertyGraphElement ) Pos () token.Pos { return p .Name .Pos () }
815+ func (p * PropertyGraphElement ) End () token.Pos {
816+ return firstValidEnd (p .Properties , p .Keys , p .Alias , p .Name )
817+ }
818+
819+ func (p * PropertyGraphLabelAndPropertiesList ) Pos () token.Pos { return firstPos (p .LabelAndProperties ) }
820+ func (p * PropertyGraphLabelAndPropertiesList ) End () token.Pos { return lastEnd (p .LabelAndProperties ) }
821+
822+ func (p * PropertyGraphLabelAndProperties ) Pos () token.Pos { return p .Label .Pos () }
823+ func (p * PropertyGraphLabelAndProperties ) End () token.Pos {
824+ return firstValidEnd (p .Properties , p .Label )
825+ }
826+
827+ func (p * PropertyGraphElementLabelLabelName ) Pos () token.Pos { return p .Label }
828+ func (p * PropertyGraphElementLabelLabelName ) End () token.Pos { return p .Name .End () }
829+
830+ func (p * PropertyGraphElementLabelDefaultLabel ) Pos () token.Pos { return p .Default }
831+ func (p * PropertyGraphElementLabelDefaultLabel ) End () token.Pos { return p .Label + 5 }
832+
833+ func (p * PropertyGraphNodeElementKey ) Pos () token.Pos { return p .PropertyGraphElementKey .Pos () }
834+ func (p * PropertyGraphNodeElementKey ) End () token.Pos { return p .PropertyGraphElementKey .End () }
835+
836+ func (p * PropertyGraphEdgeElementKeys ) Pos () token.Pos { return p .Element .Pos () }
837+ func (p * PropertyGraphEdgeElementKeys ) End () token.Pos { return p .Destination .End () }
838+
839+ func (p * PropertyGraphElementKey ) Pos () token.Pos { return p .Key }
840+ func (p * PropertyGraphElementKey ) End () token.Pos { return p .Keys .End () }
841+
842+ func (p * PropertyGraphSourceKey ) Pos () token.Pos { return p .Source }
843+ func (p * PropertyGraphSourceKey ) End () token.Pos {
844+ return firstValidEnd (p .ReferenceColumns , p .ElementReference )
845+ }
846+
847+ func (p * PropertyGraphDestinationKey ) Pos () token.Pos { return p .Destination }
848+ func (p * PropertyGraphDestinationKey ) End () token.Pos {
849+ return firstValidEnd (p .ElementReference , p .ElementReference )
850+ }
851+
852+ func (p * PropertyGraphColumnNameList ) Pos () token.Pos { return p .LParen }
853+ func (p * PropertyGraphColumnNameList ) End () token.Pos { return p .RParen + 1 }
854+
855+ func (p * PropertyGraphNoProperties ) Pos () token.Pos { return p .No }
856+ func (p * PropertyGraphNoProperties ) End () token.Pos { return p .Properties + 10 }
857+
858+ func (p * PropertyGraphPropertiesAre ) Pos () token.Pos { return p .Properties }
859+ func (p * PropertyGraphPropertiesAre ) End () token.Pos { return p .ExceptColumns .End () }
860+
861+ func (p * PropertyGraphDerivedPropertyList ) Pos () token.Pos { return p .Properties }
862+ func (p * PropertyGraphDerivedPropertyList ) End () token.Pos { return p .RParen + 1 }
863+
864+ func (p * PropertyGraphDerivedProperty ) Pos () token.Pos { return p .Expr .Pos () }
865+ func (p * PropertyGraphDerivedProperty ) End () token.Pos { return firstValidEnd (p .PropertyName , p .Expr ) }
866+
867+ func (g * DropPropertyGraph ) Pos () token.Pos { return g .Drop }
868+ func (g * DropPropertyGraph ) End () token.Pos { return g .Name .End () }
869+
799870// ================================================================================
800871//
801872// Types for Schema
0 commit comments