├── .github ├── ISSUE_TEMPLATE.md └── workflows │ ├── build.yml │ └── on_release.yml ├── .gitignore ├── .idea ├── copyright │ ├── EmmyLua.xml │ └── profiles_settings.xml ├── libraries │ └── libs.xml ├── modules.xml └── vcs.xml ├── LICENSE.txt ├── README.md ├── build.gradle.kts ├── design └── emmy.ai ├── gen └── com │ └── korioz │ └── intellij │ └── lua │ ├── comment │ ├── lexer │ │ ├── LuaDocLexer.java │ │ └── _LuaDocLexer.java │ ├── parser │ │ └── LuaDocParser.java │ └── psi │ │ ├── LuaDocAccessModifier.java │ │ ├── LuaDocArrTy.java │ │ ├── LuaDocClassNameRef.java │ │ ├── LuaDocCommentString.java │ │ ├── LuaDocFunctionParam.java │ │ ├── LuaDocFunctionTy.java │ │ ├── LuaDocGeneralTy.java │ │ ├── LuaDocGenericDef.java │ │ ├── LuaDocGenericTy.java │ │ ├── LuaDocParTy.java │ │ ├── LuaDocParamNameRef.java │ │ ├── LuaDocStringLiteralTy.java │ │ ├── LuaDocTableDef.java │ │ ├── LuaDocTableField.java │ │ ├── LuaDocTableTy.java │ │ ├── LuaDocTagAlias.java │ │ ├── LuaDocTagAuthor.java │ │ ├── LuaDocTagClass.java │ │ ├── LuaDocTagDef.java │ │ ├── LuaDocTagDeprecated.java │ │ ├── LuaDocTagField.java │ │ ├── LuaDocTagGenericList.java │ │ ├── LuaDocTagLan.java │ │ ├── LuaDocTagOverload.java │ │ ├── LuaDocTagParam.java │ │ ├── LuaDocTagReturn.java │ │ ├── LuaDocTagSee.java │ │ ├── LuaDocTagSince.java │ │ ├── LuaDocTagSuppress.java │ │ ├── LuaDocTagType.java │ │ ├── LuaDocTagVararg.java │ │ ├── LuaDocTy.java │ │ ├── LuaDocTypeList.java │ │ ├── LuaDocTypes.java │ │ ├── LuaDocUnionTy.java │ │ ├── LuaDocVarargParam.java │ │ ├── LuaDocVersion.java │ │ ├── LuaDocVisitor.java │ │ └── impl │ │ ├── LuaDocAccessModifierImpl.java │ │ ├── LuaDocArrTyImpl.java │ │ ├── LuaDocClassNameRefImpl.java │ │ ├── LuaDocCommentStringImpl.java │ │ ├── LuaDocFunctionParamImpl.java │ │ ├── LuaDocFunctionTyImpl.java │ │ ├── LuaDocGeneralTyImpl.java │ │ ├── LuaDocGenericDefImpl.java │ │ ├── LuaDocGenericTyImpl.java │ │ ├── LuaDocParTyImpl.java │ │ ├── LuaDocParamNameRefImpl.java │ │ ├── LuaDocStringLiteralTyImpl.java │ │ ├── LuaDocTableDefImpl.java │ │ ├── LuaDocTableFieldImpl.java │ │ ├── LuaDocTableTyImpl.java │ │ ├── LuaDocTagAliasImpl.java │ │ ├── LuaDocTagClassImpl.java │ │ ├── LuaDocTagDefImpl.java │ │ ├── LuaDocTagFieldImpl.java │ │ ├── LuaDocTagGenericListImpl.java │ │ ├── LuaDocTagLanImpl.java │ │ ├── LuaDocTagOverloadImpl.java │ │ ├── LuaDocTagParamImpl.java │ │ ├── LuaDocTagReturnImpl.java │ │ ├── LuaDocTagSeeImpl.java │ │ ├── LuaDocTagSuppressImpl.java │ │ ├── LuaDocTagTypeImpl.java │ │ ├── LuaDocTagVarargImpl.java │ │ ├── LuaDocTyImpl.java │ │ ├── LuaDocTypeListImpl.java │ │ ├── LuaDocUnionTyImpl.java │ │ └── LuaDocVarargParamImpl.java │ ├── lexer │ ├── LuaLexer.java │ ├── LuaRegionLexer.java │ ├── _LuaLexer.java │ ├── _LuaRegionLexer.java │ └── _LuaStringLexer.java │ ├── parser │ └── LuaParser.java │ └── psi │ ├── LuaArgs.java │ ├── LuaAssignStat.java │ ├── LuaAttribute.java │ ├── LuaBinaryExpr.java │ ├── LuaBinaryOp.java │ ├── LuaBlock.java │ ├── LuaBreakStat.java │ ├── LuaCallExpr.java │ ├── LuaClassMethodDef.java │ ├── LuaClassMethodName.java │ ├── LuaClosureExpr.java │ ├── LuaDoStat.java │ ├── LuaEmptyStat.java │ ├── LuaExpr.java │ ├── LuaExprList.java │ ├── LuaExprStat.java │ ├── LuaForAStat.java │ ├── LuaForBStat.java │ ├── LuaFuncBody.java │ ├── LuaFuncDef.java │ ├── LuaGotoStat.java │ ├── LuaIfStat.java │ ├── LuaIndexExpr.java │ ├── LuaLabelStat.java │ ├── LuaListArgs.java │ ├── LuaLiteralExpr.java │ ├── LuaLocalDef.java │ ├── LuaLocalFuncDef.java │ ├── LuaNameDef.java │ ├── LuaNameExpr.java │ ├── LuaNameList.java │ ├── LuaParamNameDef.java │ ├── LuaParenExpr.java │ ├── LuaRepeatStat.java │ ├── LuaReturnStat.java │ ├── LuaShebangLine.java │ ├── LuaSingleArg.java │ ├── LuaStatement.java │ ├── LuaTableExpr.java │ ├── LuaTableField.java │ ├── LuaTableFieldSep.java │ ├── LuaTypes.java │ ├── LuaUnaryExpr.java │ ├── LuaUnaryOp.java │ ├── LuaVarList.java │ ├── LuaVisitor.java │ ├── LuaWhileStat.java │ └── impl │ ├── LuaArgsImpl.java │ ├── LuaAssignStatImpl.java │ ├── LuaAttributeImpl.java │ ├── LuaBinaryExprImpl.java │ ├── LuaBinaryOpImpl.java │ ├── LuaBlockImpl.java │ ├── LuaBreakStatImpl.java │ ├── LuaCallExprImpl.java │ ├── LuaClassMethodDefImpl.java │ ├── LuaClassMethodNameImpl.java │ ├── LuaClosureExprImpl.java │ ├── LuaDoStatImpl.java │ ├── LuaEmptyStatImpl.java │ ├── LuaExprImpl.java │ ├── LuaExprListImpl.java │ ├── LuaExprStatImpl.java │ ├── LuaForAStatImpl.java │ ├── LuaForBStatImpl.java │ ├── LuaFuncBodyImpl.java │ ├── LuaFuncDefImpl.java │ ├── LuaGotoStatImpl.java │ ├── LuaIfStatImpl.java │ ├── LuaIndexExprImpl.java │ ├── LuaLabelStatImpl.java │ ├── LuaListArgsImpl.java │ ├── LuaLiteralExprImpl.java │ ├── LuaLocalDefImpl.java │ ├── LuaLocalFuncDefImpl.java │ ├── LuaNameDefImpl.java │ ├── LuaNameExprImpl.java │ ├── LuaNameListImpl.java │ ├── LuaParamNameDefImpl.java │ ├── LuaParenExprImpl.java │ ├── LuaRepeatStatImpl.java │ ├── LuaReturnStatImpl.java │ ├── LuaShebangLineImpl.java │ ├── LuaSingleArgImpl.java │ ├── LuaStatementImpl.java │ ├── LuaTableExprImpl.java │ ├── LuaTableFieldImpl.java │ ├── LuaTableFieldSepImpl.java │ ├── LuaUnaryExprImpl.java │ ├── LuaUnaryOpImpl.java │ ├── LuaVarListImpl.java │ └── LuaWhileStatImpl.java ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── libs └── markdown.jar ├── license ├── EasyHook-license.txt ├── decoda-license.txt └── mobdebug-license.txt ├── settings.gradle ├── snapshot ├── find_usages.gif ├── go_to_class.gif ├── go_to_symbol.gif ├── logo.png ├── method_override_line_marker.gif ├── method_separators.png ├── method_separators_cfg.png ├── overview.gif ├── param_hints.png ├── param_hints_cfg.png ├── quick_documentation.gif ├── rename.gif └── structure_view.jpg └── src ├── main ├── compat │ └── com │ │ ├── intellij │ │ └── codeInsight │ │ │ └── daemon │ │ │ ├── AbstractLineMarkerProvider.kt │ │ │ ├── AbstractLineMarkerProvider.kt.201 │ │ │ ├── LuaLineMarkerInfo.kt │ │ │ └── LuaLineMarkerInfo.kt.20[1+2] │ │ └── korioz │ │ └── intellij │ │ └── lua │ │ └── hierarchy │ │ └── call │ │ ├── compatUtils.kt │ │ └── compatUtils.kt.203 ├── java │ └── com │ │ └── korioz │ │ └── intellij │ │ └── lua │ │ ├── Constants.java │ │ ├── LuaBundle.java │ │ ├── actions │ │ ├── CreateLuaFileAction.java │ │ ├── CreateTutorialFileAction.kt │ │ ├── LuaCreateFromTemplateHandler.java │ │ ├── LuaFileTemplateProvider.java │ │ └── projectViewActions.kt │ │ ├── annotator │ │ ├── LargerFileAnnotator.kt │ │ └── LuaAnnotator.kt │ │ ├── braces │ │ └── LuaBraceMatcher.kt │ │ ├── codeInsight │ │ ├── LuaBackspaceHandlerDelegate.java │ │ ├── LuaLineMarkerNavigator.java │ │ ├── LuaLineMarkerProvider.kt │ │ ├── LuaLiveTemplatesProvider.kt │ │ ├── LuaParameterHintsProvider.kt │ │ ├── LuaParameterInfoHandler.kt │ │ ├── LuaRainbowVisitor.kt │ │ ├── LuaReadWriteAccessDetector.kt │ │ ├── editorActions │ │ │ ├── LuaQuoteHandler.java │ │ │ └── StringLiteralPasteProvider.kt │ │ ├── highlighting │ │ │ ├── LuaHighlightExitPointsHandler.kt │ │ │ ├── LuaHighlightExitPointsHandler.kt.201 │ │ │ ├── LuaHighlightUsagesHandlerFactory.kt │ │ │ └── LuaHighlightUsagesHandlerFactory.kt.201 │ │ ├── inspection │ │ │ ├── AssignTypeInspection.kt │ │ │ ├── DuplicateClassDeclaration.kt │ │ │ ├── EmptyBody.java │ │ │ ├── EmptyBodyBase.java │ │ │ ├── GlobalNameCanbeLocal.kt │ │ │ ├── Inspections.kt │ │ │ ├── LanguageLevelInspection.kt │ │ │ ├── LocalNameShadowed.kt │ │ │ ├── LuaDeprecationInspection.kt │ │ │ ├── LuaSuppressManager.kt │ │ │ ├── MatchFunctionSignatureInspection.kt │ │ │ ├── RemoveUnusedLocal.kt │ │ │ ├── ReturnTypeInspection.kt │ │ │ ├── SimplifyLocalAssignment.kt │ │ │ ├── StrictInspection.kt │ │ │ ├── UndeclaredVariableInspection.kt │ │ │ └── doc │ │ │ │ ├── UnresolvedClassInspection.kt │ │ │ │ └── UnresolvedSymbolInEmmyDocInspection.kt │ │ ├── intention │ │ │ ├── AppendCallParenIntention.kt │ │ │ ├── ComputeConstantValueIntention.kt │ │ │ ├── CreateFieldFromParameterDialog.java │ │ │ ├── CreateFieldFromParameterIntention.kt │ │ │ ├── CreateFunctionDocIntention.kt │ │ │ ├── CreateFunctionReturnAnnotationIntention.kt │ │ │ ├── CreateMethodIntention.kt │ │ │ ├── CreateParameterAnnotationIntention.kt │ │ │ ├── CreateTypeAnnotationIntention.kt │ │ │ ├── FunctionIntention.kt │ │ │ ├── InvertBooleanIntention.kt │ │ │ ├── RemoveCallParenIntention.kt │ │ │ └── SetVisibilityIntention.kt │ │ ├── postfix │ │ │ ├── LuaPostfixTemplateProvider.java │ │ │ ├── LuaPostfixUtils.java │ │ │ └── templates │ │ │ │ ├── LuaCheckIfNotNilPostfixTemplate.java │ │ │ │ ├── LuaCheckNilPostfixTemplate.java │ │ │ │ ├── LuaDecreasePostfixTemplate.java │ │ │ │ ├── LuaForAPostfixTemplate.java │ │ │ │ ├── LuaForIPostfixTemplate.java │ │ │ │ ├── LuaForPPostfixTemplate.java │ │ │ │ ├── LuaIfNotPostfixTemplate.kt │ │ │ │ ├── LuaIfPostfixTemplate.java │ │ │ │ ├── LuaIncreasePostfixTemplate.java │ │ │ │ ├── LuaLocalPostfixTemplate.java │ │ │ │ ├── LuaParPostfixTemplate.java │ │ │ │ ├── LuaPrintPostfixTemplate.java │ │ │ │ ├── LuaReturnPostfixTemplate.java │ │ │ │ └── QuickCallPostfix.kt │ │ └── template │ │ │ ├── context │ │ │ ├── LuaCodeContextType.kt │ │ │ ├── LuaFunContextType.kt │ │ │ └── LuaIfContextType.kt │ │ │ └── macro │ │ │ ├── LuaCurrentFunctionNameMacro.kt │ │ │ ├── LuaFunctionParamSigMacro.kt │ │ │ ├── NamesMacro.kt │ │ │ ├── SuggestFirstLuaVarNameMacro.kt │ │ │ ├── SuggestLuaParametersMacro.kt │ │ │ └── SuggestTypeMacro.kt │ │ ├── comment │ │ ├── LuaCommentUtil.kt │ │ ├── lexer │ │ │ └── LuaDocLexerAdapter.java │ │ ├── psi │ │ │ ├── LuaDocElementType.java │ │ │ ├── LuaDocNamedElement.java │ │ │ ├── LuaDocPsiElement.java │ │ │ ├── LuaDocPsiImplUtil.kt │ │ │ ├── LuaDocTag.kt │ │ │ ├── LuaDocTokenType.java │ │ │ ├── LuaDocType.kt │ │ │ ├── api │ │ │ │ └── LuaComment.kt │ │ │ └── impl │ │ │ │ └── LuaCommentImpl.kt │ │ └── reference │ │ │ ├── LuaClassNameReference.kt │ │ │ ├── LuaDocParamNameReference.kt │ │ │ └── LuaDocSeeReference.kt │ │ ├── debugger │ │ ├── DebugLogger.kt │ │ ├── DebuggerType.java │ │ ├── IRemoteConfiguration.kt │ │ ├── LuaCommandLineState.kt │ │ ├── LuaConfigurationFactory.kt │ │ ├── LuaDebugProcess.kt │ │ ├── LuaDebuggerEditorsProvider.kt │ │ ├── LuaDebuggerEvaluator.kt │ │ ├── LuaExecutionStack.kt │ │ ├── LuaLineBreakpointType.kt │ │ ├── LuaRunConfiguration.kt │ │ ├── LuaRunConfigurationProducer.kt │ │ ├── LuaRunner.kt │ │ ├── LuaSuspendContext.kt │ │ ├── LuaTracebackFilter.kt │ │ ├── XValuePresentation.kt │ │ ├── app │ │ │ ├── LuaAppConfigurationFactory.kt │ │ │ ├── LuaAppConfigurationType.java │ │ │ ├── LuaAppMobProcess.kt │ │ │ ├── LuaAppRunConfiguration.kt │ │ │ ├── LuaAppRunner.java │ │ │ ├── LuaAppSettingsEditor.form │ │ │ └── LuaAppSettingsEditor.java │ │ ├── emmy │ │ │ ├── EmmyDebugConfigurationType.kt │ │ │ ├── EmmyDebugProcess.kt │ │ │ ├── EmmyDebugProcessBase.kt │ │ │ ├── EmmyDebugSettingsPanel.form │ │ │ ├── EmmyDebugSettingsPanel.java │ │ │ ├── EmmyDebugStackFrame.kt │ │ │ ├── EmmyDebuggerRunner.kt │ │ │ ├── EmmyEvaluator.kt │ │ │ ├── Transporter.kt │ │ │ ├── proto.kt │ │ │ └── value │ │ │ │ └── LuaXValue.kt │ │ └── remote │ │ │ ├── LuaMobConfiguration.kt │ │ │ ├── LuaMobConfigurationFactory.kt │ │ │ ├── LuaMobConfigurationType.java │ │ │ ├── LuaMobDebugProcess.kt │ │ │ ├── LuaMobDebuggerEvaluator.java │ │ │ ├── LuaMobDebuggerRunner.java │ │ │ ├── LuaMobSettingsEditor.form │ │ │ ├── LuaMobSettingsEditor.java │ │ │ ├── LuaMobStackFrame.java │ │ │ ├── MobClient.kt │ │ │ ├── MobServer.kt │ │ │ ├── commands │ │ │ ├── DebugCommand.kt │ │ │ ├── DefaultCommand.kt │ │ │ ├── EvaluatorCommand.kt │ │ │ └── GetStackCommand.kt │ │ │ └── value │ │ │ ├── LuaRFunction.kt │ │ │ ├── LuaRPrimitive.kt │ │ │ ├── LuaRTable.kt │ │ │ └── LuaRValue.kt │ │ ├── doc.bnf │ │ ├── doc.flex │ │ ├── documentation │ │ ├── DocRenderer.kt │ │ ├── DocRenderer.kt.172 │ │ ├── LuaDocumentationProvider.kt │ │ ├── LuaDocumentationProvider.kt.172 │ │ └── Markdown.kt │ │ ├── editor │ │ ├── LuaAutoIndentHandler.kt │ │ ├── LuaBreadcrumbsProvider.kt │ │ ├── LuaBreadcrumbsProvider.kt.171 │ │ ├── LuaClassNavigationContributor.kt │ │ ├── LuaColorSettingsPage.kt │ │ ├── LuaCommenter.kt │ │ ├── LuaEnterAfterUnmatchedBraceHandler.kt │ │ ├── LuaEnterBetweenBracesHandler.java │ │ ├── LuaEnterBetweenRangeBlockHandler.kt │ │ ├── LuaEnterInDocHandler.kt │ │ ├── LuaIconProvider.kt │ │ ├── LuaNameSuggestionProvider.kt │ │ ├── LuaQualifiedNameProvider.kt │ │ ├── LuaRefactoringSupportProvider.kt │ │ ├── LuaStructureViewFactory.kt │ │ ├── LuaSymbolNavigationContributor.kt │ │ ├── LuaTypedHandler.kt │ │ ├── completion │ │ │ ├── ArgsInsertHandler.kt │ │ │ ├── AttributeCompletionProvider.kt │ │ │ ├── ClassMemberCompletionProvider.kt │ │ │ ├── CompletionSession.kt │ │ │ ├── FuncInsertHandler.kt │ │ │ ├── FunctionInsertHandler.kt │ │ │ ├── KeywordInsertHandler.kt │ │ │ ├── LocalAndGlobalCompletionProvider.kt │ │ │ ├── LookupElement.kt │ │ │ ├── LookupElementFactory.kt │ │ │ ├── LuaCompletionContributor.kt │ │ │ ├── LuaCompletionProvider.kt │ │ │ ├── LuaDocCompletionContributor.kt │ │ │ ├── LuaLookupElement.java │ │ │ ├── LuaStringArgHistoryProvider.kt │ │ │ ├── OverrideCompletionProvider.kt │ │ │ ├── RequirePathCompletionProvider.kt │ │ │ ├── SmartCompletionContributor.kt │ │ │ ├── SuggestLocalNameProvider.kt │ │ │ ├── SuggestSelfMemberProvider.kt │ │ │ └── TableCompletionProvider.kt │ │ ├── formatter │ │ │ ├── LuaCodeStyleSettings.java │ │ │ ├── LuaCodeStyleSettingsProvider.kt │ │ │ ├── LuaFormatContext.kt │ │ │ ├── LuaFormattingModelBuilder.kt │ │ │ ├── LuaLanguageCodeStyleSettingsProvider.kt │ │ │ ├── LuaPreFormatProcessor.kt │ │ │ └── blocks │ │ │ │ ├── LuaAssignBlock.kt │ │ │ │ ├── LuaBinaryExprBlock.kt │ │ │ │ ├── LuaCallExprBlock.kt │ │ │ │ ├── LuaFuncBodyBlock.kt │ │ │ │ ├── LuaIndentBlock.kt │ │ │ │ ├── LuaIndexExprBlock.kt │ │ │ │ ├── LuaListArgsBlock.kt │ │ │ │ ├── LuaParenExprBlock.kt │ │ │ │ ├── LuaScriptBlock.kt │ │ │ │ ├── LuaTableBlock.kt │ │ │ │ └── LuaUnaryExprBlock.kt │ │ ├── structure │ │ │ ├── LuaClassElement.kt │ │ │ ├── LuaClassFieldElement.kt │ │ │ ├── LuaClassMethodElement.kt │ │ │ ├── LuaFileElement.kt │ │ │ ├── LuaFuncElement.kt │ │ │ ├── LuaGlobalFuncElement.kt │ │ │ ├── LuaGlobalVarElement.kt │ │ │ ├── LuaLocalFuncElement.kt │ │ │ ├── LuaLocalVarElement.kt │ │ │ ├── LuaStructureVisitor.kt │ │ │ ├── LuaTreeElement.kt │ │ │ └── LuaVarElement.kt │ │ └── surroundWith │ │ │ ├── LuaSurroundDescriptor.kt │ │ │ └── RegionSurrounder.kt │ │ ├── ext │ │ ├── ILuaFileResolver.kt │ │ ├── ILuaTypeInfer.kt │ │ ├── LuaFileAbsoluteResolver.kt │ │ ├── LuaFileAdditionalResolver.kt │ │ ├── LuaFileFuzzyResolver.kt │ │ ├── LuaFileSourcesRootResolver.kt │ │ └── utils.kt │ │ ├── folding │ │ ├── LuaFoldingBuilder.kt │ │ ├── LuaFoldingProvider.kt │ │ └── LuaRegionFoldingBuilder.kt │ │ ├── hierarchy │ │ └── call │ │ │ ├── LuaCallHierarchyBrowser.kt │ │ │ ├── LuaCallHierarchyProvider.kt │ │ │ ├── LuaCallHierarchyTreeStructureBase.kt │ │ │ ├── LuaCallHierarchyUtil.kt │ │ │ ├── LuaCalleeFunctionTreeStructure.kt │ │ │ ├── LuaCallerFunctionTreeStructure.kt │ │ │ └── LuaHierarchyNodeDescriptor.kt │ │ ├── highlighting │ │ ├── LuaFileLexer.kt │ │ ├── LuaHighlightErrorFilter.kt │ │ ├── LuaHighlightingData.kt │ │ ├── LuaProblemFileHighlightFilter.kt │ │ ├── LuaSyntaxHighlighter.kt │ │ └── LuaSyntaxHighlighterFactory.kt │ │ ├── lang │ │ ├── LuaFileType.java │ │ ├── LuaFileTypeDetector.kt │ │ ├── LuaIcons.java │ │ ├── LuaLanguage.java │ │ ├── LuaLanguageInjector.kt │ │ ├── LuaLanguageLevel.kt │ │ ├── LuaParserDefinition.kt │ │ └── type │ │ │ └── LuaString.kt │ │ ├── lexer │ │ └── LuaLexerAdapter.kt │ │ ├── lua.bnf │ │ ├── lua.flex │ │ ├── luacheck │ │ ├── LuaCheckActions.kt │ │ ├── LuaCheckInvoker.kt │ │ ├── LuaCheckNodes.kt │ │ ├── LuaCheckPanel.kt │ │ ├── LuaCheckSettings.kt │ │ ├── LuaCheckSettingsPanel.form │ │ ├── LuaCheckSettingsPanel.java │ │ ├── LuaCheckToolWindowFactory.kt │ │ └── LuaCheckView.kt │ │ ├── project │ │ ├── CompletionSettingsPanel.form │ │ ├── CompletionSettingsPanel.java │ │ ├── EmmyLuaDirectoryProjectGenerator.kt │ │ ├── EmmyLuaDirectoryProjectGenerator.kt.171 │ │ ├── LuaAdditionalSourcesRootPanel.kt │ │ ├── LuaAdditionalSourcesRootPanel.kt.171 │ │ ├── LuaLibraryKind.kt │ │ ├── LuaLibraryRootsComponentDescriptor.kt │ │ ├── LuaLibraryType.kt │ │ ├── LuaModuleBuilder.kt │ │ ├── LuaModuleConfigurationEditorProvider.kt │ │ ├── LuaModuleType.kt │ │ ├── LuaModuleType.kt.171 │ │ ├── LuaPredefinedLibraryProvider.kt │ │ ├── LuaProjectViewPane.kt │ │ ├── LuaProjectViewPane.kt.171 │ │ ├── LuaSdkType.kt │ │ ├── LuaSettings.kt │ │ ├── LuaSettingsPanel.form │ │ ├── LuaSettingsPanel.java │ │ ├── LuaSourceRootIconProvider.kt │ │ ├── LuaSourceRootManager.kt │ │ ├── StdLibraryProvider.kt │ │ ├── StdSDK.kt │ │ └── nodes │ │ │ ├── LuaModuleNode.kt │ │ │ ├── LuaProjectRootNode.kt │ │ │ └── LuaPsiDirectoryNode.kt │ │ ├── psi │ │ ├── ExpressionUtil.kt │ │ ├── LuaClass.kt │ │ ├── LuaClassField.java │ │ ├── LuaClassMember.kt │ │ ├── LuaClassMethod.java │ │ ├── LuaCommentOwner.java │ │ ├── LuaDeclaration.kt │ │ ├── LuaDeclarationTree.kt │ │ ├── LuaElementFactory.kt │ │ ├── LuaElementType.java │ │ ├── LuaElementTypes.kt │ │ ├── LuaExprCodeFragment.kt │ │ ├── LuaFileManager.kt │ │ ├── LuaFileUtil.kt │ │ ├── LuaFuncBodyOwner.java │ │ ├── LuaIndentRange.java │ │ ├── LuaLoop.kt │ │ ├── LuaModuleClassMember.kt │ │ ├── LuaNamedElement.java │ │ ├── LuaParamInfo.kt │ │ ├── LuaParametersOwner.java │ │ ├── LuaParserUtil.java │ │ ├── LuaPsiElement.kt │ │ ├── LuaPsiFile.kt │ │ ├── LuaPsiImplUtil.kt │ │ ├── LuaPsiResolveUtil.kt │ │ ├── LuaPsiTreeUtil.java │ │ ├── LuaPsiTreeUtilEx.kt │ │ ├── LuaRecursiveVisitor.kt │ │ ├── LuaRegionTypes.java │ │ ├── LuaStringTypes.java │ │ ├── LuaTokenType.java │ │ ├── LuaTypeGuessable.java │ │ ├── PsiExtension.kt │ │ ├── Visibility.kt │ │ ├── impl │ │ │ ├── LuaBinaryExprMixin.kt │ │ │ ├── LuaCallExprMixin.kt │ │ │ ├── LuaClosureExprMixin.kt │ │ │ ├── LuaExprCodeFragmentImpl.kt │ │ │ ├── LuaExprMixin.kt │ │ │ ├── LuaExprStubMixin.kt │ │ │ ├── LuaIndexExprMixin.kt │ │ │ ├── LuaLiteralExprMixin.kt │ │ │ ├── LuaNameExprMixin.kt │ │ │ ├── LuaParenExprMixin.kt │ │ │ ├── LuaPsiElementImpl.kt │ │ │ ├── LuaStatMixin.kt │ │ │ ├── LuaTableExprMixin.kt │ │ │ └── LuaUnaryExprMixin.kt │ │ ├── parser │ │ │ ├── LuaExpressionParser.kt │ │ │ ├── LuaFileParser.kt │ │ │ ├── LuaParserUtilEx.kt │ │ │ └── LuaStatementParser.kt │ │ └── search │ │ │ ├── CompositeLuaShortNamesManager.kt │ │ │ ├── LuaAllClassesSearch.kt │ │ │ ├── LuaAllClassesSearchExecutor.kt │ │ │ ├── LuaAllClassesSearchExecutor.kt.172 │ │ │ ├── LuaClassInheritorsSearch.kt │ │ │ ├── LuaClassInheritorsSearchExecutor.kt │ │ │ ├── LuaClassInheritorsSearchExecutor.kt.172 │ │ │ ├── LuaOverridenMethodsSearch.kt │ │ │ ├── LuaOverridenMethodsSearchExecutor.kt │ │ │ ├── LuaOverridenMethodsSearchExecutor.kt.172 │ │ │ ├── LuaOverridingMethodsSearch.kt │ │ │ ├── LuaOverridingMethodsSearchExecutor.kt │ │ │ ├── LuaOverridingMethodsSearchExecutor.kt.172 │ │ │ ├── LuaShortNamesManager.kt │ │ │ └── LuaShortNamesManagerImpl.kt │ │ ├── refactoring │ │ ├── LuaRefactoringUtil.kt │ │ ├── inline │ │ │ └── LuaInlineActionHandler.kt │ │ ├── move │ │ │ └── LuaMoveFileHandler.kt │ │ └── rename │ │ │ ├── LuaDocClassNameRenameHandler.kt │ │ │ ├── LuaIntroduceVarHandler.kt │ │ │ └── RenameLuaMethodProcessor.kt │ │ ├── reference │ │ ├── GotoReference.kt │ │ ├── LuaFuncForwardDecReference.kt │ │ ├── LuaIndexBracketReference.kt │ │ ├── LuaIndexReference.kt │ │ ├── LuaNameReference.kt │ │ ├── LuaOverridingMethodReference.kt │ │ ├── LuaReference.kt │ │ ├── LuaReferenceContributor.kt │ │ └── LuaRequireReference.kt │ │ ├── region.flex │ │ ├── search │ │ ├── InferRecursionGuard.kt │ │ └── SearchContext.kt │ │ ├── spellchecker │ │ ├── LuaSpellBundledDictionaryProvider.kt │ │ └── LuaSpellcheckingStrategy.kt │ │ ├── string.flex │ │ ├── stubs │ │ ├── LuaBinaryExprStub.kt │ │ ├── LuaClassMemberStub.kt │ │ ├── LuaClassMethodStub.kt │ │ ├── LuaClosureExprStub.kt │ │ ├── LuaDocTableDefStub.kt │ │ ├── LuaDocTableFieldStub.kt │ │ ├── LuaDocTagAliasStub.kt │ │ ├── LuaDocTagClassStub.kt │ │ ├── LuaDocTagFieldStub.kt │ │ ├── LuaDocTagTypeStub.kt │ │ ├── LuaDocTyStub.kt │ │ ├── LuaExprStub.kt │ │ ├── LuaFileStub.kt │ │ ├── LuaFuncBodyOwnerStub.kt │ │ ├── LuaFuncStub.kt │ │ ├── LuaIndexExprStub.kt │ │ ├── LuaLiteralExprStub.kt │ │ ├── LuaLocalFuncDefStub.kt │ │ ├── LuaNameDefStub.kt │ │ ├── LuaNameExprStub.kt │ │ ├── LuaStubBase.kt │ │ ├── LuaTableExprStub.kt │ │ ├── LuaTableFieldStub.kt │ │ ├── LuaUnaryExprStub.kt │ │ ├── StubStreamExt.kt │ │ └── index │ │ │ ├── LuaAliasIndex.kt │ │ │ ├── LuaClassIndex.kt │ │ │ ├── LuaClassMemberIndex.kt │ │ │ ├── LuaShortNameIndex.kt │ │ │ ├── LuaStringArgIndex.kt │ │ │ ├── LuaSuperClassIndex.kt │ │ │ └── StubKeys.kt │ │ ├── ty │ │ ├── ClassMemberChain.kt │ │ ├── Declarations.kt │ │ ├── Expressions.kt │ │ ├── ITyVisitor.kt │ │ ├── LuaTypeInfer.kt │ │ ├── Ty.kt │ │ ├── TyArray.kt │ │ ├── TyClass.kt │ │ ├── TyFunction.kt │ │ ├── TyGeneric.kt │ │ ├── TyPrimitive.kt │ │ ├── TyRenderer.kt │ │ ├── TySerializer.kt │ │ ├── TyStringLiteral.kt │ │ ├── TySubstitutor.kt │ │ ├── TyTuple.kt │ │ └── TyUnion.kt │ │ ├── usages │ │ ├── LuaFindUsagesHandlerFactory.kt │ │ ├── LuaFindUsagesHandlerFactory.kt.182 │ │ ├── LuaFindUsagesHandlerFactory.kt.193 │ │ ├── LuaFindUsagesProvider.kt │ │ └── UsageTypeProvider.kt │ │ └── util │ │ └── Strings.kt └── resources │ ├── !!DONT_UNZIP_ME!!.txt │ ├── LuaBundle.properties │ ├── META-INF │ ├── emmylua-core.xml │ ├── emmylua-core.xml.171 │ ├── emmylua-project.xml │ ├── experiment.xml │ ├── plugin.xml │ └── pluginIcon.svg │ ├── codeStyle │ └── preview │ │ └── preview.lua.template │ ├── colorSchemes │ ├── Darcula.xml │ └── Default.xml │ ├── debugger │ ├── Emmy.lua │ ├── emmy │ │ ├── emmyHelper.lua │ │ ├── linux │ │ │ └── .gitkeep │ │ ├── mac │ │ │ └── .gitkeep │ │ ├── unix │ │ │ └── .gitkeep │ │ └── windows │ │ │ ├── x64 │ │ │ └── .gitkeep │ │ │ └── x86 │ │ │ └── .gitkeep │ ├── mobdebug │ │ └── mobdebug.lua │ └── windows │ │ ├── x64 │ │ ├── EasyHook.dll │ │ └── dbghelp.dll │ │ └── x86 │ │ ├── EasyHook.dll │ │ └── dbghelp.dll │ ├── errorreporting │ ├── report-bundle.properties │ └── token.bin │ ├── fileTemplates │ ├── internal │ │ └── Tutorial.lua.ft │ └── j2ee │ │ └── NewLua.lua.ft │ ├── icons │ ├── annotation.png │ ├── annotation@2x.png │ ├── console.svg │ ├── console_dark.svg │ ├── cpp.png │ ├── cpp.svg │ ├── cpp@2x.png │ ├── csharp.png │ ├── csharp.svg │ ├── csharp@2x.png │ ├── frame.svg │ ├── frame_dark.svg │ ├── lua.png │ ├── lua.svg │ ├── lua@2x.png │ ├── lua_layer.svg │ ├── lua_module.svg │ ├── lua_project.svg │ ├── lua_root.svg │ ├── meta.png │ ├── meta.svg │ ├── meta@2x.png │ ├── module.png │ ├── module.svg │ ├── module@2x.png │ ├── tail.png │ └── tail@2x.png │ ├── inspectionDescriptions │ ├── AssignTypeInspection.html │ ├── DuplicateClassDeclaration.html │ ├── EmptyBody.html │ ├── GlobalNameCanbeLocal.html │ ├── LanguageLevelInspection.html │ ├── LocalNameShadowed.html │ ├── LuaDeprecationInspection.html │ ├── MatchFunctionSignatureInspection.html │ ├── RemoveUnusedLocal.html │ ├── ReturnTypeInspection.html │ ├── SimplifyLocalAssignment.html │ ├── UndeclaredVariableInspection.html │ └── UnresolvedClassInspection.html │ ├── intentionDescriptions │ ├── AppendCallParenIntention │ │ └── description.html │ ├── ComputeConstantValueIntention │ │ └── description.html │ ├── CreateFieldFromParameterIntention │ │ └── description.html │ ├── CreateFunctionDocIntention │ │ └── description.html │ ├── CreateFunctionReturnAnnotationIntention │ │ └── description.html │ ├── CreateMethodIntention │ │ └── description.html │ ├── CreateParameterAnnotationIntention │ │ └── description.html │ ├── CreateTypeAnnotationIntention │ │ └── description.html │ ├── InvertBooleanIntention │ │ └── description.html │ ├── RemoveCallParenIntention │ │ └── description.html │ └── SetVisibilityIntention │ │ └── description.html │ ├── liveTemplates │ └── lua.xml │ ├── postfixTemplates │ ├── LuaCheckIfNotNilPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaCheckNilPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaDecreasePostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaForAPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaForIPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaForPPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaIfNotPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaIfPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaIncreasePostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaLocalPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaParPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaPrintPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaReturnPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── LuaToNumberPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ └── LuaToStringPostfixTemplate │ │ ├── after.lua.template │ │ ├── before.lua.template │ │ └── description.html │ ├── spellchecker │ └── lua.dic │ └── std │ ├── Lua50 │ ├── builtin.lua │ ├── coroutine.lua │ ├── debug.lua │ ├── global.lua │ ├── io.lua │ ├── math.lua │ ├── os.lua │ ├── string.lua │ └── table.lua │ ├── Lua51 │ ├── builtin.lua │ ├── coroutine.lua │ ├── debug.lua │ ├── global.lua │ ├── io.lua │ ├── math.lua │ ├── os.lua │ ├── package.lua │ ├── string.lua │ └── table.lua │ ├── Lua52 │ ├── bit32.lua │ ├── builtin.lua │ ├── coroutine.lua │ ├── debug.lua │ ├── global.lua │ ├── io.lua │ ├── math.lua │ ├── os.lua │ ├── package.lua │ ├── string.lua │ └── table.lua │ ├── Lua53 │ ├── builtin.lua │ ├── coroutine.lua │ ├── debug.lua │ ├── global.lua │ ├── io.lua │ ├── math.lua │ ├── os.lua │ ├── package.lua │ ├── string.lua │ ├── table.lua │ └── utf8.lua │ └── Lua54 │ ├── builtin.lua │ ├── coroutine.lua │ ├── debug.lua │ ├── global.lua │ ├── io.lua │ ├── math.lua │ ├── os.lua │ ├── package.lua │ ├── string.lua │ ├── table.lua │ └── utf8.lua └── test ├── kotlin └── com │ └── korioz │ └── intellij │ └── test │ ├── FileTree.kt │ ├── LuaTestBase.kt │ ├── completion │ ├── ParsingTest.kt │ ├── TestAlias.kt │ ├── TestArgHistory.kt │ ├── TestCompletion.kt │ ├── TestCompletionBase.kt │ ├── TestModule.kt │ ├── TestSelf.kt │ ├── TestShouldBe.kt │ ├── TestStringLiteralType.kt │ └── TestTuple.kt │ ├── editor │ └── issue.kt │ ├── generic │ └── GenericTest.kt │ ├── inspections │ ├── LocalNameShadowedTest.kt │ ├── LuaInspectionsTestBase.kt │ ├── MatchFunctionSignatureTest.kt │ ├── ReturnTypeInspectionTest.kt │ └── UndeclaredVariableTest.kt │ ├── refactoring │ ├── MoveFileTest.kt │ └── RenameTest.kt │ ├── structure │ └── StructureViewTest.kt │ └── vararg │ └── VarargTest.kt └── resources ├── completion ├── class.lua ├── globals.lua ├── testAnnotationArray.lua ├── testAnnotationDict.lua ├── testAnnotationFun.lua ├── testAnonymous.lua ├── testCompletion.lua ├── testParam.lua └── testSelf.lua ├── refactoring └── moveFile │ ├── after │ ├── B.lua │ └── to │ │ ├── A.lua │ │ └── C.lua │ └── before │ ├── A.lua │ ├── B.lua │ └── to │ └── C.lua ├── structure └── testStructure.lua └── typeSafety └── typeSafety.lua /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Environment(环境) 2 | -------------- 3 | name | version 4 | ----------|---------- 5 | IDEA version | [e.g. IC2018.2 EAP, CL2018.1.2] 6 | EmmyLua version | [e.g. v1.2.5] 7 | OS | [e.g. OSX 10.13.4, Windows 10] 8 | 9 | What are the steps to reproduce this issue?(重现步骤?) 10 | ------------------------------------------------ 11 | 1. … 12 | 2. … 13 | 3. … 14 | 15 | What happens?(出现什么问题?) 16 | ------------- 17 | … 18 | 19 | What were you expecting to happen?(期望?) 20 | ----------------------------------------- 21 | … 22 | 23 | Any logs, error output, etc?(有没有什么log, error输出?) 24 | ------------------------------ 25 | (If it’s long, please paste to https://ghostbin.com/ and insert the link here.) 26 | 27 | 28 | Any other comments?(其它说明) 29 | ------------------------ 30 | … -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Plugin 2 | 3 | on: 4 | push: 5 | branches: [ "main" ] 6 | pull_request: 7 | branches: [ "main" ] 8 | 9 | permissions: 10 | contents: read 11 | 12 | jobs: 13 | build: 14 | 15 | runs-on: ubuntu-latest 16 | 17 | env: 18 | CI: true 19 | CI_BUILD_VERSION: 1.3.7.${{ github.run_number }} 20 | 21 | steps: 22 | - name: Checkout 23 | uses: actions/checkout@v3 24 | 25 | - name: Set up JDK 17 26 | uses: actions/setup-java@v3 27 | with: 28 | java-version: '17' 29 | distribution: 'temurin' 30 | 31 | - name: Build 2023.1 32 | run: ./gradlew buildPlugin -DIDEA_VER=231 33 | 34 | - name: Upload artifact 35 | uses: actions/upload-artifact@v3.1.0 36 | with: 37 | name: v${{ env.CI_BUILD_VERSION }} 38 | path: build/distributions/*.zip 39 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | build 3 | temp 4 | publish_tmp 5 | .idea 6 | !.idea/IntelliJ-Lua.iml 7 | !.idea/modules.xml 8 | *.skeleton 9 | *.java~ 10 | .gradle 11 | jflex*.jar 12 | *.diff 13 | *.dll 14 | *.exe 15 | *.so 16 | *.dylib 17 | /*.zip 18 | 19 | .vs 20 | */Debug 21 | */Release 22 | *.log 23 | *.tlog 24 | *.obj 25 | *.sbr 26 | *.pdb 27 | *.idb 28 | *.user 29 | *.cache 30 | *.db 31 | *.opendb 32 | *.suo 33 | *.sdf 34 | *.iobj 35 | *.ipdb 36 | -------------------------------------------------------------------------------- /.idea/copyright/EmmyLua.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /.idea/libraries/libs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /design/emmy.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/design/emmy.ai -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/lexer/LuaDocLexer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.comment.lexer; 18 | 19 | import com.intellij.lexer.FlexAdapter; 20 | 21 | /** 22 | * Created by Client on 2018/3/2. 23 | */ 24 | public class LuaDocLexer extends FlexAdapter { 25 | public LuaDocLexer() { 26 | super(new _LuaDocLexer()); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocAccessModifier.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocAccessModifier extends LuaDocPsiElement { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocArrTy.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocArrTy extends LuaDocTy { 10 | 11 | @NotNull 12 | LuaDocTy getTy(); 13 | 14 | @NotNull 15 | ITy getType(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocClassNameRef.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.PsiReference; 8 | import com.korioz.intellij.lua.ty.ITy; 9 | 10 | public interface LuaDocClassNameRef extends LuaDocPsiElement { 11 | 12 | @NotNull 13 | PsiElement getId(); 14 | 15 | @NotNull 16 | PsiReference getReference(); 17 | 18 | @NotNull 19 | ITy resolveType(); 20 | 21 | } 22 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocCommentString.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocCommentString extends LuaDocPsiElement { 9 | 10 | @Nullable 11 | PsiElement getString(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocFunctionParam.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocFunctionParam extends LuaDocPsiElement { 9 | 10 | @Nullable 11 | LuaDocTy getTy(); 12 | 13 | @NotNull 14 | PsiElement getId(); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocFunctionTy.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocFunctionTy extends LuaDocTy { 10 | 11 | @NotNull 12 | List getFunctionParamList(); 13 | 14 | @NotNull 15 | List getGenericDefList(); 16 | 17 | @Nullable 18 | LuaDocTypeList getTypeList(); 19 | 20 | @Nullable 21 | LuaDocVarargParam getVarargParam(); 22 | 23 | @NotNull 24 | ITy getType(); 25 | 26 | @NotNull 27 | ITy getReturnType(); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocGeneralTy.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocGeneralTy extends LuaDocTy { 10 | 11 | @NotNull 12 | LuaDocClassNameRef getClassNameRef(); 13 | 14 | @NotNull 15 | ITy getType(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocGenericDef.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.PsiNameIdentifierOwner; 8 | 9 | public interface LuaDocGenericDef extends PsiNameIdentifierOwner, LuaDocPsiElement { 10 | 11 | @Nullable 12 | LuaDocClassNameRef getClassNameRef(); 13 | 14 | @NotNull 15 | PsiElement getId(); 16 | 17 | @Nullable 18 | PsiElement getNameIdentifier(); 19 | 20 | @NotNull 21 | PsiElement setName(@NotNull String newName); 22 | 23 | @Nullable 24 | String getName(); 25 | 26 | int getTextOffset(); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocGenericTy.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocGenericTy extends LuaDocTy { 10 | 11 | @NotNull 12 | List getTyList(); 13 | 14 | @NotNull 15 | ITy getType(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocParTy.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocParTy extends LuaDocTy { 10 | 11 | @Nullable 12 | LuaDocTy getTy(); 13 | 14 | @NotNull 15 | ITy getType(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocParamNameRef.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.PsiReference; 8 | 9 | public interface LuaDocParamNameRef extends LuaDocPsiElement { 10 | 11 | @NotNull 12 | PsiElement getId(); 13 | 14 | @NotNull 15 | PsiReference getReference(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocStringLiteralTy.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocStringLiteralTy extends LuaDocTy { 10 | 11 | @NotNull 12 | ITy getType(); 13 | 14 | @NotNull 15 | PsiElement getContent(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTableDef.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaDocTableDefStub; 9 | 10 | public interface LuaDocTableDef extends LuaDocPsiElement, StubBasedPsiElement { 11 | 12 | @NotNull 13 | List getTableFieldList(); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTableTy.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocTableTy extends LuaDocTy { 10 | 11 | @NotNull 12 | LuaDocTableDef getTableDef(); 13 | 14 | @NotNull 15 | ITy getType(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagAlias.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.psi.LuaTypeAlias; 8 | import com.intellij.psi.PsiNameIdentifierOwner; 9 | import com.intellij.psi.StubBasedPsiElement; 10 | import com.korioz.intellij.lua.stubs.LuaDocTagAliasStub; 11 | import com.korioz.intellij.lua.ty.ITy; 12 | 13 | public interface LuaDocTagAlias extends LuaTypeAlias, LuaDocPsiElement, PsiNameIdentifierOwner, LuaDocTag, StubBasedPsiElement { 14 | 15 | @Nullable 16 | LuaDocTy getTy(); 17 | 18 | @Nullable 19 | PsiElement getId(); 20 | 21 | @Nullable 22 | PsiElement getNameIdentifier(); 23 | 24 | @NotNull 25 | PsiElement setName(@NotNull String newName); 26 | 27 | @Nullable 28 | String getName(); 29 | 30 | int getTextOffset(); 31 | 32 | @NotNull 33 | ITy getType(); 34 | 35 | } 36 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagAuthor.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocTagAuthor extends LuaDocPsiElement { 9 | 10 | @Nullable 11 | LuaDocCommentString getCommentString(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagDef.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocTagDef extends LuaDocTag { 9 | 10 | @Nullable 11 | LuaDocCommentString getCommentString(); 12 | 13 | @NotNull 14 | PsiElement getTagName(); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagDeprecated.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocTagDeprecated extends LuaDocPsiElement { 9 | 10 | @Nullable 11 | LuaDocCommentString getCommentString(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagGenericList.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocTagGenericList extends LuaDocTag { 9 | 10 | @NotNull 11 | List getGenericDefList(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagLan.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocTagLan extends LuaDocTag { 9 | 10 | @Nullable 11 | LuaDocCommentString getCommentString(); 12 | 13 | @Nullable 14 | PsiElement getId(); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagOverload.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocTagOverload extends LuaDocTag { 9 | 10 | @Nullable 11 | LuaDocFunctionTy getFunctionTy(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagParam.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocTagParam extends LuaDocTag { 10 | 11 | @Nullable 12 | LuaDocCommentString getCommentString(); 13 | 14 | @Nullable 15 | LuaDocParamNameRef getParamNameRef(); 16 | 17 | @Nullable 18 | LuaDocTy getTy(); 19 | 20 | @NotNull 21 | ITy getType(); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagReturn.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocTagReturn extends LuaDocTag { 10 | 11 | @Nullable 12 | LuaDocCommentString getCommentString(); 13 | 14 | @Nullable 15 | LuaDocTypeList getTypeList(); 16 | 17 | @NotNull 18 | ITy resolveTypeAt(int index); 19 | 20 | @NotNull 21 | ITy getType(); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagSee.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.PsiReference; 8 | 9 | public interface LuaDocTagSee extends LuaDocTag { 10 | 11 | @Nullable 12 | LuaDocClassNameRef getClassNameRef(); 13 | 14 | @Nullable 15 | PsiElement getId(); 16 | 17 | @Nullable 18 | PsiReference getReference(); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagSince.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocTagSince extends LuaDocPsiElement { 9 | 10 | @Nullable 11 | LuaDocCommentString getCommentString(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagSuppress.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocTagSuppress extends LuaDocTag { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagType.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaDocTagTypeStub; 9 | import com.korioz.intellij.lua.ty.ITy; 10 | 11 | public interface LuaDocTagType extends LuaDocTag, StubBasedPsiElement { 12 | 13 | @Nullable 14 | LuaDocCommentString getCommentString(); 15 | 16 | @Nullable 17 | LuaDocTy getTy(); 18 | 19 | @NotNull 20 | ITy getType(); 21 | 22 | } 23 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTagVararg.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocTagVararg extends LuaDocTag { 10 | 11 | @Nullable 12 | LuaDocCommentString getCommentString(); 13 | 14 | @Nullable 15 | LuaDocTy getTy(); 16 | 17 | @NotNull 18 | ITy getType(); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTy.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocTy extends LuaDocType { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocTypeList.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocTypeList extends LuaDocPsiElement { 9 | 10 | @NotNull 11 | List getTyList(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocUnionTy.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocUnionTy extends LuaDocTy { 10 | 11 | @NotNull 12 | List getTyList(); 13 | 14 | @NotNull 15 | ITy getType(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocVarargParam.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.ty.ITy; 8 | 9 | public interface LuaDocVarargParam extends LuaDocPsiElement { 10 | 11 | @Nullable 12 | LuaDocTy getTy(); 13 | 14 | @NotNull 15 | ITy getType(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/LuaDocVersion.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaDocVersion extends LuaDocPsiElement { 9 | 10 | @Nullable 11 | LuaDocCommentString getCommentString(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/impl/LuaDocAccessModifierImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.comment.psi.LuaDocTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.comment.psi.*; 13 | 14 | public class LuaDocAccessModifierImpl extends ASTWrapperPsiElement implements LuaDocAccessModifier { 15 | 16 | public LuaDocAccessModifierImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaDocVisitor visitor) { 21 | visitor.visitAccessModifier(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/impl/LuaDocCommentStringImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.comment.psi.LuaDocTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.comment.psi.*; 13 | 14 | public class LuaDocCommentStringImpl extends ASTWrapperPsiElement implements LuaDocCommentString { 15 | 16 | public LuaDocCommentStringImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaDocVisitor visitor) { 21 | visitor.visitCommentString(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | @Override 31 | @Nullable 32 | public PsiElement getString() { 33 | return findChildByType(STRING); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/impl/LuaDocTagOverloadImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.comment.psi.LuaDocTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.comment.psi.*; 13 | 14 | public class LuaDocTagOverloadImpl extends ASTWrapperPsiElement implements LuaDocTagOverload { 15 | 16 | public LuaDocTagOverloadImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaDocVisitor visitor) { 21 | visitor.visitTagOverload(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | @Override 31 | @Nullable 32 | public LuaDocFunctionTy getFunctionTy() { 33 | return PsiTreeUtil.getChildOfType(this, LuaDocFunctionTy.class); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/impl/LuaDocTagSuppressImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.comment.psi.LuaDocTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.comment.psi.*; 13 | 14 | public class LuaDocTagSuppressImpl extends ASTWrapperPsiElement implements LuaDocTagSuppress { 15 | 16 | public LuaDocTagSuppressImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaDocVisitor visitor) { 21 | visitor.visitTagSuppress(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/impl/LuaDocTyImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.comment.psi.LuaDocTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.comment.psi.*; 13 | 14 | public abstract class LuaDocTyImpl extends ASTWrapperPsiElement implements LuaDocTy { 15 | 16 | public LuaDocTyImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaDocVisitor visitor) { 21 | visitor.visitTy(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/comment/psi/impl/LuaDocTypeListImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.comment.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.comment.psi.LuaDocTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.comment.psi.*; 13 | 14 | public class LuaDocTypeListImpl extends ASTWrapperPsiElement implements LuaDocTypeList { 15 | 16 | public LuaDocTypeListImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaDocVisitor visitor) { 21 | visitor.visitTypeList(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | @Override 31 | @NotNull 32 | public List getTyList() { 33 | return PsiTreeUtil.getChildrenOfTypeAsList(this, LuaDocTy.class); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/lexer/LuaLexer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.lexer; 18 | 19 | import com.intellij.lexer.FlexAdapter; 20 | import com.korioz.intellij.lua.lang.LuaLanguageLevel; 21 | 22 | public class LuaLexer extends FlexAdapter { 23 | public LuaLexer(LuaLanguageLevel level) { 24 | super(new _LuaLexer(level)); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/lexer/LuaRegionLexer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.lexer; 18 | 19 | import com.intellij.lexer.FlexAdapter; 20 | 21 | public class LuaRegionLexer extends FlexAdapter { 22 | public LuaRegionLexer() { 23 | super(new _LuaRegionLexer()); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaArgs.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | 10 | public interface LuaArgs extends LuaPsiElement, StubBasedPsiElement { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaAssignStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | 10 | public interface LuaAssignStat extends LuaStatement, LuaDeclaration, StubBasedPsiElement { 11 | 12 | @NotNull 13 | List getExprListList(); 14 | 15 | @NotNull 16 | PsiElement getAssign(); 17 | 18 | @NotNull 19 | LuaExprList getVarExprList(); 20 | 21 | @Nullable 22 | LuaExprList getValueExprList(); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaAttribute.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaAttribute extends LuaPsiElement { 9 | 10 | @Nullable 11 | PsiElement getId(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaBinaryExpr.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.stubs.LuaExprStubElement; 8 | import com.korioz.intellij.lua.stubs.LuaBinaryExprStub; 9 | 10 | public interface LuaBinaryExpr extends LuaExpr, LuaExprStubElement { 11 | 12 | @NotNull 13 | LuaBinaryOp getBinaryOp(); 14 | 15 | @Nullable 16 | LuaExpr getExpr(); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaBinaryOp.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaBinaryOp extends LuaPsiElement { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaBlock.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaBlock extends LuaDeclarationScope { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaBreakStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaBreakStat extends LuaStatement { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaCallExpr.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaExprStub; 9 | import com.korioz.intellij.lua.search.SearchContext; 10 | import com.korioz.intellij.lua.ty.ITy; 11 | 12 | public interface LuaCallExpr extends LuaExpr, StubBasedPsiElement { 13 | 14 | @NotNull 15 | LuaArgs getArgs(); 16 | 17 | @NotNull 18 | LuaExpr getExpr(); 19 | 20 | @NotNull 21 | ITy guessParentType(@NotNull SearchContext context); 22 | 23 | @Nullable 24 | PsiElement getFirstStringArg(); 25 | 26 | boolean isMethodDotCall(); 27 | 28 | boolean isMethodColonCall(); 29 | 30 | boolean isFunctionCall(); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaClassMethodName.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | 10 | public interface LuaClassMethodName extends LuaPsiElement, StubBasedPsiElement { 11 | 12 | @NotNull 13 | LuaExpr getExpr(); 14 | 15 | @Nullable 16 | PsiElement getId(); 17 | 18 | @Nullable 19 | PsiElement getDot(); 20 | 21 | @Nullable 22 | PsiElement getColon(); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaClosureExpr.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.stubs.LuaExprStubElement; 8 | import com.korioz.intellij.lua.stubs.LuaClosureExprStub; 9 | import com.korioz.intellij.lua.search.SearchContext; 10 | import com.korioz.intellij.lua.ty.ITy; 11 | 12 | public interface LuaClosureExpr extends LuaExpr, LuaFuncBodyOwner, LuaExprStubElement { 13 | 14 | @Nullable 15 | LuaFuncBody getFuncBody(); 16 | 17 | @NotNull 18 | List getParamNameDefList(); 19 | 20 | @NotNull 21 | ITy guessReturnType(@NotNull SearchContext searchContext); 22 | 23 | @NotNull 24 | LuaParamInfo[] getParams(); 25 | 26 | } 27 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaDoStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | 10 | public interface LuaDoStat extends LuaStatement, LuaIndentRange, StubBasedPsiElement { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaEmptyStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaEmptyStat extends LuaStatement { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaExpr.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaExprStub; 9 | 10 | public interface LuaExpr extends LuaTypeGuessable, StubBasedPsiElement { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaExprList.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | import com.korioz.intellij.lua.search.SearchContext; 10 | import com.korioz.intellij.lua.ty.ITy; 11 | 12 | public interface LuaExprList extends LuaPsiElement, StubBasedPsiElement { 13 | 14 | @NotNull 15 | List getExprList(); 16 | 17 | @NotNull 18 | ITy guessTypeAt(@NotNull SearchContext context); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaExprStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | 10 | public interface LuaExprStat extends LuaStatement, StubBasedPsiElement { 11 | 12 | @NotNull 13 | LuaExpr getExpr(); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaForAStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaForAStat extends LuaStatement, LuaParametersOwner, LuaLoop, LuaIndentRange, LuaDeclarationScope { 9 | 10 | @NotNull 11 | List getExprList(); 12 | 13 | @NotNull 14 | LuaParamNameDef getParamNameDef(); 15 | 16 | @NotNull 17 | List getParamNameDefList(); 18 | 19 | } 20 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaForBStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaForBStat extends LuaStatement, LuaParametersOwner, LuaLoop, LuaIndentRange, LuaDeclarationScope { 9 | 10 | @Nullable 11 | LuaExprList getExprList(); 12 | 13 | @NotNull 14 | List getParamNameDefList(); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaFuncBody.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | 10 | public interface LuaFuncBody extends LuaIndentRange, LuaDeclarationScope, StubBasedPsiElement { 11 | 12 | @NotNull 13 | List getParamNameDefList(); 14 | 15 | @Nullable 16 | PsiElement getRparen(); 17 | 18 | @Nullable 19 | PsiElement getEllipsis(); 20 | 21 | } 22 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaGotoStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.PsiReference; 8 | 9 | public interface LuaGotoStat extends LuaStatement { 10 | 11 | @Nullable 12 | PsiElement getId(); 13 | 14 | @NotNull 15 | PsiReference[] getReferences(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaIfStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | 10 | public interface LuaIfStat extends LuaStatement, LuaIndentRange, StubBasedPsiElement { 11 | 12 | @NotNull 13 | List getExprList(); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaLabelStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.PsiNameIdentifierOwner; 8 | 9 | public interface LuaLabelStat extends LuaStatement, PsiNameIdentifierOwner { 10 | 11 | @Nullable 12 | PsiElement getId(); 13 | 14 | @Nullable 15 | PsiElement getNameIdentifier(); 16 | 17 | int getTextOffset(); 18 | 19 | @NotNull 20 | PsiElement setName(@NotNull String name); 21 | 22 | @Nullable 23 | String getName(); 24 | 25 | } 26 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaListArgs.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaListArgs extends LuaArgs { 9 | 10 | @NotNull 11 | List getExprList(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaLiteralExpr.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.stubs.LuaExprStubElement; 8 | import com.korioz.intellij.lua.stubs.LuaLiteralExprStub; 9 | 10 | public interface LuaLiteralExpr extends LuaExpr, LuaExprStubElement { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaLocalDef.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | import com.korioz.intellij.lua.comment.psi.api.LuaComment; 10 | 11 | public interface LuaLocalDef extends LuaDeclaration, LuaStatement, LuaDeclarationScope, StubBasedPsiElement { 12 | 13 | @Nullable 14 | LuaExprList getExprList(); 15 | 16 | @Nullable 17 | LuaNameList getNameList(); 18 | 19 | @Nullable 20 | LuaComment getComment(); 21 | 22 | @Nullable 23 | PsiElement getAssign(); 24 | 25 | } 26 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaNameDef.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.PsiNameIdentifierOwner; 8 | import com.intellij.psi.StubBasedPsiElement; 9 | import com.korioz.intellij.lua.stubs.LuaNameDefStub; 10 | import com.intellij.psi.search.SearchScope; 11 | 12 | public interface LuaNameDef extends LuaNamedElement, LuaTypeGuessable, PsiNameIdentifierOwner, StubBasedPsiElement { 13 | 14 | @NotNull 15 | PsiElement getId(); 16 | 17 | @NotNull 18 | String getName(); 19 | 20 | @NotNull 21 | PsiElement setName(@NotNull String name); 22 | 23 | @NotNull 24 | PsiElement getNameIdentifier(); 25 | 26 | @NotNull 27 | SearchScope getUseScope(); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaNameExpr.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.PsiNameIdentifierOwner; 8 | import com.korioz.intellij.lua.stubs.LuaExprStubElement; 9 | import com.korioz.intellij.lua.stubs.LuaNameExprStub; 10 | import com.intellij.navigation.ItemPresentation; 11 | import com.intellij.psi.PsiReference; 12 | 13 | public interface LuaNameExpr extends LuaExpr, PsiNameIdentifierOwner, LuaExprStubElement, LuaModuleClassField { 14 | 15 | @NotNull 16 | PsiElement getId(); 17 | 18 | @NotNull 19 | PsiElement setName(@NotNull String name); 20 | 21 | @NotNull 22 | String getName(); 23 | 24 | @NotNull 25 | PsiElement getNameIdentifier(); 26 | 27 | @NotNull 28 | ItemPresentation getPresentation(); 29 | 30 | @NotNull 31 | PsiReference[] getReferences(); 32 | 33 | boolean isDeprecated(); 34 | 35 | //WARNING: toString(...) is skipped 36 | //matching toString(LuaNameExpr, ...) 37 | //methods are not found in LuaPsiImplUtilKt 38 | 39 | } 40 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaNameList.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | 10 | public interface LuaNameList extends LuaPsiElement, StubBasedPsiElement { 11 | 12 | @NotNull 13 | List getAttributeList(); 14 | 15 | @NotNull 16 | List getNameDefList(); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaParamNameDef.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaNameDefStub; 9 | 10 | public interface LuaParamNameDef extends LuaNameDef, StubBasedPsiElement { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaParenExpr.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaExprStub; 9 | 10 | public interface LuaParenExpr extends LuaExpr, StubBasedPsiElement { 11 | 12 | @Nullable 13 | LuaExpr getExpr(); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaRepeatStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaRepeatStat extends LuaStatement, LuaLoop, LuaIndentRange, LuaDeclarationScope { 9 | 10 | @Nullable 11 | LuaExpr getExpr(); 12 | 13 | @Nullable 14 | PsiElement getUntil(); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaReturnStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | 10 | public interface LuaReturnStat extends LuaStatement, StubBasedPsiElement { 11 | 12 | @Nullable 13 | LuaExprList getExprList(); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaShebangLine.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaShebangLine extends LuaPsiElement { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaSingleArg.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaSingleArg extends LuaArgs { 9 | 10 | @NotNull 11 | LuaExpr getExpr(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaStatement.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.comment.psi.api.LuaComment; 8 | 9 | public interface LuaStatement extends LuaCommentOwner { 10 | 11 | @Nullable 12 | LuaComment getComment(); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaTableExpr.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.stubs.LuaExprStubElement; 8 | import com.korioz.intellij.lua.stubs.LuaTableExprStub; 9 | 10 | public interface LuaTableExpr extends LuaExpr, LuaIndentRange, LuaExprStubElement { 11 | 12 | @NotNull 13 | List getTableFieldList(); 14 | 15 | @NotNull 16 | List getTableFieldSepList(); 17 | 18 | @Nullable 19 | LuaTableField findField(@NotNull String fieldName); 20 | 21 | } 22 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaTableFieldSep.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaTableFieldSep extends LuaPsiElement { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaUnaryExpr.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.korioz.intellij.lua.stubs.LuaExprStubElement; 8 | import com.korioz.intellij.lua.stubs.LuaUnaryExprStub; 9 | 10 | public interface LuaUnaryExpr extends LuaExpr, LuaExprStubElement { 11 | 12 | @Nullable 13 | LuaExpr getExpr(); 14 | 15 | @NotNull 16 | LuaUnaryOp getUnaryOp(); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaUnaryOp.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaUnaryOp extends LuaPsiElement { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaVarList.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | import com.intellij.psi.StubBasedPsiElement; 8 | import com.korioz.intellij.lua.stubs.LuaPlaceholderStub; 9 | 10 | public interface LuaVarList extends LuaExprList, StubBasedPsiElement { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/LuaWhileStat.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.psi.PsiElement; 7 | 8 | public interface LuaWhileStat extends LuaStatement, LuaLoop, LuaIndentRange { 9 | 10 | @Nullable 11 | LuaExpr getExpr(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaAttributeImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.psi.*; 13 | 14 | public class LuaAttributeImpl extends ASTWrapperPsiElement implements LuaAttribute { 15 | 16 | public LuaAttributeImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaVisitor visitor) { 21 | visitor.visitAttribute(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | @Override 31 | @Nullable 32 | public PsiElement getId() { 33 | return findChildByType(ID); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaBinaryOpImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.psi.*; 13 | 14 | public class LuaBinaryOpImpl extends ASTWrapperPsiElement implements LuaBinaryOp { 15 | 16 | public LuaBinaryOpImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaVisitor visitor) { 21 | visitor.visitBinaryOp(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaBlockImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.psi.*; 13 | 14 | public class LuaBlockImpl extends ASTWrapperPsiElement implements LuaBlock { 15 | 16 | public LuaBlockImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaVisitor visitor) { 21 | visitor.visitBlock(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaBreakStatImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.korioz.intellij.lua.psi.*; 12 | 13 | public class LuaBreakStatImpl extends LuaStatementImpl implements LuaBreakStat { 14 | 15 | public LuaBreakStatImpl(@NotNull ASTNode node) { 16 | super(node); 17 | } 18 | 19 | @Override 20 | public void accept(@NotNull LuaVisitor visitor) { 21 | visitor.visitBreakStat(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaEmptyStatImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.korioz.intellij.lua.psi.*; 12 | 13 | public class LuaEmptyStatImpl extends LuaStatementImpl implements LuaEmptyStat { 14 | 15 | public LuaEmptyStatImpl(@NotNull ASTNode node) { 16 | super(node); 17 | } 18 | 19 | @Override 20 | public void accept(@NotNull LuaVisitor visitor) { 21 | visitor.visitEmptyStat(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaRepeatStatImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.korioz.intellij.lua.psi.*; 12 | 13 | public class LuaRepeatStatImpl extends LuaStatementImpl implements LuaRepeatStat { 14 | 15 | public LuaRepeatStatImpl(@NotNull ASTNode node) { 16 | super(node); 17 | } 18 | 19 | @Override 20 | public void accept(@NotNull LuaVisitor visitor) { 21 | visitor.visitRepeatStat(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | @Override 31 | @Nullable 32 | public LuaExpr getExpr() { 33 | return PsiTreeUtil.getChildOfType(this, LuaExpr.class); 34 | } 35 | 36 | @Override 37 | @Nullable 38 | public PsiElement getUntil() { 39 | return findChildByType(UNTIL); 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaShebangLineImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.psi.*; 13 | 14 | public class LuaShebangLineImpl extends ASTWrapperPsiElement implements LuaShebangLine { 15 | 16 | public LuaShebangLineImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaVisitor visitor) { 21 | visitor.visitShebangLine(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaStatementImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.psi.*; 13 | import com.korioz.intellij.lua.comment.psi.api.LuaComment; 14 | 15 | public class LuaStatementImpl extends ASTWrapperPsiElement implements LuaStatement { 16 | 17 | public LuaStatementImpl(@NotNull ASTNode node) { 18 | super(node); 19 | } 20 | 21 | public void accept(@NotNull LuaVisitor visitor) { 22 | visitor.visitStatement(this); 23 | } 24 | 25 | @Override 26 | public void accept(@NotNull PsiElementVisitor visitor) { 27 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 28 | else super.accept(visitor); 29 | } 30 | 31 | @Override 32 | @Nullable 33 | public LuaComment getComment() { 34 | return LuaPsiImplUtilKt.getComment(this); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaTableFieldSepImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.psi.*; 13 | 14 | public class LuaTableFieldSepImpl extends ASTWrapperPsiElement implements LuaTableFieldSep { 15 | 16 | public LuaTableFieldSepImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaVisitor visitor) { 21 | visitor.visitTableFieldSep(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaUnaryOpImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.intellij.extapi.psi.ASTWrapperPsiElement; 12 | import com.korioz.intellij.lua.psi.*; 13 | 14 | public class LuaUnaryOpImpl extends ASTWrapperPsiElement implements LuaUnaryOp { 15 | 16 | public LuaUnaryOpImpl(@NotNull ASTNode node) { 17 | super(node); 18 | } 19 | 20 | public void accept(@NotNull LuaVisitor visitor) { 21 | visitor.visitUnaryOp(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gen/com/korioz/intellij/lua/psi/impl/LuaWhileStatImpl.java: -------------------------------------------------------------------------------- 1 | // This is a generated file. Not intended for manual editing. 2 | package com.korioz.intellij.lua.psi.impl; 3 | 4 | import java.util.List; 5 | import org.jetbrains.annotations.*; 6 | import com.intellij.lang.ASTNode; 7 | import com.intellij.psi.PsiElement; 8 | import com.intellij.psi.PsiElementVisitor; 9 | import com.intellij.psi.util.PsiTreeUtil; 10 | import static com.korioz.intellij.lua.psi.LuaTypes.*; 11 | import com.korioz.intellij.lua.psi.*; 12 | 13 | public class LuaWhileStatImpl extends LuaStatementImpl implements LuaWhileStat { 14 | 15 | public LuaWhileStatImpl(@NotNull ASTNode node) { 16 | super(node); 17 | } 18 | 19 | @Override 20 | public void accept(@NotNull LuaVisitor visitor) { 21 | visitor.visitWhileStat(this); 22 | } 23 | 24 | @Override 25 | public void accept(@NotNull PsiElementVisitor visitor) { 26 | if (visitor instanceof LuaVisitor) accept((LuaVisitor)visitor); 27 | else super.accept(visitor); 28 | } 29 | 30 | @Override 31 | @Nullable 32 | public LuaExpr getExpr() { 33 | return PsiTreeUtil.getChildOfType(this, LuaExpr.class); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | version = 1.4.2 18 | # https://github.com/EmmyLua/EmmyLuaDebugger/releases 19 | emmyDebuggerVersion = 1.1.0 20 | # https://github.com/EmmyLua/EmmyLuaLegacyDebugger/releases 21 | emmyLegacyDebuggerVersion = 1.0.1 22 | 23 | javaVersion = 1.8 24 | 25 | artifactsPath = build/artifacts 26 | 27 | org.gradle.jvmargs=-Xmx1536m -Dfile.encoding=utf-8 28 | kotlin.stdlib.default.dependency = false -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /libs/markdown.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/libs/markdown.jar -------------------------------------------------------------------------------- /license/EasyHook-license.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 Christoph Husse & Copyright (c) 2012 Justin Stenning 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | rootProject.name = 'cfxEmmyLua' -------------------------------------------------------------------------------- /snapshot/find_usages.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/find_usages.gif -------------------------------------------------------------------------------- /snapshot/go_to_class.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/go_to_class.gif -------------------------------------------------------------------------------- /snapshot/go_to_symbol.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/go_to_symbol.gif -------------------------------------------------------------------------------- /snapshot/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/logo.png -------------------------------------------------------------------------------- /snapshot/method_override_line_marker.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/method_override_line_marker.gif -------------------------------------------------------------------------------- /snapshot/method_separators.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/method_separators.png -------------------------------------------------------------------------------- /snapshot/method_separators_cfg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/method_separators_cfg.png -------------------------------------------------------------------------------- /snapshot/overview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/overview.gif -------------------------------------------------------------------------------- /snapshot/param_hints.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/param_hints.png -------------------------------------------------------------------------------- /snapshot/param_hints_cfg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/param_hints_cfg.png -------------------------------------------------------------------------------- /snapshot/quick_documentation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/quick_documentation.gif -------------------------------------------------------------------------------- /snapshot/rename.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/rename.gif -------------------------------------------------------------------------------- /snapshot/structure_view.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/snapshot/structure_view.jpg -------------------------------------------------------------------------------- /src/main/compat/com/intellij/codeInsight/daemon/AbstractLineMarkerProvider.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.intellij.codeInsight.daemon 18 | 19 | import com.intellij.psi.PsiElement 20 | 21 | abstract class AbstractLineMarkerProvider : LineMarkerProvider { 22 | override fun collectSlowLineMarkers(list: List, collection: MutableCollection>) { 23 | collectSlowLineMarkersExt(list, collection) 24 | } 25 | 26 | abstract fun collectSlowLineMarkersExt(list: List, collection: MutableCollection>) 27 | } -------------------------------------------------------------------------------- /src/main/compat/com/intellij/codeInsight/daemon/AbstractLineMarkerProvider.kt.201: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.intellij.codeInsight.daemon 18 | 19 | import com.intellij.psi.PsiElement 20 | 21 | abstract class AbstractLineMarkerProvider : LineMarkerProvider { 22 | override fun collectSlowLineMarkers(list: List, collection: MutableCollection>) { 23 | collectSlowLineMarkersExt(list, collection) 24 | } 25 | 26 | abstract fun collectSlowLineMarkersExt(list: List, collection: MutableCollection>) 27 | } -------------------------------------------------------------------------------- /src/main/compat/com/korioz/intellij/lua/hierarchy/call/compatUtils.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.hierarchy.call 18 | 19 | import javax.swing.JTree 20 | 21 | typealias CreateTreesMap = MutableMap -------------------------------------------------------------------------------- /src/main/compat/com/korioz/intellij/lua/hierarchy/call/compatUtils.kt.203: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.hierarchy.call 18 | 19 | import javax.swing.JTree 20 | 21 | typealias CreateTreesMap = MutableMap -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/codeInsight/editorActions/LuaQuoteHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.codeInsight.editorActions; 18 | 19 | import com.intellij.codeInsight.editorActions.SimpleTokenSetQuoteHandler; 20 | import com.intellij.psi.tree.TokenSet; 21 | import com.korioz.intellij.lua.psi.LuaTypes; 22 | 23 | /** 24 | * LuaQuoteHandler 25 | * Created by Korioz on 2017/2/19. 26 | */ 27 | public class LuaQuoteHandler extends SimpleTokenSetQuoteHandler { 28 | public LuaQuoteHandler() { 29 | super(TokenSet.create(LuaTypes.STRING)); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/codeInsight/inspection/StrictInspection.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.codeInsight.inspection 18 | 19 | import com.intellij.codeInspection.LocalInspectionTool 20 | 21 | abstract class StrictInspection : LocalInspectionTool() { 22 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/comment/lexer/LuaDocLexerAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.comment.lexer; 18 | 19 | import com.intellij.lexer.FlexAdapter; 20 | 21 | public class LuaDocLexerAdapter extends FlexAdapter { 22 | public LuaDocLexerAdapter() { 23 | super(new _LuaDocLexer()); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/comment/psi/LuaDocElementType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.comment.psi; 18 | 19 | import com.intellij.psi.tree.IElementType; 20 | import com.korioz.intellij.lua.lang.LuaLanguage; 21 | 22 | /** 23 | * Created by Korioz on 2016/11/21. 24 | * 25 | * @qq 272669294 26 | */ 27 | public class LuaDocElementType extends IElementType { 28 | public LuaDocElementType(String debugName) { 29 | super(debugName, LuaLanguage.INSTANCE); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/comment/psi/LuaDocNamedElement.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.comment.psi; 18 | 19 | import com.korioz.intellij.lua.psi.LuaNamedElement; 20 | 21 | /** 22 | * 23 | * Created by Korioz on 2016/11/29. 24 | */ 25 | public interface LuaDocNamedElement extends LuaDocPsiElement, LuaNamedElement { 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/comment/psi/LuaDocPsiElement.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.comment.psi; 18 | 19 | import com.korioz.intellij.lua.psi.LuaPsiElement; 20 | 21 | /** 22 | * 注释接口 23 | * Created by Korioz on 2016/11/25. 24 | */ 25 | public interface LuaDocPsiElement extends LuaPsiElement { 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/comment/psi/LuaDocTag.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.comment.psi 18 | 19 | interface LuaDocTag : LuaDocPsiElement -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/comment/psi/LuaDocTokenType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.comment.psi; 18 | 19 | import com.intellij.psi.tree.IElementType; 20 | import com.korioz.intellij.lua.lang.LuaLanguage; 21 | 22 | /** 23 | * Created by Korioz on 2016/11/21. 24 | * 25 | * @qq 272669294 26 | */ 27 | public class LuaDocTokenType extends IElementType { 28 | public LuaDocTokenType(String debugName) { 29 | super(debugName, LuaLanguage.INSTANCE); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/comment/psi/LuaDocType.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.comment.psi 18 | 19 | import com.korioz.intellij.lua.ty.ITy 20 | 21 | interface LuaDocType : LuaDocPsiElement { 22 | fun getType(): ITy 23 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/debugger/IRemoteConfiguration.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.debugger 18 | 19 | /** 20 | * 21 | * Created by Korioz on 2017/5/7. 22 | */ 23 | interface IRemoteConfiguration { 24 | val port: Int 25 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/debugger/LuaSuspendContext.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.debugger 18 | 19 | import com.intellij.xdebugger.frame.XSuspendContext 20 | 21 | /** 22 | * 23 | * Created by Korioz on 2016/12/31. 24 | */ 25 | class LuaSuspendContext(private val active: LuaExecutionStack) : XSuspendContext() { 26 | 27 | override fun getActiveExecutionStack() = active 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/LuaBreadcrumbsProvider.kt.171: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/java/com/korioz/intellij/lua/editor/LuaBreadcrumbsProvider.kt.171 -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/LuaRefactoringSupportProvider.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.editor 18 | 19 | import com.intellij.lang.refactoring.RefactoringSupportProvider 20 | import com.intellij.psi.PsiElement 21 | 22 | /** 23 | * 24 | * Created by Korioz on 2016/12/20. 25 | */ 26 | class LuaRefactoringSupportProvider : RefactoringSupportProvider() { 27 | override fun isMemberInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { 28 | return true 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/formatter/LuaFormatContext.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.editor.formatter 18 | 19 | import com.intellij.formatting.Alignment 20 | import com.intellij.formatting.SpacingBuilder 21 | import com.intellij.psi.codeStyle.CommonCodeStyleSettings 22 | import com.korioz.intellij.lua.editor.formatter.blocks.LuaScriptBlock 23 | 24 | class LuaFormatContext(val settings: CommonCodeStyleSettings, val luaSettings: LuaCodeStyleSettings, val spaceBuilder: SpacingBuilder) { 25 | var eqAlignment: Alignment? = null 26 | var lastBlock: LuaScriptBlock? = null 27 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/structure/LuaClassElement.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.editor.structure 18 | 19 | import com.korioz.intellij.lua.comment.psi.LuaDocTagClass 20 | import com.korioz.intellij.lua.lang.LuaIcons 21 | 22 | /** 23 | * Created by Korioz on 2016/12/13. 24 | */ 25 | class LuaClassElement(docTagClass: LuaDocTagClass, className: String? = null) 26 | : LuaVarElement(docTagClass, className ?: docTagClass.name, LuaIcons.CLASS) 27 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/structure/LuaClassFieldElement.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.editor.structure 18 | 19 | import com.korioz.intellij.lua.lang.LuaIcons 20 | import com.korioz.intellij.lua.psi.LuaPsiElement 21 | 22 | class LuaClassFieldElement(target: LuaPsiElement, name: String) 23 | : LuaTreeElement(target, name, LuaIcons.CLASS_FIELD) 24 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/structure/LuaFuncElement.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.editor.structure 18 | 19 | import com.korioz.intellij.lua.psi.LuaPsiElement 20 | import javax.swing.Icon 21 | 22 | /** 23 | * Created by Korioz on 2016/12/13. 24 | */ 25 | abstract class LuaFuncElement(target: LuaPsiElement, name: String, paramSignature: String, icon: Icon) 26 | : LuaTreeElement(target, name, icon) { 27 | private var text: String = name + paramSignature 28 | 29 | override fun getPresentableText(): String { 30 | return text 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/structure/LuaGlobalFuncElement.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.editor.structure 18 | 19 | import com.korioz.intellij.lua.lang.LuaIcons 20 | import com.korioz.intellij.lua.psi.LuaFuncDef 21 | import com.korioz.intellij.lua.psi.LuaPsiElement 22 | 23 | class LuaGlobalFuncElement(target: LuaPsiElement, name: String, paramSignature: String) 24 | : LuaFuncElement(target, name, paramSignature, LuaIcons.GLOBAL_FUNCTION) { 25 | constructor(target: LuaFuncDef) : this(target, target.name ?: "", target.paramSignature) 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/structure/LuaGlobalVarElement.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.editor.structure 18 | 19 | import com.korioz.intellij.lua.lang.LuaIcons 20 | import com.korioz.intellij.lua.psi.LuaPsiElement 21 | 22 | class LuaGlobalVarElement(target: LuaPsiElement, name: String? = null) 23 | : LuaVarElement(target, name ?: target.name!!, LuaIcons.GLOBAL_VAR) 24 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/structure/LuaLocalFuncElement.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.editor.structure 18 | 19 | import com.korioz.intellij.lua.lang.LuaIcons 20 | import com.korioz.intellij.lua.psi.LuaLocalFuncDef 21 | import com.korioz.intellij.lua.psi.LuaPsiElement 22 | 23 | class LuaLocalFuncElement(target: LuaPsiElement, name: String, paramSignature: String) 24 | : LuaFuncElement(target, name, paramSignature, LuaIcons.LOCAL_FUNCTION) { 25 | internal constructor(target: LuaLocalFuncDef) : this(target, target.name ?: "", target.paramSignature) 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/structure/LuaLocalVarElement.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.editor.structure 18 | 19 | import com.korioz.intellij.lua.lang.LuaIcons 20 | import com.korioz.intellij.lua.psi.LuaPsiElement 21 | 22 | class LuaLocalVarElement(target: LuaPsiElement, name: String? = null) 23 | : LuaVarElement(target, name ?: target.name!!, LuaIcons.LOCAL_VAR) 24 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/editor/structure/LuaVarElement.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.editor.structure 18 | 19 | import com.korioz.intellij.lua.psi.LuaPsiElement 20 | import javax.swing.Icon 21 | 22 | abstract class LuaVarElement(target: LuaPsiElement, name: String, icon: Icon) 23 | : LuaTreeElement(target, name, icon) 24 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/ext/utils.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.ext 18 | 19 | import com.intellij.openapi.util.Computable 20 | import com.intellij.openapi.util.RecursionManager 21 | 22 | fun recursionGuard(key: Any, block: Computable, memoize: Boolean = true): T? = 23 | RecursionManager.doPreventingRecursion(key, memoize, block) -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/hierarchy/call/LuaCalleeFunctionTreeStructure.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.hierarchy.call 18 | 19 | import com.intellij.openapi.project.Project 20 | import com.intellij.psi.PsiElement 21 | 22 | class LuaCalleeFunctionTreeStructure(project: Project, element: PsiElement) : LuaCallHierarchyTreeStructureBase(project, element) { 23 | override fun getChildren(element: PsiElement): List { 24 | return LuaCallHierarchyUtil.getCallees(element) 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/hierarchy/call/LuaCallerFunctionTreeStructure.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.hierarchy.call 18 | 19 | import com.intellij.openapi.project.Project 20 | import com.intellij.psi.PsiElement 21 | 22 | class LuaCallerFunctionTreeStructure(project: Project, element: PsiElement) : LuaCallHierarchyTreeStructureBase(project, element) { 23 | override fun getChildren(element: PsiElement): List { 24 | return LuaCallHierarchyUtil.getCallers(element) 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/highlighting/LuaProblemFileHighlightFilter.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.highlighting 18 | 19 | import com.intellij.openapi.util.Condition 20 | import com.intellij.openapi.vfs.VirtualFile 21 | import com.korioz.intellij.lua.lang.LuaFileType 22 | 23 | /** 24 | * 25 | * Created by Korioz on 2017/1/11. 26 | */ 27 | class LuaProblemFileHighlightFilter : Condition { 28 | override fun value(file: VirtualFile): Boolean { 29 | return file.fileType === LuaFileType.INSTANCE 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/lang/LuaLanguage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.lang; 18 | 19 | import com.intellij.lang.Language; 20 | 21 | /** 22 | * Created by Korioz on 2015/11/15. 23 | * Email:45950144+Korioz@users.noreply.github.com 24 | */ 25 | public class LuaLanguage extends Language { 26 | 27 | public static final int INDEX_VERSION = 38; 28 | 29 | public static final LuaLanguage INSTANCE = new LuaLanguage(); 30 | 31 | public LuaLanguage() { 32 | super("Lua"); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/lang/LuaLanguageLevel.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.lang 18 | 19 | enum class LuaLanguageLevel(val version: Int) { 20 | LUA50(50), 21 | LUA51(51), 22 | LUA52(52), 23 | LUA53(53), 24 | LUA54(54); 25 | 26 | override fun toString(): String { 27 | return "Lua ${version / 10}.${version % 10}" 28 | } 29 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/lexer/LuaLexerAdapter.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.lexer 18 | 19 | import com.korioz.intellij.lua.lang.LuaLanguageLevel 20 | import com.korioz.intellij.lua.project.LuaSettings 21 | 22 | /** 23 | * Created by Korioz on 2015/11/15. 24 | * Email:45950144+Korioz@users.noreply.github.com 25 | */ 26 | class LuaLexerAdapter(level: LuaLanguageLevel = LuaSettings.instance.languageLevel) : LuaLexer(level) 27 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/project/CompletionSettingsPanel.form: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/project/EmmyLuaDirectoryProjectGenerator.kt.171: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/java/com/korioz/intellij/lua/project/EmmyLuaDirectoryProjectGenerator.kt.171 -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/project/LuaLibraryKind.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.project 18 | 19 | import com.intellij.openapi.roots.libraries.DummyLibraryProperties 20 | import com.intellij.openapi.roots.libraries.PersistentLibraryKind 21 | 22 | /** 23 | * 24 | * Created by Korioz on 2016/12/24. 25 | */ 26 | class LuaLibraryKind private constructor() : PersistentLibraryKind("Lua") { 27 | 28 | override fun createDefaultProperties() = DummyLibraryProperties() 29 | 30 | companion object { 31 | var INSTANCE = LuaLibraryKind() 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaClass.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi 18 | 19 | import com.intellij.navigation.NavigationItem 20 | import com.intellij.psi.PsiElement 21 | import com.korioz.intellij.lua.ty.ITy 22 | import com.korioz.intellij.lua.ty.ITyClass 23 | 24 | interface LuaTypeDef : PsiElement, NavigationItem { 25 | val type: ITy 26 | } 27 | 28 | interface LuaClass : LuaTypeDef { 29 | override val type: ITyClass 30 | } 31 | 32 | interface LuaTypeAlias : LuaTypeDef -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaClassField.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi; 18 | 19 | import com.intellij.navigation.NavigationItem; 20 | 21 | /** 22 | * 类的属性字段 23 | * Created by Korioz on 2016/12/21. 24 | */ 25 | public interface LuaClassField extends LuaClassMember, NavigationItem { 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaClassMethod.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi; 18 | 19 | import com.intellij.psi.PsiNameIdentifierOwner; 20 | 21 | public interface LuaClassMethod extends LuaFuncBodyOwner, LuaClassMember, PsiNameIdentifierOwner { 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaCommentOwner.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi; 18 | 19 | import com.korioz.intellij.lua.comment.psi.api.LuaComment; 20 | import org.jetbrains.annotations.Nullable; 21 | 22 | /** 23 | * 24 | * Created by Korioz on 2016/11/24. 25 | */ 26 | public interface LuaCommentOwner extends LuaPsiElement { 27 | @Nullable 28 | LuaComment getComment(); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaDeclaration.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi 18 | 19 | /** 20 | * 定义 21 | * Created by Korioz on 2016/11/22. 22 | */ 23 | interface LuaDeclaration : LuaCommentOwner 24 | 25 | interface LuaDeclarationScope : LuaPsiElement -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaExprCodeFragment.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi 18 | 19 | import com.intellij.psi.PsiFile 20 | 21 | interface LuaExprCodeFragment : PsiFile -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaIndentRange.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi; 18 | 19 | /** 20 | * 里面的内容要缩进 21 | * Created by Korioz on 2016/12/20. 22 | */ 23 | public interface LuaIndentRange extends LuaPsiElement { 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaModuleClassMember.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi 18 | 19 | /** 20 | * ---@module ClassA 21 | * module("ClassA") 22 | * 23 | * fieldA = 123 --> LuaModuleClassField 24 | */ 25 | interface LuaModuleClassField : LuaClassField -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaNamedElement.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi; 18 | 19 | import com.intellij.psi.PsiNamedElement; 20 | 21 | /** 22 | * 23 | * Created by Korioz on 2016/11/22. 24 | */ 25 | public interface LuaNamedElement extends PsiNamedElement, LuaPsiElement { 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaParametersOwner.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi; 18 | 19 | import org.jetbrains.annotations.Nullable; 20 | 21 | import java.util.List; 22 | 23 | /** 24 | * function 25 | * for 26 | * Created by Korioz on 2016/12/21. 27 | */ 28 | public interface LuaParametersOwner extends LuaPsiElement { 29 | @Nullable 30 | List getParamNameDefList(); 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaRegionTypes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi; 18 | 19 | import com.intellij.psi.tree.IElementType; 20 | import com.korioz.intellij.lua.lang.LuaLanguage; 21 | 22 | public interface LuaRegionTypes { 23 | IElementType REGION_START = new IElementType("REGION_START", LuaLanguage.INSTANCE); 24 | IElementType REGION_DESC = new IElementType("REGION_DESC", LuaLanguage.INSTANCE); 25 | IElementType REGION_END = new IElementType("REGION_END", LuaLanguage.INSTANCE); 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaTokenType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi; 18 | 19 | import com.intellij.psi.tree.IElementType; 20 | import com.korioz.intellij.lua.lang.LuaLanguage; 21 | 22 | /** 23 | * Created by Korioz on 2015/11/15. 24 | * Email:45950144+Korioz@users.noreply.github.com 25 | */ 26 | public class LuaTokenType extends IElementType { 27 | public LuaTokenType(String debugName) { 28 | super(debugName, LuaLanguage.INSTANCE); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/psi/LuaTypeGuessable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.psi; 18 | 19 | import com.korioz.intellij.lua.search.SearchContext; 20 | import com.korioz.intellij.lua.ty.ITy; 21 | import com.korioz.intellij.lua.ty.TyAliasSubstitutor; 22 | 23 | /** 24 | * 25 | * Created by Korioz on 2016/12/1. 26 | */ 27 | public interface LuaTypeGuessable extends LuaPsiElement { 28 | default ITy guessType(SearchContext context) { 29 | ITy ty = SearchContext.Companion.infer(this, context); 30 | ty = TyAliasSubstitutor.Companion.substitute(ty, context); 31 | return ty; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/reference/LuaReference.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.reference 18 | 19 | import com.intellij.psi.PsiElement 20 | import com.intellij.psi.PsiReference 21 | import com.korioz.intellij.lua.search.SearchContext 22 | 23 | /** 24 | * 25 | * Created by Korioz on 2017/4/9. 26 | */ 27 | interface LuaReference : PsiReference { 28 | fun resolve(context: SearchContext): PsiElement? 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/spellchecker/LuaSpellBundledDictionaryProvider.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.spellchecker 18 | 19 | import com.intellij.spellchecker.BundledDictionaryProvider 20 | 21 | class LuaSpellBundledDictionaryProvider : BundledDictionaryProvider { 22 | override fun getBundledDictionaries() = arrayOf("/spellchecker/lua.dic") 23 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/stubs/LuaClassMemberStub.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.stubs 18 | 19 | import com.intellij.psi.PsiElement 20 | import com.intellij.psi.stubs.StubElement 21 | import com.korioz.intellij.lua.psi.Visibility 22 | 23 | interface LuaClassMemberStub : StubElement, LuaDocTyStub { 24 | val visibility: Visibility 25 | val isDeprecated: Boolean 26 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/stubs/LuaDocTyStub.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.stubs 18 | 19 | import com.korioz.intellij.lua.ty.ITy 20 | 21 | interface LuaDocTyStub { 22 | val docTy: ITy? 23 | } -------------------------------------------------------------------------------- /src/main/java/com/korioz/intellij/lua/ty/LuaTypeInfer.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.lua.ty 18 | 19 | import com.korioz.intellij.lua.ext.ILuaTypeInfer 20 | import com.korioz.intellij.lua.psi.LuaTypeGuessable 21 | import com.korioz.intellij.lua.search.SearchContext 22 | 23 | class LuaTypeInfer : ILuaTypeInfer { 24 | override fun inferType(target: LuaTypeGuessable, context: SearchContext): ITy { 25 | return inferInner(target, context) 26 | } 27 | } -------------------------------------------------------------------------------- /src/main/resources/!!DONT_UNZIP_ME!!.txt: -------------------------------------------------------------------------------- 1 | Don't unzip me! Please install EmmyLua plugin use this whole zip file. -------------------------------------------------------------------------------- /src/main/resources/META-INF/emmylua-project.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/codeStyle/preview/preview.lua.template: -------------------------------------------------------------------------------- 1 | local inlineEmmy = { name = "Emmy", age = 7, longLongProperty = 123 } 2 | local emmy = { 3 | name = "Emmy", 4 | age = 7, 5 | longLongProperty = 123 6 | } 7 | local a = 1 8 | local b, c = 2, "3" 9 | local var = 1 -- a short comment 10 | --- doc comment 11 | --- @param par1 Par1Type @some strings 12 | function var:testFun(par1, par2, par3, par4, par5) 13 | print('hello') 14 | return self.len + 2 15 | end 16 | 17 | var:testFun('par1Value', 'par2Value', 'par3Value', 'par4Value', 'par5Value') 18 | 19 | function globalFun() 20 | return "string" .. var 21 | end 22 | 23 | if true then return 123 end 24 | 25 | if true then print("123") return 123 end -------------------------------------------------------------------------------- /src/main/resources/debugger/emmy/linux/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/debugger/emmy/linux/.gitkeep -------------------------------------------------------------------------------- /src/main/resources/debugger/emmy/mac/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/debugger/emmy/mac/.gitkeep -------------------------------------------------------------------------------- /src/main/resources/debugger/emmy/unix/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/debugger/emmy/unix/.gitkeep -------------------------------------------------------------------------------- /src/main/resources/debugger/emmy/windows/x64/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/debugger/emmy/windows/x64/.gitkeep -------------------------------------------------------------------------------- /src/main/resources/debugger/emmy/windows/x86/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/debugger/emmy/windows/x86/.gitkeep -------------------------------------------------------------------------------- /src/main/resources/debugger/windows/x64/EasyHook.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/debugger/windows/x64/EasyHook.dll -------------------------------------------------------------------------------- /src/main/resources/debugger/windows/x64/dbghelp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/debugger/windows/x64/dbghelp.dll -------------------------------------------------------------------------------- /src/main/resources/debugger/windows/x86/EasyHook.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/debugger/windows/x86/EasyHook.dll -------------------------------------------------------------------------------- /src/main/resources/debugger/windows/x86/dbghelp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/debugger/windows/x86/dbghelp.dll -------------------------------------------------------------------------------- /src/main/resources/errorreporting/report-bundle.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | report.error.to.plugin.vendor=Report on GitHub 18 | report.error.progress.dialog.text=Submitting error report... 19 | report.error.connection.failure=Could not communicate with GitHub 20 | 21 | git.issue.title=[auto-generated:{0}] {1} 22 | git.issue.label=auto-generated 23 | git.issue.text=Created issue {1}. Thanks for your feedback! 24 | git.issue.duplicate.text=A similar issues was already reported (#{1}). Thanks for your feedback! 25 | 26 | -------------------------------------------------------------------------------- /src/main/resources/errorreporting/token.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/errorreporting/token.bin -------------------------------------------------------------------------------- /src/main/resources/fileTemplates/j2ee/NewLua.lua.ft: -------------------------------------------------------------------------------- 1 | --- 2 | --- Generated by EmmyLua(https://github.com/EmmyLua) 3 | --- Created by ${USER}. 4 | --- DateTime: ${DATE} ${TIME} 5 | --- -------------------------------------------------------------------------------- /src/main/resources/icons/annotation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/annotation.png -------------------------------------------------------------------------------- /src/main/resources/icons/annotation@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/annotation@2x.png -------------------------------------------------------------------------------- /src/main/resources/icons/console.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/resources/icons/console_dark.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/resources/icons/cpp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/cpp.png -------------------------------------------------------------------------------- /src/main/resources/icons/cpp.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/main/resources/icons/cpp@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/cpp@2x.png -------------------------------------------------------------------------------- /src/main/resources/icons/csharp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/csharp.png -------------------------------------------------------------------------------- /src/main/resources/icons/csharp.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/resources/icons/csharp@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/csharp@2x.png -------------------------------------------------------------------------------- /src/main/resources/icons/frame.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/icons/frame_dark.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/icons/lua.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/lua.png -------------------------------------------------------------------------------- /src/main/resources/icons/lua.svg: -------------------------------------------------------------------------------- 1 | emmy -------------------------------------------------------------------------------- /src/main/resources/icons/lua@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/lua@2x.png -------------------------------------------------------------------------------- /src/main/resources/icons/lua_layer.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/main/resources/icons/lua_module.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/main/resources/icons/lua_project.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/main/resources/icons/lua_root.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/resources/icons/meta.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/meta.png -------------------------------------------------------------------------------- /src/main/resources/icons/meta.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/icons/meta@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/meta@2x.png -------------------------------------------------------------------------------- /src/main/resources/icons/module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/module.png -------------------------------------------------------------------------------- /src/main/resources/icons/module@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/module@2x.png -------------------------------------------------------------------------------- /src/main/resources/icons/tail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/tail.png -------------------------------------------------------------------------------- /src/main/resources/icons/tail@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/main/resources/icons/tail@2x.png -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/AssignTypeInspection.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Assign type 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/DuplicateClassDeclaration.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Duplicate class 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/EmptyBody.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Write your description here. 20 | 21 | Text after this comment will not be shown in tooltips. 22 | 23 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/GlobalNameCanbeLocal.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Global name can be local 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/LanguageLevelInspection.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | The following binary/unary operators only available Lua 5.2 or above. 20 | 21 | binary operators: '|', '&', '>>', '<<', '~', '//' 22 | 23 | unary operators: '~' 24 | 25 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/LocalNameShadowed.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/LuaDeprecationInspection.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/MatchFunctionSignatureInspection.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Type safety 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/RemoveUnusedLocal.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Write your description here. 20 | 21 | Text after this comment will not be shown in tooltips. 22 | 23 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/ReturnTypeInspection.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Return type 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/SimplifyLocalAssignment.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Local Assign can be simpler 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/UndeclaredVariableInspection.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Undeclared variable 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/inspectionDescriptions/UnresolvedClassInspection.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Unresolved type in emmy doc 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/AppendCallParenIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Append paren to call expression 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/ComputeConstantValueIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Compute Constant Value 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/CreateFieldFromParameterIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Write your description here. 20 | 21 | Text after this comment will not be shown in tooltips. 22 | 23 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/CreateFunctionDocIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Create Doc For Method 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/CreateFunctionReturnAnnotationIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | CreateFunctionReturnAnnotationIntentionAction 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/CreateMethodIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Create method. 20 | 21 | Create method. 22 | 23 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/CreateParameterAnnotationIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Create doc for param 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/CreateTypeAnnotationIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Create type declaration 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/InvertBooleanIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Invert boolean value 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/RemoveCallParenIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Remove paren from call expression 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/intentionDescriptions/SetVisibilityIntention/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaCheckIfNotNilPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | if expr ~= nil then 2 | 3 | end -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaCheckIfNotNilPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaCheckIfNotNilPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | if expr ~= nil then 20 | end 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaCheckNilPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | if expr == nil then 2 | 3 | end -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaCheckNilPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaCheckNilPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | if expr == nil then 20 | end 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaDecreasePostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | expr = expr - 1 -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaDecreasePostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaDecreasePostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Decrease values "expr = expr - 1" 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaForAPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | for i = 1, expr do 2 | 3 | end -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaForAPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaForAPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | for i = 1, expr do end 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaForIPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | for i, v in ipairs(expr) do 2 | 3 | end -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaForIPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaForIPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | for i, v in ipairs(expr) do 20 | end 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaForPPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | for k, v in pairs(expr) do 2 | 3 | end -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaForPPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaForPPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | for i, v in pairs(expr) do 20 | end 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaIfNotPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | if not expr then 2 | 3 | end -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaIfNotPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaIfNotPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | if not expr then 20 | end 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaIfPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | if expr then 2 | 3 | end -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaIfPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaIfPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | if expr then 20 | end 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaIncreasePostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | expr = expr + 1 -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaIncreasePostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaIncreasePostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Increase values, "expr = expr + 1" 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaLocalPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | local test = expr -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaLocalPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaLocalPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | Creates variable from given expression. 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaParPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | (expr) -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaParPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaParPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 |

Parenthesizes expression.

20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaPrintPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | print(expr) -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaPrintPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaPrintPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | print(expr) 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaReturnPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | return expr -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaReturnPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaReturnPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | return expr 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaToNumberPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | tonumber(expr) -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaToNumberPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaToNumberPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | tonumber(expr) 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaToStringPostfixTemplate/after.lua.template: -------------------------------------------------------------------------------- 1 | tostring(expr) -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaToStringPostfixTemplate/before.lua.template: -------------------------------------------------------------------------------- 1 | expr$key -------------------------------------------------------------------------------- /src/main/resources/postfixTemplates/LuaToStringPostfixTemplate/description.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | tostring(expr) 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/spellchecker/lua.dic: -------------------------------------------------------------------------------- 1 | acos 2 | asin 3 | atan 4 | collectgarbage 5 | coroutine 6 | cpath 7 | difftime 8 | dofile 9 | fmod 10 | frexp 11 | getfenv 12 | gethook 13 | getinfo 14 | getmetatable 15 | getregistry 16 | getupvalue 17 | gmatch 18 | gsub 19 | ipairs 20 | ldexp 21 | loadfile 22 | loadlib 23 | loadstring 24 | maxn 25 | metatable 26 | modf 27 | newindex 28 | pcall 29 | popen 30 | randomseed 31 | rawequal 32 | rawget 33 | rawset 34 | seeall 35 | setfenv 36 | sethook 37 | setlocal 38 | setlocale 39 | setmetatable 40 | setupvalue 41 | setuservalue 42 | setvbuf 43 | sinh 44 | tanh 45 | tmpfile 46 | tmpname 47 | tonumber 48 | tostring 49 | tostring 50 | traceback 51 | upvalueid 52 | upvaluejoin 53 | xpcall -------------------------------------------------------------------------------- /src/test/kotlin/com/korioz/intellij/test/completion/TestArgHistory.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.test.completion 18 | 19 | class TestArgHistory : TestCompletionBase() { 20 | 21 | fun `test arg history 1`() { 22 | doTest(""" 23 | --- test_arg_history_1.lua 24 | 25 | local function test(strArg1, strArg2) 26 | end 27 | 28 | test("his1") 29 | test("his2") 30 | test("--[[caret]]") 31 | """) { 32 | assertTrue(it.containsAll(listOf("his1", "his2"))) 33 | } 34 | } 35 | 36 | } -------------------------------------------------------------------------------- /src/test/kotlin/com/korioz/intellij/test/completion/TestTuple.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.test.completion 18 | 19 | class TestTuple : TestCompletionBase() { 20 | 21 | fun `test tuple 1`() { 22 | doTest(""" 23 | --- test_tuple_1.lua 24 | 25 | ---@class Type1 26 | local obj = { name = "name" } 27 | 28 | ---@return number, Type1 29 | local function getTuple() 30 | end 31 | 32 | local a, b = getTuple() 33 | b.--[[caret]] 34 | """) { 35 | assertTrue("name" in it) 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /src/test/kotlin/com/korioz/intellij/test/inspections/LocalNameShadowedTest.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.korioz.intellij.test.inspections 18 | 19 | import com.korioz.intellij.lua.codeInsight.inspection.LocalNameShadowed 20 | 21 | class LocalNameShadowedTest : LuaInspectionsTestBase(LocalNameShadowed()) { 22 | 23 | fun testLocalNameHidesPrevious() = checkByText(""" 24 | local var1 = 1 25 | print(var1) 26 | local var1 = "123" 27 | """) 28 | 29 | } -------------------------------------------------------------------------------- /src/test/kotlin/com/korioz/intellij/test/inspections/UndeclaredVariableTest.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022. Korioz(45950144+Korioz@users.noreply.github.com) 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /* 18 | package com.korioz.intellij.test.inspections 19 | 20 | import com.korioz.intellij.lua.codeInsight.inspection.UndeclaredVariableInspection 21 | 22 | class UndeclaredVariableTest : LuaInspectionsTestBase(UndeclaredVariableInspection()) { 23 | 24 | fun testUndeclaredVariable() = checkByText(""" 25 | print(MyUndeclaredVariable) 26 | """) 27 | 28 | }*/ 29 | -------------------------------------------------------------------------------- /src/test/resources/completion/class.lua: -------------------------------------------------------------------------------- 1 | ---@class Emmy 2 | local e = { name = 'Emmy', age = 7 } 3 | 4 | function e:sayHello() 5 | print('hi') 6 | end 7 | 8 | ---@type Emmy 9 | emmy = nil -------------------------------------------------------------------------------- /src/test/resources/completion/globals.lua: -------------------------------------------------------------------------------- 1 | gVar1 = 1 2 | 3 | gVar2 = { 4 | aaa = 2, 5 | bbb = 3 6 | } 7 | gVar2.ccc = 4 -------------------------------------------------------------------------------- /src/test/resources/completion/testAnnotationArray.lua: -------------------------------------------------------------------------------- 1 | ---@type Emmy[] 2 | local emmyList = {} 3 | 4 | local emmy = emmyList[1] 5 | emmy. -------------------------------------------------------------------------------- /src/test/resources/completion/testAnnotationDict.lua: -------------------------------------------------------------------------------- 1 | ---@generic K, V 2 | ---@param t table|V[] 3 | ---@return fun(tbl: table):K, V 4 | function pairs(t) end 5 | 6 | ---@type fun():table 7 | local emmyCreator 8 | 9 | for k, emmy in pairs(emmyCreator()) do 10 | emmy. 11 | end -------------------------------------------------------------------------------- /src/test/resources/completion/testAnnotationFun.lua: -------------------------------------------------------------------------------- 1 | ---@type fun():Emmy 2 | local emmyCreator 3 | 4 | local emmy = emmyCreator() 5 | emmy. -------------------------------------------------------------------------------- /src/test/resources/completion/testAnonymous.lua: -------------------------------------------------------------------------------- 1 | local function test() 2 | local v = xx() 3 | v.pp = 123 4 | return v 5 | end 6 | 7 | local v = test() 8 | v. -------------------------------------------------------------------------------- /src/test/resources/completion/testCompletion.lua: -------------------------------------------------------------------------------- 1 | local function func1()end 2 | 3 | local a = 2 4 | local b = 2 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/test/resources/completion/testParam.lua: -------------------------------------------------------------------------------- 1 | 2 | local function aaa(param1, param2) 3 | local bbb = 4 | end -------------------------------------------------------------------------------- /src/test/resources/completion/testSelf.lua: -------------------------------------------------------------------------------- 1 | 2 | local s = {} 3 | 4 | function s:aaa()end 5 | function s:abb()end 6 | function s:ccc() 7 | sa 8 | end -------------------------------------------------------------------------------- /src/test/resources/refactoring/moveFile/after/B.lua: -------------------------------------------------------------------------------- 1 | require("to.A") -------------------------------------------------------------------------------- /src/test/resources/refactoring/moveFile/after/to/A.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/test/resources/refactoring/moveFile/after/to/A.lua -------------------------------------------------------------------------------- /src/test/resources/refactoring/moveFile/after/to/C.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/test/resources/refactoring/moveFile/after/to/C.lua -------------------------------------------------------------------------------- /src/test/resources/refactoring/moveFile/before/A.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/test/resources/refactoring/moveFile/before/A.lua -------------------------------------------------------------------------------- /src/test/resources/refactoring/moveFile/before/B.lua: -------------------------------------------------------------------------------- 1 | require("A") -------------------------------------------------------------------------------- /src/test/resources/refactoring/moveFile/before/to/C.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SlantingStds/cfxEmmyLua/19580139a34bd80d6228e78e8fc8b65def8a0c1f/src/test/resources/refactoring/moveFile/before/to/C.lua -------------------------------------------------------------------------------- /src/test/resources/typeSafety/typeSafety.lua: -------------------------------------------------------------------------------- 1 | --- 2 | --- Created by Perry. 3 | --- DateTime: 30-9-2017 20:56 4 | --- 5 | 6 | --- Basic test 7 | --- @param x number 8 | function test(x) end 9 | 10 | test("3") -- Type mismatch, string instead of number 11 | test(nil) -- Type mismatch, nil instead of number (Only if strict nil option is checked) 12 | test(3) -- Valid 13 | test(4, 5) -- Too many arguments 14 | test() -- Not enough arguments 15 | 16 | --- Union test 17 | --- @param x number | nil 18 | function test2(x) end 19 | 20 | test2(3) -- Valid 21 | test2(nil) -- Valid 22 | test2("") -- Type mismatch, string instead of number or nil 23 | 24 | --- Overload test 25 | --- @overload fun(x: number, y: string): boolean 26 | --- @param x number 27 | function test3(x) end 28 | 29 | test3(3) -- Valid, main signature 30 | test3(3, "4") -- Valid, overload 31 | test3(3, 4, 5) -- No matching overload 32 | test3("") -- No matching overload 33 | 34 | --- List test 35 | --- @param x number[] 36 | function testList(x) end 37 | 38 | --- @type number[] 39 | local list = {1,2,3} 40 | testList(list) --- Valid 41 | --------------------------------------------------------------------------------