mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 17:44:09 +01:00
[naga wgsl-in] Rename consume_tokens to discover_template_lists.
This commit is contained in:
1 parent
1ef660f133
commit
ada7681067
1 file changed
+2
-2
@@ -58,7 +58,7 @@ struct UnclosedCandidate {
|
||||
/// - `ignore_doc_comments` determines if doc comments are treated as [`Token::Trivia`].
|
||||
///
|
||||
/// [Template list discovery algorithm]: https://www.w3.org/TR/WGSL/#template-list-discovery
|
||||
fn consume_tokens<'a>(
|
||||
fn discover_template_lists<'a>(
|
||||
tokens: &mut Vec<(TokenSpan<'a>, &'a str)>,
|
||||
source: &'a str,
|
||||
mut input: &'a str,
|
||||
@@ -495,7 +495,7 @@ impl<'a> Lexer<'a> {
|
||||
fn next_impl(&mut self, ignore_doc_comments: bool) -> TokenSpan<'a> {
|
||||
loop {
|
||||
if self.tokens.is_empty() {
|
||||
consume_tokens(
|
||||
discover_template_lists(
|
||||
&mut self.tokens,
|
||||
self.source,
|
||||
self.input,
|
||||
|
||||
Reference in new issue
Block a user