Class PartialParseResult
java.lang.Object
org.eclipse.xtext.parser.ParseResult
com._1c.g5.v8.dt.bsl.parser.antlr.PartialParseResult
- All Implemented Interfaces:
org.eclipse.xtext.parser.IParseResult
public class PartialParseResult
extends org.eclipse.xtext.parser.ParseResult
Special parse result containing information about last reparsing method from
Module
-
Constructor Summary
ConstructorsConstructorDescriptionPartialParseResult
(org.eclipse.emf.ecore.EObject rootAstElement, org.eclipse.xtext.nodemodel.ICompositeNode rootNode, boolean hasErrors) ConstructorPartialParseResult
(org.eclipse.xtext.parser.IParseResult parseResult, Method reparseMethod) ConstructorPartialParseResult
(org.eclipse.xtext.parser.IParseResult parseResult, Method reparseMethod, Collection<Method> calleesMethod) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCalleeMethodReturnType
(String calleFunctionUniqueName, Collection<TypeItem> types) Adds return types which was computed before reparsed method was changed for method called from reparsed methodgetCalleeMethodReturnType
(String calleFunctionUniqueName) Gets return types which was computed before reparsed method was changed for method called from reparsed methodGetsMethod
s are called fromreparseMethod
before editingGets input parameter types for reparsed method which was computed before method changedGets return types for reparsed function which was computed before method changedGets last reparsing method fromModule
Iterable<org.eclipse.xtext.nodemodel.INode>
boolean
void
setOldParametersTypes
(List<Collection<TypeItem>> oldParametersTypes) Sets input parameter types for reparsed method which was computed before method changedvoid
setOldReturnTypes
(Collection<TypeItem> oldReturnTypes) Sets return types for reparsed function which was computed before method changedMethods inherited from class org.eclipse.xtext.parser.ParseResult
getRootASTElement, getRootNode, hasSyntaxErrors, setRootASTElement, setRootNode
-
Constructor Details
-
PartialParseResult
public PartialParseResult(org.eclipse.xtext.parser.IParseResult parseResult, Method reparseMethod, Collection<Method> calleesMethod) Constructor -
PartialParseResult
Constructor- Parameters:
parseResult
- actualIParseResult
, can't benull
reparseMethod
- last reparsing method fromModule
, can't benull
-
PartialParseResult
public PartialParseResult(org.eclipse.emf.ecore.EObject rootAstElement, org.eclipse.xtext.nodemodel.ICompositeNode rootNode, boolean hasErrors) Constructor- Parameters:
rootAstElement
- root of ast parse tree element, can't benull
rootNode
-ICompositeNode
corresponding to the root ast parse tree element, can't benull
hasErrors
-true
if sntax error was found,false
otherwise
-
-
Method Details
-
isOnlyMethodReparse
public boolean isOnlyMethodReparse() -
getReparseMethod
Gets last reparsing method fromModule
- Returns:
- last reparsing method from
Module
, can benull
ifisOnlyMethodReparse()
returnfalse
-
getCalleesMethod
GetsMethod
s are called fromreparseMethod
before editing- Returns:
Method
s are called fromreparseMethod
before editing, cannot benull
-
getSyntaxErrors
- Specified by:
getSyntaxErrors
in interfaceorg.eclipse.xtext.parser.IParseResult
- Overrides:
getSyntaxErrors
in classorg.eclipse.xtext.parser.ParseResult
-
setOldReturnTypes
Sets return types for reparsed function which was computed before method changed- Parameters:
oldReturnTypes
- return types computed before changes, cannot benull
-
setOldParametersTypes
Sets input parameter types for reparsed method which was computed before method changed- Parameters:
list
- each item of list contains input types for one method parameter, cannot benull
-
getOldReturnTypes
Gets return types for reparsed function which was computed before method changed- Returns:
- return types computed before changes, cannot be
null
-
getOldParametersTypes
Gets input parameter types for reparsed method which was computed before method changed- Returns:
- list each item of list contains input types for one method parameter, cannot be
null
-
addCalleeMethodReturnType
Adds return types which was computed before reparsed method was changed for method called from reparsed method- Parameters:
calleFunctionUniqueName
- unique name of the method called in reparsed method, cannot benull
return
- types computed before changes in reparsed method, cannot benull
-
getCalleeMethodReturnType
Gets return types which was computed before reparsed method was changed for method called from reparsed method- Parameters:
calleFunctionUniqueName
- unique name of the method called in reparsed method, cannot benull
- Returns:
- return types computed before changes in reparsed method, can be
null
if unique name is unknown or no information about returning types
-