public async Task NoConflict() { MarkupUtils.GetPosition(@"$$", out var code, out int position); var analysis = await GetAnalysisAsync(code); Test(analysis, position, "name", "name"); Test(analysis, "name", "name"); }
public async Task Conflict_TopLevel() { MarkupUtils.GetPosition(@"$$ name = 1", out var code, out int position); var analysis = await GetAnalysisAsync(code); Test(analysis, position, "name", "name1"); Test(analysis, "name", "name1"); }
public async Task Conflict_Function2() { MarkupUtils.GetPosition(@"def Test(): name = 1 $$ pass", out var code, out int position); var analysis = await GetAnalysisAsync(code); Test(analysis, position, "name", "name1"); Test(analysis, "name", "name1"); }
public async Task MultipleConflicts() { MarkupUtils.GetPosition(@" name1 = 1 class name3: name2 = 1 def Test(): name = 1 def name4(): pass $$", out var code, out int position); var analysis = await GetAnalysisAsync(code); Test(analysis, position, "name", "name"); Test(analysis, "name", "name5"); }