/external/v8/src/torque/ |
D | torque-parser.cc | 173 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 …]
|
D | earley-parser.h | 68 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/ |
D | Java1_1ValidatorTest.java | 4 import com.github.javaparser.ParseResult; 26 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topClass() 45 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedClass() 61 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{ void x… in localClass() 81 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topInterface() 101 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedInterface() 118 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in constructor() 138 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{X(" + a… in constructorParameter() 159 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in classMethod() 174 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod() [all …]
|
D | Java10ValidatorTest.java | 4 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() 35 … ParseResult<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() 47 …ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(var f = new FileReader(\… in varNotAllowedInTryWithResources() 53 … ParseResult<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() 65 … ParseResult<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 …]
|
D | Java1_2ValidatorTest.java | 4 import com.github.javaparser.ParseResult; 24 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topClass() 43 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedClass() 59 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{ void x… in localClass() 79 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topInterface() 99 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedInterface() 116 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in constructor() 136 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{X(" + a… in constructorParameter() 158 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in classMethod() 173 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod() [all …]
|
D | Java5ValidatorTest.java | 4 import com.github.javaparser.ParseResult; 25 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in genericsWithoutDiamond() 31 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topAnnotationDeclaration() 51 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedAnnotationDeclaration() 68 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("@interface X{" … in annotationMember() 89 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topEnum() 110 …ParseResult<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() 140 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("import static x… in staticImport() [all …]
|
D | Java1_0ValidatorTest.java | 4 import com.github.javaparser.ParseResult; 29 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(X x=new Y()){}")); in tryWithoutResources() 37 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X extends… in classExtendingMoreThanOne() 43 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X imp… in interfaceUsingImplements() 49 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X {{}… in interfaceWithInitializer() 55 …ParseResult<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() 81 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{class Y… in noInnerClasses() [all …]
|
D | Java7ValidatorTest.java | 4 import com.github.javaparser.ParseResult; 29 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in generics() 35 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X {de… in defaultMethodWithoutBody() 41 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try{}")); in tryWithoutAnything() 47 …ParseResult<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() 59 …ParseResult<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() 77 … ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try{}catch(Abc|Def e){}")); in multiCatch() [all …]
|
D | Java1_4ValidatorTest.java | 4 import com.github.javaparser.ParseResult; 22 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("assert a;")); in yesAssert() 28 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in noGenerics() 37 …ParseResult<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() 59 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("import static x… in staticImport() 67 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("int enum;")); in enumAllowedAsIdentifier()
|
D | Java8ValidatorTest.java | 4 import com.github.javaparser.ParseResult; 23 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X {void a… in localInterface() 29 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{int x()… in lambdaParameter() 52 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod() 67 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X {de… in defaultMethodWithoutBody() 73 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("a(() -> 1);")); in lambdas() 79 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("open module x {… in noModules()
|
D | Java9ValidatorTest.java | 4 import com.github.javaparser.ParseResult; 23 …ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("a.b._.c.d = act(_, _ -> _);"… in underscoreIdentifiers() 34 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("module x{requir… in moduleRequires() 55 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod() 69 …ParseResult<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()
|
D | Java6ValidatorTest.java | 4 import com.github.javaparser.ParseResult; 21 …ParseResult<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() 39 … ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try{}catch(Abc|Def e){}")); in noMultiCatch()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/ |
D | SourceRoot.java | 5 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 …]
|
D | SourceZip.java | 25 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/ |
D | SourceZipTest.java | 24 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/ |
D | JavaParser.java | 88 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()
|
D | ParseResult.java | 16 public class ParseResult<T> { class 28 …ParseResult(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/ |
D | ProvidersTest.java | 39 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/ |
D | PostProcessors.java | 3 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/ |
D | EDInst.cpp | 101 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/ |
D | ParseResult.java | 36 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()
|
D | ParserConfiguration.java | 80 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()
|
D | JavaParser.java | 121 public <N extends Node> ParseResult<N> parse(ParseStart<N> start, Provider provider) { in parse() 127 … ParseResult<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/ |
D | ParseResultTest.java | 25 import com.github.javaparser.ParseResult; 42 … ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{}")); in whenParsingSucceedsThenWeGetResultsAndNoProblems() 54 … ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class {")); in whenParsingFailsThenWeGetProblemsAndABadResult()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ |
D | TypedValidator.java | 3 import com.github.javaparser.ParseResult; 19 default ParseResult.PostProcessor postProcessor() { in postProcessor()
|