Home
last modified time | relevance | path

Searched refs:ParseResult (Results 1 – 25 of 69) sorted by relevance

123

/external/v8/src/torque/
Dtorque-parser.cc173 base::Optional<ParseResult> AddGlobalDeclaration( in AddGlobalDeclaration()
186 base::Optional<ParseResult> MakeCall(ParseResultIterator* child_results) { in MakeCall()
193 return ParseResult{result}; in MakeCall()
196 base::Optional<ParseResult> MakeBinaryOperator( in MakeBinaryOperator()
204 return ParseResult{result}; in MakeBinaryOperator()
207 base::Optional<ParseResult> MakeUnaryOperator( in MakeUnaryOperator()
214 return ParseResult{result}; in MakeUnaryOperator()
218 base::Optional<ParseResult> MakeParameterListFromTypes( in MakeParameterListFromTypes()
224 return ParseResult{std::move(result)}; in MakeParameterListFromTypes()
227 base::Optional<ParseResult> MakeParameterListFromNameAndTypeList( in MakeParameterListFromNameAndTypeList()
[all …]
Dearley-parser.h68 class ParseResult {
71 explicit ParseResult(T x) : value_(new ParseResultHolder<T>(std::move(x))) {} in ParseResult() function
99 explicit ParseResultIterator(std::vector<ParseResult> results, in ParseResultIterator()
107 ParseResult Next() { in Next()
120 std::vector<ParseResult> results_;
133 base::Optional<ParseResult> (*)(ParseResultIterator* child_results);
135 inline base::Optional<ParseResult> DefaultAction( in DefaultAction()
160 V8_EXPORT_PRIVATE base::Optional<ParseResult> RunAction(
192 V8_EXPORT_PRIVATE base::Optional<ParseResult> RunAction(
288 inline base::Optional<ParseResult> Symbol::RunAction( in RunAction()
[all …]
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/validator/
DJava1_1ValidatorTest.java4 import com.github.javaparser.ParseResult;
26ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topClass()
45ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedClass()
61ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{ void x… in localClass()
81ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topInterface()
101ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedInterface()
118ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in constructor()
138ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{X(" + a… in constructorParameter()
159ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in classMethod()
174ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod()
[all …]
DJava10ValidatorTest.java4 import com.github.javaparser.ParseResult;
23 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("var a = 5;")); in varAllowedInLocalVariableDeclaration()
29 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(var a : as){}")); in varAllowedInForEach()
35ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(var a = 5;a<9;a++){}")); in varAllowedInOldFor()
41 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("int a = (var)20;")); in varNotAllowedInCast()
47ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(var f = new FileReader(\… in varNotAllowedInTryWithResources()
53ParseResult<BodyDeclaration<?>> result = javaParser.parse(CLASS_BODY, provider("var a = 20;")); in varNotAllowedInField()
59 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("new X<var>();")); in varNotAllowedInTypeArguments()
65ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("x((var x) -> null);")); in varNotAllowedInLambdaParameters()
71 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("var a;")); in emptyInitializerNotAllowed()
[all …]
DJava1_2ValidatorTest.java4 import com.github.javaparser.ParseResult;
24ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topClass()
43ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedClass()
59ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{ void x… in localClass()
79ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topInterface()
99ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedInterface()
116ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in constructor()
136ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{X(" + a… in constructorParameter()
158ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in classMethod()
173ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod()
[all …]
DJava5ValidatorTest.java4 import com.github.javaparser.ParseResult;
25ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in genericsWithoutDiamond()
31ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topAnnotationDeclaration()
51ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedAnnotationDeclaration()
68ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("@interface X{" … in annotationMember()
89ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topEnum()
110ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedEnum()
128 ParseResult<Parameter> result = javaParser.parse(PARAMETER, provider("String... x")); in varargs()
134 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(X x: xs){}")); in foreach()
140ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("import static x… in staticImport()
[all …]
DJava1_0ValidatorTest.java4 import com.github.javaparser.ParseResult;
29 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(X x=new Y()){}")); in tryWithoutResources()
37ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X extends… in classExtendingMoreThanOne()
43ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X imp… in interfaceUsingImplements()
49ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X {{}… in interfaceWithInitializer()
55ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X {defaul… in defaultInClass()
61 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("(1==2)=3")); in leftHandAssignmentCannotBeAConditional()
67 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("()=3")); in leftHandAssignmentCannotBeEmptyBraces()
75 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("(i) += (i) += 1")); in leftHandAssignmentCanBeInBraces()
81ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{class Y… in noInnerClasses()
[all …]
DJava7ValidatorTest.java4 import com.github.javaparser.ParseResult;
29ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in generics()
35ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X {de… in defaultMethodWithoutBody()
41 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try{}")); in tryWithoutAnything()
47ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(Reader r = new Reader())… in tryWithResourceVariableDeclaration()
53 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(a.b.c){}")); in tryWithResourceReference()
59ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("switch(x){case \"abc\": ;}")… in stringsInSwitch()
65 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("0b01")); in binaryIntegerLiterals()
71 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("1_000_000")); in underscoresInIntegerLiterals()
77ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try{}catch(Abc|Def e){}")); in multiCatch()
[all …]
DJava1_4ValidatorTest.java4 import com.github.javaparser.ParseResult;
22 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("assert a;")); in yesAssert()
28ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in noGenerics()
37ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("@Abc @Def() @Gh… in noAnnotations()
47 ParseResult<Parameter> result = javaParser.parse(PARAMETER, provider("String... x")); in novarargs()
53 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(X x: xs){}")); in noforeach()
59ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("import static x… in staticImport()
67 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("int enum;")); in enumAllowedAsIdentifier()
DJava8ValidatorTest.java4 import com.github.javaparser.ParseResult;
23ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X {void a… in localInterface()
29ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{int x()… in lambdaParameter()
52ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod()
67ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X {de… in defaultMethodWithoutBody()
73 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("a(() -> 1);")); in lambdas()
79ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("open module x {… in noModules()
DJava9ValidatorTest.java4 import com.github.javaparser.ParseResult;
23ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("a.b._.c.d = act(_, _ -> _);"… in underscoreIdentifiers()
34ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("module x{requir… in moduleRequires()
55ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod()
69ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("open module x {… in modules()
75 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(a.b.c){}")); in tryWithResourceReference()
DJava6ValidatorTest.java4 import com.github.javaparser.ParseResult;
21ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("switch(x){case \"abc\": ;}")… in noStringsInSwitch()
27 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("0b01")); in nobinaryIntegerLiterals()
33 ParseResult<Expression> result = javaParser.parse(EXPRESSION, provider("1_000_000")); in noUnderscoresInIntegerLiterals()
39ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try{}catch(Abc|Def e){}")); in noMultiCatch()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/
DSourceRoot.java5 import com.github.javaparser.ParseResult;
56 Result process(Path localPath, Path absolutePath, ParseResult<CompilationUnit> result); in process()
60 private final Map<Path, ParseResult<CompilationUnit>> cache = new ConcurrentHashMap<>();
89 …public ParseResult<CompilationUnit> tryToParse(String startPackage, String filename, JavaParser ja… in tryToParse()
102 …public ParseResult<CompilationUnit> tryToParse(String startPackage, String filename, ParserConfigu… in tryToParse()
112 final ParseResult<CompilationUnit> result = new JavaParser(configuration) in tryToParse()
127 …public ParseResult<CompilationUnit> tryToParse(String startPackage, String filename) throws IOExce… in tryToParse()
139 public List<ParseResult<CompilationUnit>> tryToParse(String startPackage) throws IOException { in tryToParse()
177 public List<ParseResult<CompilationUnit>> tryToParse() throws IOException { in tryToParse()
192 public List<ParseResult<CompilationUnit>> tryToParseParallelized(String startPackage) { in tryToParseParallelized()
[all …]
DSourceZip.java25 import com.github.javaparser.ParseResult;
85 public List<Pair<Path, ParseResult<CompilationUnit>>> parse() throws IOException { in parse()
87 List<Pair<Path, ParseResult<CompilationUnit>>> results = new ArrayList<>(); in parse()
107 final ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, in parse()
128 void process(Path relativeZipEntryPath, ParseResult<CompilationUnit> result); in process()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/
DSourceZipTest.java24 import com.github.javaparser.ParseResult;
48 List<Pair<Path, ParseResult<CompilationUnit>>> results = sourceZip.parse(); in parseTestDirectory()
51 for (Pair<Path, ParseResult<CompilationUnit>> pr : results) { in parseTestDirectory()
60 List<Pair<Path, ParseResult<CompilationUnit>>> results = new ArrayList<>(); in parseTestDirectoryWithCallback()
66 for (Pair<Path, ParseResult<CompilationUnit>> pr : results) { in parseTestDirectoryWithCallback()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/
DJavaParser.java88 public <N extends Node> ParseResult<N> parse(ParseStart<N> start, Provider provider) { in parse()
95 …return new ParseResult<>(Optional.of(resultNode), parser.problems, Optional.of(astParser.getTokens… in parse()
97 return new ParseResult<>(e); in parse()
99 return new ParseResult<>(e); in parse()
240 ParseResult<T> result = new JavaParser(new ParserConfiguration()).parse(context, provider); in simplifiedParse()
DParseResult.java16 public class ParseResult<T> { class
28ParseResult(Optional<T> result, List<Problem> problems, Optional<List<Token>> tokens, Optional<Com… in ParseResult() method in ParseResult
38 ParseResult(Throwable throwable) { in ParseResult() method in ParseResult
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/
DProvidersTest.java39 ParseResult<CompilationUnit> parse = parser.parse(ParseStart.COMPILATION_UNIT, provider); in testResourceProvider()
48 ParseResult<CompilationUnit> parse = parser.parse(ParseStart.COMPILATION_UNIT, provider); in testResourceProviderWithWrongEncoding()
60 ParseResult<CompilationUnit> parse = parser.parse(ParseStart.COMPILATION_UNIT, provider); in testResourceProviderWithEncoding()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/version/
DPostProcessors.java3 import com.github.javaparser.ParseResult;
11 import static com.github.javaparser.ParseResult.PostProcessor;
46 public void process(ParseResult<? extends Node> result, ParserConfiguration configuration) { in process()
/external/swiftshader/third_party/LLVM/lib/MC/MCDisassembler/
DEDInst.cpp101 if (ParseResult.valid()) in parseOperands()
102 return ParseResult.result(); in parseOperands()
105 return ParseResult.setResult(-1); in parseOperands()
127 return ParseResult.setResult(0); in parseOperands()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DParseResult.java36 public class ParseResult<T> { class
49 …public ParseResult(T result, List<Problem> problems, List<JavaToken> tokens, CommentsCollection co… in ParseResult() method in ParseResult
126 void process(ParseResult<? extends Node> result, ParserConfiguration configuration); in process()
DParserConfiguration.java80 final ParseResult.PostProcessor postProcessor;
82 LanguageLevel(Validator validator, ParseResult.PostProcessor postProcessor) { in LanguageLevel()
97 private final List<ParseResult.PostProcessor> postProcessors = new ArrayList<>();
259 public List<ParseResult.PostProcessor> getPostProcessors() { in getPostProcessors()
DJavaParser.java121 public <N extends Node> ParseResult<N> parse(ParseStart<N> start, Provider provider) { in parse()
127ParseResult<N> result = new ParseResult<>(resultNode, parser.problems, parser.getTokens(), in parse()
139 …return new ParseResult<>(null, parser.problems, parser.getTokens(), parser.getCommentsCollection()… in parse()
325 ParseResult<T> result = new JavaParser(staticConfiguration).parse(context, provider); in simplifiedParse()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/
DParseResultTest.java25 import com.github.javaparser.ParseResult;
42ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{}")); in whenParsingSucceedsThenWeGetResultsAndNoProblems()
54ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class {")); in whenParsingFailsThenWeGetProblemsAndABadResult()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/
DTypedValidator.java3 import com.github.javaparser.ParseResult;
19 default ParseResult.PostProcessor postProcessor() { in postProcessor()

123