<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/prism/parse_result.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Bump Prism version to 1.5.0</title>
<updated>2025-09-12T21:30:16+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2025-09-12T20:09:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=52b3f006cb31672c45b26f6a44a609fd1b8e2ee5'/>
<id>52b3f006cb31672c45b26f6a44a609fd1b8e2ee5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Bump typechecking deps</title>
<updated>2024-12-11T19:50:20+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-12-11T19:09:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=34e68548d43175c5d496b533dec280e935a8d2d5'/>
<id>34e68548d43175c5d496b533dec280e935a8d2d5</id>
<content type='text'>
https://github.com/ruby/prism/commit/230c8b8a48
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/230c8b8a48
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Prism::CodeUnitsCache</title>
<updated>2024-10-10T18:02:27+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-10-09T18:40:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7a198af7cdb437c5245ac3ab70cb66cef2002d06'/>
<id>7a198af7cdb437c5245ac3ab70cb66cef2002d06</id>
<content type='text'>
Calculating code unit offsets for a source can be very expensive,
especially when the source is large. This commit introduces a new
class that wraps the source and desired encoding into a cache that
reuses pre-computed offsets. It performs quite a bit better.

There are still some problems with this approach, namely character
boundaries and the fact that the cache is unbounded, but both of
these may be addressed in subsequent commits.

https://github.com/ruby/prism/commit/2e3e1a4d4d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Calculating code unit offsets for a source can be very expensive,
especially when the source is large. This commit introduces a new
class that wraps the source and desired encoding into a cache that
reuses pre-computed offsets. It performs quite a bit better.

There are still some problems with this approach, namely character
boundaries and the fact that the cache is unbounded, but both of
these may be addressed in subsequent commits.

https://github.com/ruby/prism/commit/2e3e1a4d4d
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Attempt to assume binary is UTF-8</title>
<updated>2024-10-09T15:42:23+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-10-09T14:34:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e39e582594feaeb40722b2921e8feb562d94269b'/>
<id>e39e582594feaeb40722b2921e8feb562d94269b</id>
<content type='text'>
https://github.com/ruby/prism/commit/343197e4ff
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/343197e4ff
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Avoid breaking code units offset on binary encoding</title>
<updated>2024-10-09T14:07:10+00:00</updated>
<author>
<name>Vinicius Stock</name>
<email>vinicius.stock@shopify.com</email>
</author>
<published>2024-10-08T14:47:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e50754fcfaeb80bef93f043c13895ce386ddb18c'/>
<id>e50754fcfaeb80bef93f043c13895ce386ddb18c</id>
<content type='text'>
https://github.com/ruby/prism/commit/25a4cf6794

Co-authored-by: Kevin Newton &lt;kddnewton@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/25a4cf6794

Co-authored-by: Kevin Newton &lt;kddnewton@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] essentialy ==&gt; essentially</title>
<updated>2024-09-04T13:13:37+00:00</updated>
<author>
<name>ydah</name>
<email>t.yudai92@gmail.com</email>
</author>
<published>2024-09-04T12:55:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dbb8f97eaa4c6c7e36c797c7b1d9a803db2623ea'/>
<id>dbb8f97eaa4c6c7e36c797c7b1d9a803db2623ea</id>
<content type='text'>
https://github.com/ruby/prism/commit/9c68c01bcd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/9c68c01bcd
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Tweak inspect representation of `Prism::Location`</title>
<updated>2024-08-14T16:28:43+00:00</updated>
<author>
<name>Koichi ITO</name>
<email>koic.ito@gmail.com</email>
</author>
<published>2024-08-14T02:46:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=88954a0e9a199156aadc472c4795133e5ac7651b'/>
<id>88954a0e9a199156aadc472c4795133e5ac7651b</id>
<content type='text'>
This PR tweaks inspect representation of `Prism::Location`.

## Before

During debugging, the meaning of `@location=https://github.com/ruby/prism/commit/21474836481` was unclear:

```console
$ ruby -Ilib -rprism -e 'p Prism.lex("puts :hi").value.map(&amp;:first)[1]'
#&lt;Prism::Token:0x000000010cd74e40 @source=#&lt;Prism::ASCIISource:0x000000010cb5f808 @source="puts :hi", @start_line=1, @offsets=[0]&gt;,
@type=:SYMBOL_BEGIN, @value=":", @location=https://github.com/ruby/prism/commit/21474836481&gt;
```

## After

This PR clarifies the contents of the location object, aligning with what I think user expects:

```console
$ ruby -Ilib -rprism -e 'p Prism.lex("puts :hi").value.map(&amp;:first)[1]'
#&lt;Prism::Token:0x000000010e174d50 @source=#&lt;Prism::ASCIISource:0x000000010df5efe8 @source="puts :hi", @start_line=1, @offsets=[0]&gt;,
@type=:SYMBOL_BEGIN, @value=":", @location=#&lt;Prism::Location @start_offset=5 @length=1 start_line=1&gt;&gt;
```

Although it is uncertain whether Prism will accept this change in the inspect representation, it is submitted here as a suggestion.

https://github.com/ruby/prism/commit/e7421ce1c5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR tweaks inspect representation of `Prism::Location`.

## Before

During debugging, the meaning of `@location=https://github.com/ruby/prism/commit/21474836481` was unclear:

```console
$ ruby -Ilib -rprism -e 'p Prism.lex("puts :hi").value.map(&amp;:first)[1]'
#&lt;Prism::Token:0x000000010cd74e40 @source=#&lt;Prism::ASCIISource:0x000000010cb5f808 @source="puts :hi", @start_line=1, @offsets=[0]&gt;,
@type=:SYMBOL_BEGIN, @value=":", @location=https://github.com/ruby/prism/commit/21474836481&gt;
```

## After

This PR clarifies the contents of the location object, aligning with what I think user expects:

```console
$ ruby -Ilib -rprism -e 'p Prism.lex("puts :hi").value.map(&amp;:first)[1]'
#&lt;Prism::Token:0x000000010e174d50 @source=#&lt;Prism::ASCIISource:0x000000010df5efe8 @source="puts :hi", @start_line=1, @offsets=[0]&gt;,
@type=:SYMBOL_BEGIN, @value=":", @location=#&lt;Prism::Location @start_offset=5 @length=1 start_line=1&gt;&gt;
```

Although it is uncertain whether Prism will accept this change in the inspect representation, it is submitted here as a suggestion.

https://github.com/ruby/prism/commit/e7421ce1c5
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Various cleanup for initializers and typechecks</title>
<updated>2024-07-11T18:25:54+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-07-03T15:23:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=aa473489a2ff5e5ed6d3536466e6108539c97a8b'/>
<id>aa473489a2ff5e5ed6d3536466e6108539c97a8b</id>
<content type='text'>
https://github.com/ruby/prism/commit/86cf82794a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/86cf82794a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Move location to second position for node initializers</title>
<updated>2024-07-11T18:25:54+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-07-02T18:27:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ca48fb76fb0669ca0666a7aa129e1f5d2b7468da'/>
<id>ca48fb76fb0669ca0666a7aa129e1f5d2b7468da</id>
<content type='text'>
https://github.com/ruby/prism/commit/4cc0eda4ca
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/4cc0eda4ca
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Reconfigure error tests</title>
<updated>2024-07-11T18:25:54+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-07-02T16:23:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=678dd769e560db9cebff41218e3413e6688aaf12'/>
<id>678dd769e560db9cebff41218e3413e6688aaf12</id>
<content type='text'>
https://github.com/ruby/prism/commit/fb7e1ebb7f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/fb7e1ebb7f
</pre>
</div>
</content>
</entry>
</feed>
