Skip to content

Commit

Permalink
Update comments and copyrights
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-yuan committed Dec 5, 2023
1 parent 44102d7 commit 81c17b5
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* Copyright 2023 Google LLC
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.devtools.ksp

import com.intellij.util.containers.MultiMap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* Copyright 2023 Google LLC
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.devtools.ksp

import com.google.devtools.ksp.symbol.KSDeclaration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* Copyright 2023 Google LLC
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.devtools.ksp.gradle

import com.google.devtools.ksp.impl.KotlinSymbolProcessing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,9 @@ class KotlinSymbolProcessing(
// 2) there is no more new files.
while (!logger.hasError) {
logger.logging("round ${++rounds} of processing")
// FirSession in AA is created lazily. Getting it instantiates module providers, which requires source roots to
// be resolved. Therefore, due to the implementation
// FirSession in AA is created lazily. Getting it instantiates module providers, which requires source roots
// to be resolved. Therefore, due to the implementation, it has to be registered repeatedly after the files
// are created.
val firSession = ResolverAAImpl.ktModule.getFirResolveSession(project)
firSession.useSiteFirSession.registerResolveComponents(dualLookupTracker)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class KSTypeReferenceImpl(
}
}

// Remember to recordLookup if the usage is beyond a type reference.
private val ktType: KtType by lazy {
analyze { ktTypeReference.getKtType() }
}
Expand Down

0 comments on commit 81c17b5

Please sign in to comment.