/*
 * Copyright (c) 2017. tangzx(love.tangzx@qq.com)
 *
 * 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.tang.intellij.lua.comment.psi.api;

import com.intellij.psi.PsiComment;
import com.tang.intellij.lua.comment.psi.LuaDocClassDef;
import com.tang.intellij.lua.comment.psi.LuaDocParamDef;
import com.tang.intellij.lua.comment.psi.LuaDocPsiElement;
import com.tang.intellij.lua.comment.psi.LuaDocTypeDef;
import com.tang.intellij.lua.lang.type.LuaTypeSet;
import com.tang.intellij.lua.psi.LuaCommentOwner;
import com.tang.intellij.lua.search.SearchContext;

import javax.annotation.Nullable;

/**
 * Created by Tangzx on 2016/11/21.
 *
 * @qq 272669294
 */
public interface LuaComment extends PsiComment, LuaDocPsiElement {
    @Nullable
    LuaCommentOwner getOwner();
    @Nullable
    LuaDocParamDef getParamDef(String name);
    @Nullable
    LuaDocClassDef getClassDef();
    @Nullable
    LuaDocTypeDef getTypeDef();
    @Nullable
    LuaTypeSet guessType(SearchContext context);
}

/*
 * Copyright (c) 2017. tangzx(love.tangzx@qq.com)
 *
 * 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.tang.intellij.lua.comment.psi.api;

import com.intellij.psi.PsiComment;
import com.tang.intellij.lua.comment.psi.LuaDocClassDef;
import com.tang.intellij.lua.comment.psi.LuaDocParamDef;
import com.tang.intellij.lua.comment.psi.LuaDocPsiElement;
import com.tang.intellij.lua.comment.psi.LuaDocTypeDef;
import com.tang.intellij.lua.lang.type.LuaTypeSet;
import com.tang.intellij.lua.psi.LuaCommentOwner;
import com.tang.intellij.lua.search.SearchContext;
import org.jetbrains.annotations.Nullable;

/**
 * Created by Tangzx on 2016/11/21.
 *
 */
public interface LuaComment extends PsiComment, LuaDocPsiElement {
    @Nullable
    LuaCommentOwner getOwner();
    @Nullable
    LuaDocParamDef getParamDef(String name);
    @Nullable
    LuaDocClassDef getClassDef();
    @Nullable
    LuaDocTypeDef getTypeDef();
    @Nullable
    LuaTypeSet guessType(SearchContext context);
}

clean code