Lines Matching refs:pegRule
135 switch node.pegRule {
154 panic(fmt.Sprintf("unknown top-level statement type %q", rul3s[node.pegRule]))
280 if term.pegRule != ruleLocalSymbol {
314 switch label.pegRule {
325 return nil, fmt.Errorf("unknown label type %q", rul3s[label.pegRule])
527 for symRef != nil && symRef.pegRule == ruleOffset {
539 if memRef.pegRule != ruleSymbolRef {
551 if symRef.pegRule == ruleLocalSymbol {
574 panic(fmt.Sprintf("unexpected token in SymbolRef: %q", rul3s[symRef.pegRule]))
596 if arg.pegRule == ruleIndirectionIndicator {
601 switch arg.pegRule {
767 panic(fmt.Sprintf("unknown instruction argument type %q", rul3s[arg.pegRule]))
973 return node != nil && node.pegRule == ruleBaseIndexScale && d.contents(node) == "(%rip)"
991 if arg.pegRule == ruleIndirectionIndicator {
996 switch arg.pegRule {
1196 panic(fmt.Sprintf("unknown instruction argument type %q", rul3s[arg.pegRule]))
1222 switch node.pegRule {
1239 if label.pegRule != ruleLocalSymbol {
1255 …return nil, fmt.Errorf("unknown BSS statement type %q in %q", rul3s[node.pegRule], d.contents(stat…
1574 func forEachPath(node *node32, cb func(*node32), rules ...pegRule) { argument
1588 if node.pegRule != rule {
1600 func skipNodes(node *node32, ruleToSkip pegRule) *node32 { argument
1601 for ; node != nil && node.pegRule == ruleToSkip; node = node.next {
1610 func assertNodeType(node *node32, expected pegRule) { argument
1611 if rule := node.pegRule; rule != expected {
1686 if node == nil || node.pegRule != ruleInstruction {