Home
last modified time | relevance | path

Searched refs:msgID (Results 1 – 10 of 10) sorted by relevance

/external/antlr/tool/src/main/java/org/antlr/tool/
DErrorManager.java541 public static ST getMessage(int msgID) { in getMessage() argument
542 String msgName = idToMessageTemplateName[msgID]; in getMessage()
545 public static String getMessageType(int msgID) { in getMessageType() argument
546 if (getErrorState().warningMsgIDs.member(msgID)) { in getMessageType()
549 else if (getErrorState().errorMsgIDs.member(msgID)) { in getMessageType()
552 …assertTrue(false, "Assertion failed! Message ID " + msgID + " created but is not present in errorM… in getMessageType()
606 public static void error(int msgID) { in error() argument
608 getErrorState().errorMsgIDs.add(msgID); in error()
609 getErrorListener().error(new ToolMessage(msgID)); in error()
612 public static void error(int msgID, Throwable e) { in error() argument
[all …]
DToolMessage.java44 public ToolMessage(int msgID) { in ToolMessage() argument
45 super(msgID, null, null); in ToolMessage()
47 public ToolMessage(int msgID, Object arg) { in ToolMessage() argument
48 super(msgID, arg, null); in ToolMessage()
50 public ToolMessage(int msgID, Throwable e) { in ToolMessage() argument
51 super(msgID); in ToolMessage()
54 public ToolMessage(int msgID, Object arg, Object arg2) { in ToolMessage() argument
55 super(msgID, arg, arg2); in ToolMessage()
57 public ToolMessage(int msgID, Object arg, Throwable e) { in ToolMessage() argument
58 super(msgID,arg,null); in ToolMessage()
DMessage.java49 public int msgID; field in Message
61 public Message(int msgID) { in Message() argument
62 this(msgID, null, null); in Message()
65 public Message(int msgID, Object arg, Object arg2) { in Message() argument
66 setMessageID(msgID); in Message()
79 public void setMessageID(int msgID) { in setMessageID() argument
80 this.msgID = msgID; in setMessageID()
81 msgST = ErrorManager.getMessage(msgID); in setMessageID()
113 messageFormatST.add("id", msgID); in toString()
120 reportST.add("type", ErrorManager.getMessageType(msgID)); in toString()
DNameSpaceChecker.java94 int msgID = 0; in checkForRuleDefinitionProblems() local
98 msgID = ErrorManager.MSG_LEXER_RULES_NOT_ALLOWED; in checkForRuleDefinitionProblems()
104 msgID = ErrorManager.MSG_PARSER_RULES_NOT_ALLOWED; in checkForRuleDefinitionProblems()
107 msgID = ErrorManager.MSG_SYMBOL_CONFLICTS_WITH_GLOBAL_SCOPE; in checkForRuleDefinitionProblems()
109 if ( msgID!=0 ) { in checkForRuleDefinitionProblems()
110 ErrorManager.grammarError(msgID, grammar, ruleToken, ruleName); in checkForRuleDefinitionProblems()
190 int msgID = 0; in checkForRuleScopeAttributeConflict() local
194 msgID = ErrorManager.MSG_ATTRIBUTE_CONFLICTS_WITH_RULE; in checkForRuleScopeAttributeConflict()
200 msgID = ErrorManager.MSG_ATTRIBUTE_CONFLICTS_WITH_RULE_ARG_RETVAL; in checkForRuleScopeAttributeConflict()
203 if ( msgID!=0 ) { in checkForRuleScopeAttributeConflict()
[all …]
DGrammarSemanticsMessage.java43 public GrammarSemanticsMessage(int msgID, in GrammarSemanticsMessage() argument
47 this(msgID,g,offendingToken,null,null); in GrammarSemanticsMessage()
50 public GrammarSemanticsMessage(int msgID, in GrammarSemanticsMessage() argument
55 this(msgID,g,offendingToken,arg,null); in GrammarSemanticsMessage()
58 public GrammarSemanticsMessage(int msgID, in GrammarSemanticsMessage() argument
64 super(msgID,arg,arg2); in GrammarSemanticsMessage()
DGrammarSyntaxMessage.java43 public GrammarSyntaxMessage(int msgID, in GrammarSyntaxMessage() argument
48 this(msgID,grammar,offendingToken,null,exception); in GrammarSyntaxMessage()
51 public GrammarSyntaxMessage(int msgID, in GrammarSyntaxMessage() argument
57 super(msgID, arg, null); in GrammarSyntaxMessage()
/external/antlr/tool/src/test/java/org/antlr/test/
DBaseTest.java536 if (m.msgID==expectedMessage.msgID ) { in checkGrammarSemanticsError()
540 assertNotNull("no error; "+expectedMessage.msgID+" expected", foundMsg); in checkGrammarSemanticsError()
556 if (m.msgID==expectedMessage.msgID ) { in checkGrammarSemanticsWarning()
560 assertNotNull("no error; "+expectedMessage.msgID+" expected", foundMsg); in checkGrammarSemanticsWarning()
574 if (m.msgID==expectedMessage.msgID ) { in checkError()
578 assertTrue("no error; "+expectedMessage.msgID+" expected", equeue.errors.size()>0); in checkError()
580 assertNotNull("couldn't find expected error: "+expectedMessage.msgID, foundMsg); in checkError()
DTestTemplates.java359 if (m.msgID==expectedMessage.msgID ) { in checkError()
363 assertTrue("no error; "+expectedMessage.msgID+" expected", equeue.errors.size()>0); in checkError()
365 assertTrue("couldn't find expected error: "+expectedMessage.msgID, foundMsg!=null); in checkError()
DTestAttributes.java3084 if (m.msgID==expectedMessage.msgID ) { in checkError()
3088 assertTrue("no error; "+expectedMessage.msgID+" expected", equeue.errors.size() > 0); in checkError()
3089 assertNotNull("couldn't find expected error: "+expectedMessage.msgID+" in "+equeue, foundMsg); in checkError()
3107 if (m.msgID==em.msgID && m.arg.equals(em.arg) && m.arg2.equals(em.arg2)) { in checkErrors()
/external/mdnsresponder/mDNSShared/
Ddnsextd.c1896 mDNSOpaque16 msgID; in SendEvents() local
1901 msgID.NotAnInteger = random(); in SendEvents()
1903 InitializeDNSMessage(&response.msg.h, msgID, ResponseFlags); in SendEvents()
2119 mDNSlocal void LLQRefresh(DaemonInfo *d, LLQEntry *e, LLQOptData *llq, mDNSOpaque16 msgID, TCPSocke… in LLQRefresh() argument
2139 InitializeDNSMessage(&ack.msg.h, msgID, ResponseFlags); in LLQRefresh()
2155 mDNSlocal void LLQCompleteHandshake(DaemonInfo *d, LLQEntry *e, LLQOptData *llq, mDNSOpaque16 msgID in LLQCompleteHandshake() argument
2182 InitializeDNSMessage(&ack.msg.h, msgID, ResponseFlags); in LLQCompleteHandshake()
2205 mDNSlocal void LLQSetupChallenge(DaemonInfo *d, LLQEntry *e, LLQOptData *llq, mDNSOpaque16 msgID) in LLQSetupChallenge() argument
2228 InitializeDNSMessage(&challenge.msg.h, msgID, ResponseFlags); in LLQSetupChallenge()
2240 mDNSlocal void UpdateLLQ(DaemonInfo *d, LLQEntry *e, LLQOptData *llq, mDNSOpaque16 msgID, TCPSocket… in UpdateLLQ() argument
[all …]