RestorePoint(int startPosition, int textLength, int part, int startLine, int startColumn, int errorCount, IntIterable disabledWarnings) {
     this.StartPosition = startPosition;
     this.TextLength = textLength;
     this.Part = part;
     this.StartLine = startLine;
     this.StartColumn = startColumn;
     this.ErrorCount = errorCount;
     this.DisabledWarnings = disabledWarnings;
 }
 private static IntIterable even(IntIterable source)
 {
     foreach (var i in source)
     {
         if (i % 2 == 0)
         {
             yield return(i);
         }
     }
 }
Ejemplo n.º 3
0
 public override void VisitNodePropertyChanges(long id, IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed)
 {
 }
Ejemplo n.º 4
0
        private void saveScannerState() {
            savedFilename = scanner.Filename;
            savedLine = scanner.StartLine;
            savedColumn = scanner.StartColumn;
            savedDisabledWarnings = scanner.CodeErrorManager.DisabledWarnings;
			savedStartPosition = scanner.StartPosition;
        }
 RestorePoint(int startPosition, int textLength, int part, int startLine, int startColumn, int errorCount, IntIterable disabledWarnings)
 {
     this.StartPosition    = startPosition;
     this.TextLength       = textLength;
     this.Part             = part;
     this.StartLine        = startLine;
     this.StartColumn      = startColumn;
     this.ErrorCount       = errorCount;
     this.DisabledWarnings = disabledWarnings;
 }
     : super(InputSectionPartKind.Pragma, position, length, line) {
     this.restore = restore;
     this.warnings = warnings;
 }
 PragmaSectionPart(int position, int length, int line, bool restore, IntIterable warnings)
     : super(InputSectionPartKind.Pragma, position, length, line) {
Ejemplo n.º 8
0
 public override void VisitRelPropertyChanges(long id, IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed)
 {
     RelPropertyChanges.Add(new PropertyChange(id, added, changed, removed));
 }
Ejemplo n.º 9
0
     : super(InputSectionPartKind.Pragma, position, length, line)
 {
     this.restore  = restore;
     this.warnings = warnings;
 }
Ejemplo n.º 10
0
 PragmaSectionPart(int position, int length, int line, bool restore, IntIterable warnings)
     : super(InputSectionPartKind.Pragma, position, length, line)
 public override void VisitNodePropertyChanges(long id, IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed)
 {
     removed.each(propId => _recordState.nodeRemoveProperty(id, propId));
     while (changed.MoveNext())
     {
         StorageProperty prop = changed.Current;
         _recordState.nodeChangeProperty(id, prop.PropertyKeyId(), prop.Value());
     }
     while (added.MoveNext())
     {
         StorageProperty prop = added.Current;
         _recordState.nodeAddProperty(id, prop.PropertyKeyId(), prop.Value());
     }
 }
 public override void VisitGraphPropertyChanges(IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed)
 {
     removed.each(_recordState.graphRemoveProperty);
     while (changed.MoveNext())
     {
         StorageProperty prop = changed.Current;
         _recordState.graphChangeProperty(prop.PropertyKeyId(), prop.Value());
     }
     while (added.MoveNext())
     {
         StorageProperty prop = added.Current;
         _recordState.graphAddProperty(prop.PropertyKeyId(), prop.Value());
     }
 }
 public override void VisitRelPropertyChanges(long id, IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed)
 {
     IndexRelationship(id);
 }
Ejemplo n.º 14
0
 private GatheringVisitor.PropertyChange PropChange(long relId, ICollection <StorageProperty> added, IList <StorageProperty> changed, IntIterable removed)
 {
     return(new GatheringVisitor.PropertyChange(relId, added, changed, removed));
 }
Ejemplo n.º 15
0
 public override void VisitGraphPropertyChanges(IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed)
 {
     GraphPropertyChanges.Add(new PropertyChange(-1, added, changed, removed));
 }
Ejemplo n.º 16
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void visitRelPropertyChanges(long id, java.util.Iterator<org.neo4j.storageengine.api.StorageProperty> added, java.util.Iterator<org.neo4j.storageengine.api.StorageProperty> changed, org.eclipse.collections.api.IntIterable removed) throws org.neo4j.internal.kernel.api.exceptions.schema.ConstraintValidationException
        public override void VisitRelPropertyChanges(long id, IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed)
        {
            Actual.visitRelPropertyChanges(id, added, changed, removed);
        }
Ejemplo n.º 17
0
 public override void VisitGraphPropertyChanges(IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed)
 {
     Actual.visitGraphPropertyChanges(added, changed, removed);
 }
Ejemplo n.º 18
0
 internal PropertyChange(long entityId, IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed)
 {
     this.EntityId = entityId;
     this.Added    = Iterators.asList(added);
     this.Changed  = Iterators.asList(changed);
     this.Removed  = removed.toList();
 }