blob: 84046a601fdfa6d6246989a58c0e80c6bb8378e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// slang-ast-modifier.cpp
#include "slang-ast-modifier.h"
#include "slang-ast-expr.h"
namespace Slang
{
const OrderedDictionary<DeclRefBase*, SubtypeWitness*>& DifferentiableAttribute::getMapTypeToIDifferentiableWitness()
{
for (Index i = m_mapToIDifferentiableWitness.getCount(); i < m_typeToIDifferentiableWitnessMappings.getCount(); i++)
m_mapToIDifferentiableWitness.add(m_typeToIDifferentiableWitnessMappings[i].key, m_typeToIDifferentiableWitnessMappings[i].value);
return m_mapToIDifferentiableWitness;
}
} // namespace Slang
|