mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Refactor BuildFunctionDecl (#5098)
Trying to break apart the function on reasonable boundaries because it's big. Changes behavior of class functions with virtual modifiers to remove the modifier when diagnosing, which is more consistent with other modifier diagnostics.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
namespace Carbon::Check {
|
||||
|
||||
auto DeclNameStack::NameContext::prev_inst_id() -> SemIR::InstId {
|
||||
auto DeclNameStack::NameContext::prev_inst_id() const -> SemIR::InstId {
|
||||
switch (state) {
|
||||
case NameContext::State::Error:
|
||||
// The name is malformed and a diagnostic has already been emitted.
|
||||
|
||||
Reference in New Issue
Block a user