/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/ |
ASTParser.stg | 35 * token, set, rule, wildcard 40 @rule.setErrorReturnValue() ::= << 41 /* ASTParser rule.setErrorReturnValue */ 130 // RULE REF AST 132 /** rule when output=AST */ 133 ruleRef(rule,label,elementIndex,args,scope) ::= << 140 /** rule! is same as normal rule ref */ 141 ruleRefBang(rule,label,elementIndex,args,scope) ::= "<super.ruleRef(...)>" 143 /** rule^ * [all...] |
/external/chromium_org/chrome/browser/extensions/api/declarative_webrequest/ |
webrequest_rules_registry.cc | 121 const WebRequestRule* rule = local 123 CHECK(rule); 125 // Skip rule if a previous rule of this extension instructed to ignore 131 if (!rule->tags().empty() && !ignore_tags[extension_id].empty()) { 133 const WebRequestRule::Tags& tags = rule->tags(); 148 rule->Apply(&apply_info); 152 rule->GetMinimumPriority()); 159 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) { 174 for (std::vector<linked_ptr<RulesRegistry::Rule> >::const_iterator rule [all...] |
/external/chromium/net/proxy/ |
init_proxy_resolver_unittest.cc | 29 struct Rule { 30 Rule(const GURL& url, 51 Rule AddSuccessRule(const char* url) { 52 Rule rule(GURL(url), OK /*fetch_error*/, OK /*set_pac_error*/); 53 rules_.push_back(rule); 54 return rule; 58 rules_.push_back(Rule(GURL(url), kFailedDownloading /*fetch_error*/, 63 rules_.push_back(Rule(GURL(url), OK /*fetch_error*/, 67 const Rule& GetRuleByUrl(const GURL& url) const 100 const Rules::Rule& rule = rules_->GetRuleByUrl(url); local 147 const Rules::Rule& rule = expects_pac_bytes() ? local 181 Rules::Rule rule = rules.AddSuccessRule("http:\/\/custom\/proxy.pac"); local 283 Rules::Rule rule = rules.AddSuccessRule("http:\/\/wpad\/wpad.dat"); local 302 Rules::Rule rule = rules.AddSuccessRule("http:\/\/custom\/proxy.pac"); local 322 Rules::Rule rule = rules.AddSuccessRule("http:\/\/custom\/proxy.pac"); local 424 Rules::Rule rule = rules.AddSuccessRule("http:\/\/custom\/proxy.pac"); local [all...] |
/external/chromium/net/base/ |
mock_host_resolver.cc | 122 struct RuleBasedHostResolverProc::Rule { 137 Rule(ResolverType resolver_type, 170 Rule rule(Rule::kResolverTypeSystem, host_pattern, address_family, flags, 172 rules_.push_back(rule); 187 Rule rule(Rule::kResolverTypeIPLiteral, host_pattern, 190 rules_.push_back(rule); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
InspectorStyleSheet.cpp | 128 // containing only style rules, even though CSSParser now provides the full rule source data tree. 197 // Pop off data for a previous invalid rule. 247 ++offset; // Skip the rule body opening brace. 256 RefPtr<CSSRuleSourceData> rule = popRuleData(); local 260 fixUnparsedPropertyRanges(rule.get()); 261 addNewRuleToSourceTree(rule.release()); 264 void StyleSheetHandler::addNewRuleToSourceTree(PassRefPtr<CSSRuleSourceData> rule) 267 m_result->append(rule); 269 m_currentRuleDataStack.last()->childRules.append(rule); 399 // The lexer is not inside a property AND it is scanning a declaration-aware rule body [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/ |
ASTTreeParser.stg | 35 * token, set, rule, wildcard 49 /** What to emit when there is no rewrite rule. For auto build 77 <if(root.el.rule)> 219 // RULE REF AST 221 /** rule auto construct */ 222 ruleRef(rule,label,elementIndex,args,scope) ::= << 233 /** x+=rule auto construct */ 234 ruleRefAndListLabel(rule,label,elementIndex,args,scope) ::= << 239 /** ^(rule ...) auto construct */ 240 ruleRefRuleRoot(rule,label,elementIndex,args,scope) ::= < [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/C/ |
ASTTreeParser.stg | 38 * token, set, rule, wildcard 57 /** What to emit when there is no rewrite rule. For auto build 92 <if(root.el.rule)> 236 // RULE REF AST 238 /** rule auto construct */ 239 ruleRef(rule,label,elementIndex,args,scope) ::= << 253 /** x+=rule auto construct */ 254 ruleRefAndListLabel(rule,label,elementIndex,args,scope) ::= << 259 /** ^(rule ...) auto construct */ 260 ruleRefRuleRoot(rule,label,elementIndex,args,scope) ::= < [all...] |
AST.stg | 64 /** Add a variable to track rule's return AST */ 87 * one alt will be taken in a rule, but we are declaring all the streams here. So we define 101 #define CREATE_stream_<it> if (stream_<it> == NULL) {stream_<it> = antlr3RewriteRuleSubtreeStreamNewAE(ADAPTOR, RECOGNIZER, (pANTLR3_UINT8)"rule <it>"); \}}; separator="\n"> 109 /** a rule label including default value */ 117 * as a rule could have both rewrite and AST within the same alternative 140 /** ID but track it for use in a rewrite rule */ 146 /** ids+=ID and track it for use in a rewrite rule; adds to ids *and* 164 /** rule when output=AST and tracking for rewrite */ 165 ruleRefTrack(rule,label,elementIndex,args,scope) ::= << 167 <if(backtracking)>if ( <actions.(actionScope).synpredgate> ) { <endif>CREATE_stream_<rule.name>; stream_<rule.name>->add(stream_<rule.name>, <label>.tree, NULL);<if(backtracking)> }<endif [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Delphi/ |
ASTTreeParser.stg | 38 * token, set, rule, wildcard 58 /** What to emit when there is no rewrite rule. For auto build 87 <if(root.el.rule)> 225 // RULE REF AST 227 /** rule auto construct */ 228 ruleRef(rule,label,elementIndex,args,scope) ::= << 239 /** x+=rule auto construct */ 240 ruleRefAndListLabel(rule,label,elementIndex,args,scope) ::= << 245 /** ^(rule ...) auto construct */ 246 ruleRefRuleRoot(rule,label,elementIndex,args,scope) ::= < [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Java/ |
ASTTreeParser.stg | 35 * token, set, rule, wildcard 48 /** What to emit when there is no rewrite rule. For auto build 76 <if(root.el.rule)> 218 // RULE REF AST 220 /** rule auto construct */ 221 ruleRef(rule,label,elementIndex,args,scope) ::= << 232 /** x+=rule auto construct */ 233 ruleRefAndListLabel(rule,label,elementIndex,args,scope) ::= << 238 /** ^(rule ...) auto construct */ 239 ruleRefRuleRoot(rule,label,elementIndex,args,scope) ::= < [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/ |
ASTTreeParser.stg | 7 * token, set, rule, wildcard 21 /** What to emit when there is no rewrite rule. For auto build 49 <if(root.el.rule)> 176 // RULE REF AST 178 /** rule auto construct */ 179 ruleRef(rule,label,elementIndex,args,scope) ::= << 190 /** x+=rule auto construct */ 191 ruleRefAndListLabel(rule,label,elementIndex,args,scope) ::= << 196 /** ^(rule ...) auto construct */ 197 ruleRefRuleRoot(rule,label,elementIndex,args,scope) ::= < [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/ |
ASTTreeParser.stg | 35 * token, set, rule, wildcard 57 /** What to emit when there is no rewrite rule. For auto build 84 <if(root.el.rule)> 230 // RULE REF AST 232 /** rule auto construct */ 233 ruleRef(rule,label,elementIndex,args,scope) ::= << 246 /** x+=rule auto construct */ 247 ruleRefAndListLabel(rule,label,elementIndex,args,scope) ::= << 252 /** ^(rule ...) auto construct */ 253 ruleRefRuleRoot(rule,label,elementIndex,args,scope) ::= < [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/main/ |
main-scripts.rb | 92 %w(--rule r --lexer-name MainForCombined::Lexer), 115 %w(--rule r --lexer-name ASTParserMain::Lexer), 151 %w(--rule r --parser-name TreeMain::Parser 152 --parser-rule r --lexer-name TreeMain::Lexer), 187 %w(--rule r --parser-name TreeRewriteMain::Parser 188 --parser-rule r --lexer-name TreeRewriteMain::Lexer), 219 %w(--rule s --lexer-name MainMaster::Lexer),
|
/external/chromium_org/chrome/browser/extensions/api/declarative/ |
initializing_rules_registry.cc | 27 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) { 57 std::vector<linked_ptr<RulesRegistry::Rule> >* out) { 63 std::vector<linked_ptr<RulesRegistry::Rule> >* out) { 108 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) { 114 for (std::vector<linked_ptr<RulesRegistry::Rule> >::const_iterator i = 116 RulesRegistry::Rule* rule = i->get(); local 117 if (rule->id.get()) { 118 std::string id = *(rule->id); 128 for (std::vector<linked_ptr<RulesRegistry::Rule> >::const_iterator i 130 RulesRegistry::Rule* rule = i->get(); local [all...] |
declarative_rule_unittest.cc | 296 typedef DeclarativeRule<FulfillableCondition, SummingAction> Rule; 297 linked_ptr<Rule::JsonRule> json_rule(new Rule::JsonRule); 298 ASSERT_TRUE(Rule::JsonRule::Populate( 320 scoped_ptr<Rule> rule(Rule::Create(matcher.condition_factory(), 324 Rule::ConsistencyChecker(), 327 ASSERT_TRUE(rule.get()); 329 EXPECT_EQ(kExtensionId, rule->id().first) [all...] |
/external/chromium_org/chrome/renderer/safe_browsing/ |
phishing_classifier_browsertest.cc | 63 // Add a default rule with a non-phishy weight. 64 ClientSideModel::Rule* rule = model.add_rule(); local 65 rule->set_weight(-1.0); 70 rule = model.add_rule(); 71 rule->add_feature(0); 72 rule->add_feature(1); 73 rule->add_feature(2); 74 rule->set_weight(1.0);
|
/external/chromium_org/native_client_sdk/src/build_tools/ |
verify_filelist.py | 64 for line_no, rule in enumerate(contents.split('\n')): 65 rule = rule.strip() 66 if rule: 67 self.ParsePattern(line_no + 1, rule) 176 parser = optparse.OptionParser(usage='%prog <rule file> <directory>') 185 parser.error('Expected rule file.') 190 parser.error('Expected rule file and directory.')
|
/external/bison/src/ |
nullable.c | 39 rule *value; 80 rule *rules_ruleno = &rules[ruleno]; 83 /* This rule has a non empty RHS. */ 90 /* This rule has only nonterminals: schedule it for the second 104 /* This rule has an empty RHS. */ 119 rule *r = p->value;
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
DocumentRuleSets.cpp | 41 void ShadowDistributedRules::addRule(StyleRule* rule, size_t selectorIndex, ContainerNode* scopingNode, AddRuleFlags addRuleFlags) 44 m_shadowDistributedRuleSetMap.get(scopingNode)->addRule(rule, selectorIndex, addRuleFlags); 47 ruleSetForScope->addRule(rule, selectorIndex, addRuleFlags);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/ |
summary.py | 41 rule = "-" * len(header) + "\n" 50 outfile.write(rule) 74 outfile.write(rule)
|
/external/chromium_org/tools/checkdeps/ |
java_checker.py | 12 from rules import Rule 99 rule = rules.RuleApplyingTo(include_path, filepath) 100 if rule.allow == Rule.DISALLOW: 102 results.DependencyViolation(include_path, rule, rules))
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/config/ |
makesetup | 35 # - for each object file mentioned in Setup, append a rule 37 # - for each module mentioned in Setup, append a rule 224 rule="$obj: $src; $cc $cpps -c $src -o $obj" 225 echo "$rule" >>$rulesf 240 rule="$file: $objs" 241 rule="$rule; \$(BLDSHARED) $objs $libs $ExtraLibs -o $file" 242 echo "$rule" >>$rulesf
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/config/ |
makesetup | 35 # - for each object file mentioned in Setup, append a rule 37 # - for each module mentioned in Setup, append a rule 224 rule="$obj: $src; $cc $cpps -c $src -o $obj" 225 echo "$rule" >>$rulesf 240 rule="$file: $objs" 241 rule="$rule; \$(BLDSHARED) $objs $libs $ExtraLibs -o $file" 242 echo "$rule" >>$rulesf
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
StylesSidebarPane.js | 81 addButton.title = WebInspector.UIString("New Style Rule"); 452 var rule = pseudoElementCSSRules.rules[j]; 453 styleRules.push({ style: rule.style, selectorText: rule.selectorText, media: rule.media, sourceURL: rule.resourceURL(), rule: rule, editable: !!(rule.style && rule.style.id) }) [all...] |
/external/chromium_org/chrome/browser/omnibox/ |
omnibox_field_trial.h | 158 // Rule names used by the bundled experiment. 163 // Rule values. 170 // (key-value pairs). Each key indicates a certain rule that applies in 172 // applying the rule are. For example, the value of a SearchHistory rule 176 // This function returns the value associated with the |rule| that applies 178 // and whether Instant Extended is enabled). If no such rule exists in the 179 // current context, fall back to the rule in various wildcard contexts and 180 // return its value if found. If the rule remains unfound in the global 183 // interpret the value is left to the caller; this is rule-dependent [all...] |