Home | History | Annotate | Download | only in Antlr3.Runtime

Lines Matching refs:then

68     /// then the token just becomes the payload.
119 /// Warning: if t has no children, but child does and child isNil then you
270 /// That node would contain the start/stop indexes then.
296 /// <summary>How many children? If 0, then this is a leaf node </summary>
344 /// If you don't want to buffer up nodes, then this method makes no
364 /// If the stream does not buffer all the nodes then it can still
677 /// objects, you need to override this and then set the parser tree adaptor to
856 /// children; e.g., ^(type ID)+ adds ID to type and then 2nd iteration
995 /// If a node specifies a text arg in pattern, then that must match
1508 /// from then on. Streams are reset after subrules so that the streams
1510 /// If dirty, then next() always returns a dup.
1600 /// unless the element is for a tree root; then it must be a node dup
2079 /// If you tail+1 == head, then we must create a bigger buffer
2137 if (T = nil) then
2141 if ChildTree.IsNil then // t is an empty node possibly with children
2143 if Assigned(FChildren) and SameObj(FChildren, ChildTree.Children) then
2147 if Assigned(ChildTree.Children) then
2149 if Assigned(FChildren) then // must copy, this has children already
2170 if (FChildren = nil) then
2201 if (FChildren = nil) then
2238 if (FChildren = nil) or (I >= FChildren.Count) then
2246 if Assigned(FChildren) then
2288 if (FChildren = nil) then
2294 if (NewTree.IsNil) then
2307 if (Delta = 0) then
2320 if (Delta > 0) then
2323 // set children and then delete extra
2368 if not SameObj(Parent, GetParent) then
2372 if (I <> GetChildIndex) then
2386 if (T = nil) then
2389 if T.IsNil then
2392 if (FChildren = nil) then
2418 if (FChildren = nil) or (FChildren.Count = 0) then
2424 if (not GetIsNil) then
2434 if (I > 0) then
2439 if (not GetIsNil) then
2481 if (FToken = nil) or (FToken.CharPositionInLine = -1) then
2483 if (GetChildCount > 0) then
2504 if (FToken = nil) or (FToken.Line = 0) then
2506 if (GetChildCount > 0) then
2532 if (FToken = nil) then
2545 if (FStartIndex = -1) and (FToken <> nil) then
2553 if (FStopIndex = -1) and (FToken <> nil) then
2561 if (FToken = nil) then
2599 if (GetIsNil) then
2602 if (GetTokenType = TToken.INVALID_TOKEN_TYPE) then
2605 if (FToken = nil) then
2619 then
2642 if (FStop.TokenType = TToken.EOF) then
2656 if (FTrappedException is EMissingTokenException) then
2660 if (FTrappedException is EUnwantedTokenException) then
2665 then
2669 if (FTrappedException is ENoViableAltException) then
2680 if Assigned(T) and Assigned(Child) then
2692 if (OldRoot = nil) then
2697 if (NewRootTree.IsNil) then
2700 if (NC = 1) then
2703 if (NC > 1) then
2768 if (T = nil) then
2825 if (FTreeToUniqueIDMap = nil) then
2827 if (not FTreeToUniqueIDMap.TryGetValue(Node, Result)) then
2846 if Assigned(R) and (R.IsNil) then
2848 if (R.ChildCount = 0) then
2851 if (R.ChildCount = 1) then
2901 if (TreeNode = nil) then
2910 if (T = nil) then
2918 if (T = nil) then
2931 if (T = nil) then
2939 if (T = nil) then
2955 if Supports(TreeNode, ICommonTree, CommonTree) then
2964 if (T = nil) then
2973 if (T = nil) then
2982 if Assigned(Parent) then
3002 if Assigned(T) then
3004 if Assigned(StartToken) then
3009 if Assigned(StopToken) then
3025 if (TokenType = TToken.DOWN) then
3027 if (GetHasUniqueNavigationNodes) then
3034 if (GetHasUniqueNavigationNodes) then
3044 if (FP = -1) then
3091 if (not IsNil) then
3096 if (not IsNil) and (N > 0) then
3104 if (not IsNil) and (N > 0) then
3110 if (FP = -1) then
3130 if (FP = -1) then
3135 if (T = Node) then
3178 if (K = 0) then
3181 if ((FP - K) < 0) then
3189 if (FP = -1) then
3191 if (K = 0) then
3194 if (K < 0) then
3197 if ((FP + K - 1) >= FNodes.Count) then
3205 if (FP = -1) then
3219 if (FCalls = nil) then
3233 if Assigned(Parent) then
3241 if Assigned(FCalls) then
3257 if (FP = -1) then
3280 if (FP = -1) then
3295 if (Start = nil) or (Stop = nil) then
3297 if (FP = -1) then
3300 if Supports(Start, ICommonTree, CommonTree) then
3305 if Supports(Stop, ICommonTree, CommonTree) then
3311 if Assigned(FTokens) then
3317 if (FAdaptor.GetNodeType(Stop) = TToken.UP) then
3320 if (FAdaptor.GetNodeType(Stop) = TToken.EOF) then
3332 if SameObj(T, Start) then
3344 if (Text = '') then
3353 if (Text = '') then
3367 if (FP = -1) then
3389 if (FP = -1) then
3466 if Supports(FPayload, IToken, T) then
3468 if (T.TokenType = TToken.EOF) then
3485 if Assigned(FHiddenTokens) then
3491 if (NodeText <> '<EOF>') then
3503 if Supports(FPayload, IToken) then
3509 if Assigned(FChildren) then
3527 if (El = nil) then
3529 if Assigned(FElements) then
3533 if (FSingleElement = nil) then
3593 if Assigned(FSingleElement) then
3596 if Assigned(FElements) then
3612 if (Size = 0) then
3615 if (FCursor >= Size) then
3618 if (Size = 1) then
3628 if Assigned(FSingleElement) then
3672 if (RequiresDuplication) then
3676 // test above then fetch
3743 if (E.ApproximateLineInfo) then
3753 if (Self is TTreeParser) then
3757 if (E.Token = nil) then
3798 if (FInput.TreeAdaptor.GetChildCount(Look) = 0) then
3813 if (TokenType = DOWN) then
3816 if (TokenType = UP) then
3831 if Assigned(FInput) then
3862 if (FP > FN) then
3887 if (FC = 32) or (FC = 10) or (FC = 13) or (FC = 9) then
3896 then begin
3910 if (FC = Ord('(')) then
3916 if (FC = Ord(')')) then
3922 if (FC = Ord('%')) then
3928 if (FC = Ord(':')) then
3934 if (FC = Ord('.')) then
3940 if (FC = Ord('[')) then
3946 if (FC = Ord('\')) then
3949 if (FC <> Ord(']')) then
3981 if (Length(TokenNames) > 0)then
4050 then
4079 if (FTokenNameToTypeMap = nil) then
4081 if (not FTokenNameToTypeMap.TryGetValue(TokenName, Result)) then
4126 then
4140 if (T1 = nil) or (T2 = nil) then
4144 if (Adaptor.GetNodeType(T1) <> Adaptor.GetNodeType(T2)) then
4146 if (Adaptor.GetNodeText(T1) <> Adaptor.GetNodeText(T2)) then
4152 if (N1 <> N2) then
4158 if (not _Equals(Child1, Child2, Adaptor)) then
4171 if (T = nil) then
4174 if (not M.TryGetValue(TType, Elements)) then
4176 if (Elements = nil) then
4195 if (T1 = nil) or (T2 = nil) then
4199 if (not Supports(T2, IWildcardTreePattern)) then
4201 if (FAdaptor.GetNodeType(T1) <> T2.TokenType) then
4203 if (T2.HasTextArg) and (FAdaptor.GetNodeText(T1) <> T2.Text) then
4207 if (T2.TokenLabel <> '') and Assigned(Labels) then
4214 if (N1 <> N2) then
4221 if (not _Parse(Child1, Child2, Labels)) then
4233 if (T = nil) then
4235 if (FAdaptor.GetNodeType(T) = TokenType) then
4275 if (FTokenType = TTreePatternLexer.PERCENT) then
4278 if (FTokenType <> TTreePatternLexer.ID) then
4282 if (FTokenType <> TTreePatternLexer.COLON) then
4288 if (FTokenType = TTreePatternLexer.DOT) then
4293 if (Lbl <> '') then
4299 if (FTokenType <> TTreePatternLexer.ID) then
4303 if (TokenName = 'nil') then
4309 if (FTokenType = TTreePatternLexer.ARG) then
4318 if (TreeNodeType = TToken.INVALID_TOKEN_TYPE) then
4322 if (Lbl <> '') and Supports(Result, TTreeWizard.ITreePattern, Node) then
4324 if (Arg <> '') and Supports(Result, TTreeWizard.ITreePattern, Node) then
4332 if (FTokenType <> TTreePatternLexer.START) then
4340 if (Result = nil) then
4346 if (FTokenType = TTreePatternLexer.START) then
4354 if (Child = nil) then
4360 if (FTokenType <> TTreePatternLexer.STOP) then
4373 if (FTokenType = TTreePatternLexer.START) then
4376 if (FTokenType = TTreePatternLexer.ID) then
4379 if (FTokenType = TTreePatternLexer.EOF) then
4427 if (FOwner._Parse(T, FPattern, nil)) then
4450 if (FOwner._Parse(T, FPattern, FLabels)) then
4478 if (FLabel <> '') then
4513 if (FTail = FHead) then
4535 if (TokenType = TToken.DOWN) then
4537 if (GetHasUniqueNavigationNodes) then
4544 if (GetHasUniqueNavigationNodes) then
4635 if (FAdaptor.IsNil(Result)) then
4641 if (FAdaptor.GetChildCount(FCurrentNode) = 0) then
4657 if (T = nil) then
4670 if (FTail < FHead) then
4678 if (K = -1) then
4681 if (K < 0) then
4684 if (K = 0) then
4697 if (FMarkers = nil) then
4705 if (FMarkDepth >= FMarkers.Count) then
4737 if (FCurrentNode = nil) then
4747 if (FCurrentChildIndex = -1) then
4754 if (FCurrentChildIndex < FAdaptor.GetChildCount(FCurrentNode)) then
4762 if (FCurrentNode <> nil) then
4800 if (FMarkers = nil) then
4810 FHead := 0; // wack lookahead buffer and then refill
4827 if (Index < Self.Index) then
4865 if (not FAdaptor.IsNil(P)) then
4868 if (Text = '') then
4873 if SameObj(P, Stop) then
4877 if (N > 0) and (not FAdaptor.IsNil(P)) then
4886 if (N > 0) and (not FAdaptor.IsNil(P)) then
4900 if (Child = 0) and (not FAdaptor.IsNil(FCurrentNode)) then
4915 if (FCurrentNode = nil) then
4921 if (FCurrentChildIndex >= FAdaptor.GetChildCount(FCurrentNode)) then
4923 if (not FAdaptor.IsNil(FCurrentNode)) then
4925 if SameObj(FCurrentNode, FRoot) then
4938 if (Start = nil) then
4942 if (FTokens <> nil) then
4948 if (Stop <> nil) and (FAdaptor.GetNodeType(Stop) = TToken.UP) then
5050 if Assigned(X) then
5054 if (EmptyCommonTree = nil) then