equal
deleted
inserted
replaced
417 node.fields.delete( i ) |
417 node.fields.delete( i ) |
418 return |
418 return |
419 raise newException( IndexError, "key not in object" ) |
419 raise newException( IndexError, "key not in object" ) |
420 |
420 |
421 |
421 |
422 proc hash*( node: TNetstringNode ): THash = |
422 proc hash*( node: TNetstringNode ): Hash = |
423 ## Compute the hash for a TNetstringString node |
423 ## Compute the hash for a TNetstringString node |
424 return case node.kind |
424 return case node.kind |
425 of TNetstringString: |
425 of TNetstringString: |
426 hash( node.str ) |
426 hash( node.str ) |
427 of TNetstringInt: |
427 of TNetstringInt: |