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); } } }
public override void VisitNodePropertyChanges(long id, IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed) { }
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) {
public override void VisitRelPropertyChanges(long id, IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed) { RelPropertyChanges.Add(new PropertyChange(id, added, changed, removed)); }
: 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)
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); }
private GatheringVisitor.PropertyChange PropChange(long relId, ICollection <StorageProperty> added, IList <StorageProperty> changed, IntIterable removed) { return(new GatheringVisitor.PropertyChange(relId, added, changed, removed)); }
public override void VisitGraphPropertyChanges(IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed) { GraphPropertyChanges.Add(new PropertyChange(-1, added, changed, removed)); }
//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); }
public override void VisitGraphPropertyChanges(IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed) { Actual.visitGraphPropertyChanges(added, changed, removed); }
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(); }