Skip to content

Commit

Permalink
Record Macro Expansion relation in ConsistentAnalysisFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker committed Oct 4, 2024
1 parent 88150aa commit 91d02bd
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ class ConsistentAnalysisFormat(val mappers: ReadWriteMappers, sort: Boolean) {
wrS("inheritance.external", rs.inheritance.external)
wrS("localInheritance.internal", rs.localInheritance.internal)
wrS("localInheritance.external", rs.localInheritance.external)
wrS("macroExpansion.internal", rs.macroExpansion.internal)
wrS("macroExpansion.external", rs.macroExpansion.external)
wrS("productClassNames", rs.productClassName)
}

Expand All @@ -384,23 +386,25 @@ class ConsistentAnalysisFormat(val mappers: ReadWriteMappers, sort: Boolean) {
val bin = rd(mapSource, mapBinary)
val lcn = rd(mapBinary, identity[String])
val cn = rd(mapSource, identity[String])
val mri, mre, ii, ie, lii, lie, bcn = rdS()
val mri, mre, ii, ie, lii, lie, bcn, mei, mee = rdS()
def deps(
m: Relation[String, String],
i: Relation[String, String],
l: Relation[String, String]
l: Relation[String, String],
me: Relation[String, String],
) =
Map(
DependencyContext.DependencyByMemberRef -> m,
DependencyContext.DependencyByInheritance -> i,
DependencyContext.LocalDependencyByInheritance -> l
DependencyContext.LocalDependencyByInheritance -> l,
DependencyContext.DependencyByMacroExpansion -> me,
)
Relations.make(
p,
bin,
lcn,
InternalDependencies(deps(mri, ii, lii)),
ExternalDependencies(deps(mre, ie, lie)),
InternalDependencies(deps(mri, ii, lii, mei)),
ExternalDependencies(deps(mre, ie, lie, mee)),
cn,
un,
bcn
Expand Down

0 comments on commit 91d02bd

Please sign in to comment.