self
valid ?
# Is the combination of prefixes and suffixes in `self` valid ?
fun is_valid_augmentation: Bool is abstract
src/literal.nit:103,2--104,44
redef fun is_valid_augmentation do
if is_string and suffix == "" then return true
if is_bytestring and suffix == "" then return true
if is_re then
var suf = suffix
for i in suf.chars do
if i == 'i' then continue
if i == 'm' then continue
if i == 'b' then continue
return false
end
return true
end
if prefix != "" or suffix != "" then return false
return true
end
src/literal.nit:175,2--190,4