INNER CODE UNIT · C#

span

ArcadeMakerSources/ArcadeMaker · src/ArcadeMaker.IDE/CodeChecker.cs:364

                                span = spans[spanIndex++];
                                if (span.type != SpanType.Normal)
                                    throw new NotImplementedException();
                                c.GenericTypes.Add(new GenericType { Name = span.text });
                                splitExpected = true;
                            }
                            else
                            {
                                // make sure we got a ','
                                if (span.type == SpanType.Symbol && span.text == ",")
                                    splitExpected = false;
                                else
                                    throw new NotImplementedException();
                            }
                        }
                        while (!(span.type == SpanType.Brace && span.text == ">"));
                        if (!splitExpected)
                            throw new IdentifierExpectedException(); // looks like this: class Name<T,>

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…