blob: d4e7f4fb028745f48330f79a1266a66681daefcd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.plugin.classanalysis
import collection.mutable
/**
* A visitor that's run for sub construct of a class
* and forwards all its imports the the owning ClassVisitor at the end.
* @author tonytv
*/
private trait SubVisitorTrait {
val analyzeClassVisitor : AnalyzeClassVisitor
val imports : ImportsSet = mutable.Set()
def visitEnd() {
analyzeClassVisitor.addImports(imports)
}
}
|