if segment is in a function, use the whole function codes. - [ ] python - [ ] javascript - [ ] java - [ ] typescript - [ ] go - [ ] rust - [ ] c++ - [ ] csharp - [ ] shell