Return AAs by `ref` to avoid lvalue compile errors
This commit is contained in:
parent
5b2dc84027
commit
b593c367e1
|
|
@ -216,7 +216,7 @@ extern (C++) class UnmodifiedFinder(AST) : BaseAnalyzerDmd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@property private extern (D) VarSet currentScope()
|
@property private extern (D) ref VarSet currentScope()
|
||||||
{
|
{
|
||||||
return usedVars[$ - 1];
|
return usedVars[$ - 1];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ extern (C++) class UnusedParameterCheck(AST) : BaseAnalyzerDmd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@property private extern (D) ParamSet currentScope()
|
@property private extern (D) ref ParamSet currentScope()
|
||||||
{
|
{
|
||||||
return usedParams[$ - 1];
|
return usedParams[$ - 1];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@ extern (C++) class UnusedVariableCheck(AST) : BaseAnalyzerDmd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@property private extern (D) VarSet currentScope()
|
@property private extern (D) ref VarSet currentScope()
|
||||||
{
|
{
|
||||||
return usedVars[$ - 1];
|
return usedVars[$ - 1];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue