MCPcopy Create free account
hub / github.com/congo-cc/congo-parser-generator / split

Method split

examples/java/testfiles/Token.java:216–236  ·  view source on GitHub ↗

Utility method to split a token in 2. For now, it assumes that the token is all on a single line. (Will maybe fix that later). @param length the point at which to split the token @param type1 the desired type of the first token @param type2 the desired type of the second token @return the first toke

(Token tok, int length, TokenType type1, TokenType type2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

getImportPartsMethod · 0.80
emitCodeBlockFIXMEMethod · 0.80
emitBlockCommentMethod · 0.80
wrapAtTopLevelCommasMethod · 0.80
emitJavaSourceAsFIXMEMethod · 0.80
iter_zipimport_modulesFunction · 0.80
get_dataFunction · 0.80
resolve_nameFunction · 0.80
setUpMethod · 0.80
test_promptMethod · 0.80
filterfuncMethod · 0.80

Calls 15

newTokenMethod · 0.95
setBeginColumnMethod · 0.95
setEndColumnMethod · 0.95
setBeginLineMethod · 0.95
setEndLineMethod · 0.95
setPreviousTokenMethod · 0.95
getEndColumnMethod · 0.95
setNextMethod · 0.95
setNextTokenMethod · 0.95
getImageMethod · 0.80
getPreviousTokenMethod · 0.80
getNextMethod · 0.80

Tested by

no test coverage detected