Make annotations `SetOnce or optional` where feasible

This commit is contained in:
Mathias Baumann
2020-09-22 17:38:21 +02:00
parent d80a81b01b
commit dd81d05559
18 changed files with 194 additions and 105 deletions
+1 -1
View File
@@ -492,7 +492,7 @@ CallableDeclaration const* Scopable::functionOrModifierDefinition() const
string Scopable::sourceUnitName() const
{
return sourceUnit().annotation().path;
return *sourceUnit().annotation().path;
}
DeclarationAnnotation& Declaration::annotation() const